]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add hidden prototypes for fsync, fdatasync
authorFlorian Weimer <fweimer@redhat.com>
Tue, 22 Jun 2021 07:50:27 +0000 (09:50 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 22 Jun 2021 07:51:14 +0000 (09:51 +0200)
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/unistd.h
misc/fdatasync.c
misc/fsync.c
sysdeps/mach/hurd/fdatasync.c
sysdeps/mach/hurd/fsync.c
sysdeps/unix/sysv/linux/fdatasync.c
sysdeps/unix/sysv/linux/fsync.c

index 8ed8b1ea4b88aca17a9692df8e7b5864ff209daf..34872d8b4133a9c925f5b42076800316a8e0d8e9 100644 (file)
@@ -25,6 +25,8 @@ libc_hidden_proto (seteuid)
 libc_hidden_proto (setegid)
 libc_hidden_proto (tcgetpgrp)
 libc_hidden_proto (readlinkat)
+libc_hidden_proto (fsync)
+libc_hidden_proto (fdatasync)
 
 /* Now define the internal interfaces.  */
 extern int __access (const char *__name, int __type);
index 28474812ca23419328a63c20fcb0cec66f33aeef..c776978bba6e435701338d1a58fa1940e56a34c8 100644 (file)
@@ -25,3 +25,4 @@ fdatasync (int fildes)
 {
   return fsync (fildes);
 }
+libc_hidden_def (fdatasync)
index e1c37c6016d8fe37c77668d2e7794ef71aa54db0..1961dd0cb2a30c739e875270ad80f977f1cc4d0a 100644 (file)
@@ -25,6 +25,6 @@ fsync (int fd)
   __set_errno (ENOSYS);
   return -1;
 }
-
+libc_hidden_def (fsync)
 
 stub_warning (fsync)
index 0be8072e7fcd3e631561c9f3d3f9b3b191e27c4d..68df5510169b572604a7eb8c2764371893466c47 100644 (file)
@@ -41,3 +41,4 @@ fdatasync (int fd)
     }
   return 0;
 }
+libc_hidden_def (fdatasync)
index ef04ee97f9c30db95b71374c96e64b817fef5e94..c1d560f2939186f602b53ecf359852952a62dd39 100644 (file)
@@ -41,3 +41,4 @@ fsync (int fd)
     }
   return 0;
 }
+libc_hidden_def (fsync)
index 84c07f212e2b6e4de466daaf8a017a28e4593889..12fb3c13e5f6a24353380c4f632de5808a7da287 100644 (file)
@@ -27,3 +27,4 @@ fdatasync (int fd)
 {
   return SYSCALL_CANCEL (fdatasync, fd);
 }
+libc_hidden_def (fdatasync)
index 234bb0049f6b17588a3f85594ebfdba9e571f3d5..e4b5c8c34229db1357becc8cbceb9b0a03060ceb 100644 (file)
@@ -26,3 +26,4 @@ fsync (int fd)
 {
   return SYSCALL_CANCEL (fsync, fd);
 }
+libc_hidden_def (fsync)