This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Make stub fchdir.c define __fchdir.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Mon, 29 Apr 2013 14:33:00 -0700 (PDT)
- Subject: [COMMITTED PATCH] Make stub fchdir.c define __fchdir.
2013-04-29 Roland McGrath <roland@hack.frob.com>
* io/fchdir.c (__fchdir): Renamed from fchdir.
(fchdir): Define as weak alias.
--- a/io/fchdir.c
+++ b/io/fchdir.c
@@ -21,11 +21,11 @@
/* Change the current directory to FD. */
int
-fchdir (fd)
- int fd;
+__fchdir (int fd)
{
__set_errno (ENOSYS);
return -1;
}
+weak_alias (__fchdir, fchdir)
stub_warning (fchdir)