Add lib/fchown-stub.c.
[gnulib.git] / lib / fchown-stub.c
1 #include <config.h>
2 #include <sys/types.h>
3 #include <errno.h>
4
5 /* A trivial substitute for `fchown'.
6
7    DJGPP 2.03 and earlier (and perhaps later) don't have `fchown',
8    so we pretend no-one has permission for this operation. */
9
10 int
11 fchown (int fd, uid_t uid, gid_t gid)
12 {
13   errno = EPERM;
14   return -1;
15 }