view lib/fchown-stub.c @ 12559:c2cbabec01dd

update nearly all FSF copyright year lists to include 2010 Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
author Jim Meyering <meyering@redhat.com>
date Fri, 01 Jan 2010 10:31:12 +0100
parents 8a1a9361108c
children 18a38c9615f0
line wrap: on
line source

#include <config.h>

#include <sys/types.h>
#include <errno.h>

/* A trivial substitute for `fchown'.

   DJGPP 2.03 and earlier (and perhaps later) don't have `fchown',
   so we pretend no-one has permission for this operation. */

int
fchown (int fd, uid_t uid, gid_t gid)
{
  errno = EPERM;
  return -1;
}