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 8ed8b1e..34872d8 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 2847481..c776978 100644 (file)
@@ -25,3 +25,4 @@ fdatasync (int fildes)
 {
   return fsync (fildes);
 }
+libc_hidden_def (fdatasync)
index e1c37c6..1961dd0 100644 (file)
@@ -25,6 +25,6 @@ fsync (int fd)
   __set_errno (ENOSYS);
   return -1;
 }
-
+libc_hidden_def (fsync)
 
 stub_warning (fsync)
index 0be8072..68df551 100644 (file)
@@ -41,3 +41,4 @@ fdatasync (int fd)
     }
   return 0;
 }
+libc_hidden_def (fdatasync)
index ef04ee9..c1d560f 100644 (file)
@@ -41,3 +41,4 @@ fsync (int fd)
     }
   return 0;
 }
+libc_hidden_def (fsync)
index 84c07f2..12fb3c1 100644 (file)
@@ -27,3 +27,4 @@ fdatasync (int fd)
 {
   return SYSCALL_CANCEL (fdatasync, fd);
 }
+libc_hidden_def (fdatasync)
index 234bb00..e4b5c8c 100644 (file)
@@ -26,3 +26,4 @@ fsync (int fd)
 {
   return SYSCALL_CANCEL (fsync, fd);
 }
+libc_hidden_def (fsync)