public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [hurd,commited] hurd: Avoid PLT for dirfd
@ 2018-04-04 23:53 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2018-04-04 23:53 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault

	* include/dirent.h (dirfd): Add hidden proto.
	* dirent/dirfd.c (dirfd): Add hidden def.
	* sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
	* sysdeps/posix/dirfd.c (dirfd): Add hidden def.
---
 ChangeLog                 | 4 ++++
 dirent/dirfd.c            | 1 +
 include/dirent.h          | 1 +
 sysdeps/mach/hurd/dirfd.c | 1 +
 sysdeps/posix/dirfd.c     | 1 +
 5 files changed, 8 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 58d4d94ec0..73ce5991f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,10 @@
 	* include/setjmp.h (longjmp, siglongjmp): Add hidden protos.
 	* setjmp/longjmp.c (longjmp, siglongjmp): Add hidden defs.
 	* sysdeps/s390/longjmp.c (longjmp, siglongjmp): Add hidden defs.
+	* include/dirent.h (dirfd): Add hidden proto.
+	* dirent/dirfd.c (dirfd): Add hidden def.
+	* sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
+	* sysdeps/posix/dirfd.c (dirfd): Add hidden def.
 
 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
 
diff --git a/dirent/dirfd.c b/dirent/dirfd.c
index b45bf83f5a..8e59cfa928 100644
--- a/dirent/dirfd.c
+++ b/dirent/dirfd.c
@@ -29,3 +29,4 @@ __dirfd (DIR *dirp)
 
 weak_alias (__dirfd, dirfd)
 stub_warning (dirfd)
+libc_hidden_def (dirfd)
diff --git a/include/dirent.h b/include/dirent.h
index cc8f1895df..e533b0b59d 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -49,6 +49,7 @@ extern DIR *__alloc_dir (int fd, bool close_fd, int flags,
 extern __typeof (rewinddir) __rewinddir;
 extern __typeof (seekdir) __seekdir;
 extern __typeof (dirfd) __dirfd;
+libc_hidden_proto (dirfd);
 
 extern void __scandir_cancel_handler (void *arg) attribute_hidden;
 extern int __scandir_tail (DIR *dp,
diff --git a/sysdeps/mach/hurd/dirfd.c b/sysdeps/mach/hurd/dirfd.c
index a184b72586..f70ee8d3e3 100644
--- a/sysdeps/mach/hurd/dirfd.c
+++ b/sysdeps/mach/hurd/dirfd.c
@@ -43,3 +43,4 @@ __dirfd (DIR *dirp)
 }
 
 weak_alias (__dirfd, dirfd)
+libc_hidden_def (dirfd)
diff --git a/sysdeps/posix/dirfd.c b/sysdeps/posix/dirfd.c
index e09a45d717..5afc9f37e7 100644
--- a/sysdeps/posix/dirfd.c
+++ b/sysdeps/posix/dirfd.c
@@ -28,3 +28,4 @@ __dirfd (DIR *dirp)
 }
 
 weak_alias (__dirfd, dirfd)
+libc_hidden_def (dirfd)
-- 
2.16.2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-04 23:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-04 23:53 [hurd,commited] hurd: Avoid PLT for dirfd Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).