aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-02-28 13:16:05 +0100
committerAndreas Jaeger <aj@suse.de>2012-02-28 13:16:05 +0100
commit94c3cff5832a7f3f0a53674a644a7d3b3633eb8f (patch)
tree6ac6f004b727a026e48ee10fab44362b7091bab8 /sysdeps
parentfabe2a9514d60183408a0bb0d874488852b2814a (diff)
downloadglibc-94c3cff5832a7f3f0a53674a644a7d3b3633eb8f.zip
glibc-94c3cff5832a7f3f0a53674a644a7d3b3633eb8f.tar.gz
glibc-94c3cff5832a7f3f0a53674a644a7d3b3633eb8f.tar.bz2
Rename dirfd to __dirfd, add weak_alias.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/dirfd.c5
-rw-r--r--sysdeps/unix/dirfd.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/dirfd.c b/sysdeps/mach/hurd/dirfd.c
index 587ae7b..975bc02 100644
--- a/sysdeps/mach/hurd/dirfd.c
+++ b/sysdeps/mach/hurd/dirfd.c
@@ -1,5 +1,5 @@
/* dirfd -- Return the file descriptor used by a DIR stream. Hurd version.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,7 +22,7 @@
#include <errno.h>
int
-dirfd (DIR *dirp)
+__dirfd (DIR *dirp)
{
int fd;
__mutex_lock (&_hurd_dtable_lock);
@@ -38,3 +38,4 @@ dirfd (DIR *dirp)
return fd;
}
+weak_alias(__dirfd, dirfd)
diff --git a/sysdeps/unix/dirfd.c b/sysdeps/unix/dirfd.c
index 536c44e..0cdacf9 100644
--- a/sysdeps/unix/dirfd.c
+++ b/sysdeps/unix/dirfd.c
@@ -1,5 +1,5 @@
/* Return the file descriptor used by a DIR stream. Unix version.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,8 +22,9 @@
#undef dirfd
int
-dirfd (dirp)
+__dirfd (dirp)
DIR *dirp;
{
return dirp->fd;
}
+weak_alias(__dirfd, dirfd)