From 82fb517834f309285c4906365abe45b8fa3ac905 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 19 Mar 2003 09:00:34 +0000 Subject: [PATCH] New file: trivial stub for fchdir. From Rich Dawe. --- lib/fchdir-stub.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/fchdir-stub.c diff --git a/lib/fchdir-stub.c b/lib/fchdir-stub.c new file mode 100644 index 000000000..922236211 --- /dev/null +++ b/lib/fchdir-stub.c @@ -0,0 +1,14 @@ +#include +#include +#include + +/* A trivial substitute for `fchdir'. + + DJGPP 2.03 and earlier don't have `fchdir'. */ + +int +fchdir (int fd) +{ + errno = ENOSYS; + return -1; +}