]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
dirent: Remove internal_function attribute
authorFlorian Weimer <fweimer@redhat.com>
Thu, 31 Aug 2017 14:02:40 +0000 (16:02 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 31 Aug 2017 14:02:40 +0000 (16:02 +0200)
ChangeLog
dirent/scandir-tail.c
include/dirent.h
sysdeps/mach/hurd/opendir.c
sysdeps/posix/opendir.c
sysdeps/unix/sysv/linux/getdents.c
sysdeps/unix/sysv/linux/i386/olddirent.h

index 7cbac7a79cb6209188fe2fa738af49088fbac903..eb939245c4c185456b3ac63a1f3099c48b6edd62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2017-08-31  Florian Weimer  <fweimer@redhat.com>
+
+       * 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  <fweimer@redhat.com>
 
        * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
index 7810fb4d4233e7d180d6a49ed1676d9001bb9b2f..068c644c4efe350aea9489ea5406f40b67bdea37 100644 (file)
@@ -28,7 +28,6 @@
 # define DIRENT_TYPE   struct dirent
 #endif
 
-internal_function
 int
 SCANDIR_TAIL (DIR *dp,
               DIRENT_TYPE ***namelist,
index c792e53c96c150a8bc660664021d73018cb87444..bebcd52cdb569b6f7e44159a2774788918eeb719 100644 (file)
@@ -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)
index d3757f00fa4ff59bd54c717ee1d56206ac071470..2e1d1a07b24d58cf2abd449c4cb433d083ab9bd4 100644 (file)
@@ -69,7 +69,6 @@ _hurd_fd_opendir (struct hurd_fd *d)
 
 
 DIR *
-internal_function
 __opendirat (int dfd, const char *name)
 {
   if (name[0] == '\0')
index 880ebc904c34cc85f444795f10f537fed392aa30..99869b4eb4970ec41b39bf56d393e0a07c31f6b2 100644 (file)
@@ -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
index 4794eb737ded08ff8d8e025ade5467d3b1d23274..fb2bc1c05659a4aeacfa75f5281344938c1fdb80 100644 (file)
@@ -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;
index 8f2fcb7a9c01ee642b5a318fe3eda30bb23c67a7..0b4c81da0e96ccad960c96fc5c460dad158b0b61 100644 (file)
@@ -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 *),