view lib/fchown-stub.c @ 7611:07a2b2d3dc76

* lib/idcache.c: Include <stddef.h>, for offsetof. (struct userid.name): Change from char * to a flexible array member. All uses changed. * modules/idcache (Depends-on): Add flexmember.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 06 Nov 2006 22:02:53 +0000
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;
}