]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
New file: trivial stub for fchdir.
authorJim Meyering <jim@meyering.net>
Wed, 19 Mar 2003 09:00:34 +0000 (09:00 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 19 Mar 2003 09:00:34 +0000 (09:00 +0000)
From Rich Dawe.

lib/fchdir-stub.c [new file with mode: 0644]

diff --git a/lib/fchdir-stub.c b/lib/fchdir-stub.c
new file mode 100644 (file)
index 0000000..9222362
--- /dev/null
@@ -0,0 +1,14 @@
+#include <config.h>
+#include <sys/types.h>
+#include <errno.h>
+
+/* A trivial substitute for `fchdir'.
+
+   DJGPP 2.03 and earlier don't have `fchdir'. */
+
+int
+fchdir (int fd)
+{
+  errno = ENOSYS;
+  return -1;
+}