view lib/fchown-stub.c @ 40174:b76c7bdde2bf

*-map tests: Fix compilation error. * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT. * tests/test-hash_map.c: Likewise. * tests/test-linkedhash_map.c: Likewise.
author Colin Watson <cjwatson@debian.org>
date Sat, 02 Feb 2019 16:12:09 +0100
parents 18a38c9615f0
children
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;
}