hurd: Avoid PLT for dirfd

* 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.
This commit is contained in:
Samuel Thibault 2018-04-05 01:52:29 +02:00
parent e5f9508a32
commit c120981d72
5 changed files with 8 additions and 0 deletions

View File

@ -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>

View File

@ -29,3 +29,4 @@ __dirfd (DIR *dirp)
weak_alias (__dirfd, dirfd)
stub_warning (dirfd)
libc_hidden_def (dirfd)

View File

@ -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,

View File

@ -43,3 +43,4 @@ __dirfd (DIR *dirp)
}
weak_alias (__dirfd, dirfd)
libc_hidden_def (dirfd)

View File

@ -28,3 +28,4 @@ __dirfd (DIR *dirp)
}
weak_alias (__dirfd, dirfd)
libc_hidden_def (dirfd)