From: Florian Weimer Date: Thu, 31 Aug 2017 14:02:40 +0000 (+0200) Subject: dirent: Remove internal_function attribute X-Git-Tag: upstream/2.30~2703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc3d94979e1f04df2014b4c1a01c39a0a74f12c3;p=platform%2Fupstream%2Fglibc.git dirent: Remove internal_function attribute --- diff --git a/ChangeLog b/ChangeLog index 7cbac7a..eb93924 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 2017-08-31 Florian Weimer + * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function. + * include/dirent.h (__opendirat, __getdents, __getdents64) + (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise. + * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise. + * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise. + * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64): + Likewise. + * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise. + +2017-08-31 Florian Weimer + * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove internal_function. (GETCWD_RETURN_TYPE): Likewise. diff --git a/dirent/scandir-tail.c b/dirent/scandir-tail.c index 7810fb4..068c644 100644 --- a/dirent/scandir-tail.c +++ b/dirent/scandir-tail.c @@ -28,7 +28,6 @@ # define DIRENT_TYPE struct dirent #endif -internal_function int SCANDIR_TAIL (DIR *dp, DIRENT_TYPE ***namelist, diff --git a/include/dirent.h b/include/dirent.h index c792e53..bebcd52 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -16,8 +16,7 @@ struct scandir_cancel_struct /* Now define the internal interfaces. */ extern DIR *__opendir (const char *__name); -extern DIR *__opendirat (int dfd, const char *__name) - internal_function attribute_hidden; +extern DIR *__opendirat (int dfd, const char *__name) attribute_hidden; extern DIR *__fdopendir (int __fd); extern int __closedir (DIR *__dirp); extern struct dirent *__readdir (DIR *__dirp); @@ -36,17 +35,16 @@ extern __ssize_t __getdirentries (int __fd, char *__restrict __buf, __off_t *__restrict __basep) __THROW __nonnull ((2, 4)); extern __ssize_t __getdents (int __fd, char *__buf, size_t __nbytes) - internal_function attribute_hidden; + attribute_hidden; extern __ssize_t __getdents64 (int __fd, char *__buf, size_t __nbytes) - internal_function attribute_hidden; + attribute_hidden; extern int __alphasort64 (const struct dirent64 **a, const struct dirent64 **b) __attribute_pure__; extern int __versionsort64 (const struct dirent64 **a, const struct dirent64 **b) __attribute_pure__; extern DIR *__alloc_dir (int fd, bool close_fd, int flags, - const struct stat64 *statp) - internal_function attribute_hidden; + const struct stat64 *statp) attribute_hidden; extern __typeof (rewinddir) __rewinddir; extern void __scandir_cancel_handler (void *arg) attribute_hidden; @@ -55,7 +53,7 @@ extern int __scandir_tail (DIR *dp, int (*select) (const struct dirent *), int (*cmp) (const struct dirent **, const struct dirent **)) - internal_function attribute_hidden; + attribute_hidden; # ifdef _DIRENT_MATCHES_DIRENT64 # define __scandir64_tail (dp, namelist, select, cmp) \ __scandir_tail (dp, (struct dirent ***) (namelist), \ @@ -68,7 +66,7 @@ extern int __scandir64_tail (DIR *dp, int (*select) (const struct dirent64 *), int (*cmp) (const struct dirent64 **, const struct dirent64 **)) - internal_function attribute_hidden; + attribute_hidden; # endif libc_hidden_proto (__rewinddir) diff --git a/sysdeps/mach/hurd/opendir.c b/sysdeps/mach/hurd/opendir.c index d3757f0..2e1d1a0 100644 --- a/sysdeps/mach/hurd/opendir.c +++ b/sysdeps/mach/hurd/opendir.c @@ -69,7 +69,6 @@ _hurd_fd_opendir (struct hurd_fd *d) DIR * -internal_function __opendirat (int dfd, const char *name) { if (name[0] == '\0') diff --git a/sysdeps/posix/opendir.c b/sysdeps/posix/opendir.c index 880ebc9..99869b4 100644 --- a/sysdeps/posix/opendir.c +++ b/sysdeps/posix/opendir.c @@ -139,7 +139,6 @@ opendir_tail (int fd) #if IS_IN (libc) DIR * -internal_function __opendirat (int dfd, const char *name) { if (__glibc_unlikely (invalid_name (name))) @@ -193,7 +192,6 @@ __opendir (const char *name) weak_alias (__opendir, opendir) DIR * -internal_function __alloc_dir (int fd, bool close_fd, int flags, const struct stat64 *statp) { /* We have to set the close-on-exit flag if the user provided the diff --git a/sysdeps/unix/sysv/linux/getdents.c b/sysdeps/unix/sysv/linux/getdents.c index 4794eb7..fb2bc1c 100644 --- a/sysdeps/unix/sysv/linux/getdents.c +++ b/sysdeps/unix/sysv/linux/getdents.c @@ -76,7 +76,6 @@ struct kernel_dirent64 reset the file descriptor. In practice the kernel is limiting the amount of data returned much more then the reduced buffer size. */ ssize_t -internal_function __GETDENTS (int fd, char *buf, size_t nbytes) { ssize_t retval; diff --git a/sysdeps/unix/sysv/linux/i386/olddirent.h b/sysdeps/unix/sysv/linux/i386/olddirent.h index 8f2fcb7..0b4c81d 100644 --- a/sysdeps/unix/sysv/linux/i386/olddirent.h +++ b/sysdeps/unix/sysv/linux/i386/olddirent.h @@ -34,8 +34,7 @@ extern struct __old_dirent64 *__old_readdir64 (DIR *__dirp); libc_hidden_proto (__old_readdir64); extern int __old_readdir64_r (DIR *__dirp, struct __old_dirent64 *__entry, struct __old_dirent64 **__result); -extern __ssize_t __old_getdents64 (int __fd, char *__buf, size_t __nbytes) - internal_function; +extern __ssize_t __old_getdents64 (int __fd, char *__buf, size_t __nbytes); int __old_scandir64 (const char * __dir, struct __old_dirent64 *** __namelist, int (*__selector) (const struct __old_dirent64 *),