From: Florian Weimer Date: Tue, 22 Jun 2021 07:50:27 +0000 (+0200) Subject: Add hidden prototypes for fsync, fdatasync X-Git-Tag: glibc-2.34~262 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=412b05fec9323a093fe271ae01b4083ea2d1fc1f;p=thirdparty%2Fglibc.git Add hidden prototypes for fsync, fdatasync Reviewed-by: Adhemerval Zanella --- diff --git a/include/unistd.h b/include/unistd.h index 8ed8b1ea4b8..34872d8b413 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -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); diff --git a/misc/fdatasync.c b/misc/fdatasync.c index 28474812ca2..c776978bba6 100644 --- a/misc/fdatasync.c +++ b/misc/fdatasync.c @@ -25,3 +25,4 @@ fdatasync (int fildes) { return fsync (fildes); } +libc_hidden_def (fdatasync) diff --git a/misc/fsync.c b/misc/fsync.c index e1c37c6016d..1961dd0cb2a 100644 --- a/misc/fsync.c +++ b/misc/fsync.c @@ -25,6 +25,6 @@ fsync (int fd) __set_errno (ENOSYS); return -1; } - +libc_hidden_def (fsync) stub_warning (fsync) diff --git a/sysdeps/mach/hurd/fdatasync.c b/sysdeps/mach/hurd/fdatasync.c index 0be8072e7fc..68df5510169 100644 --- a/sysdeps/mach/hurd/fdatasync.c +++ b/sysdeps/mach/hurd/fdatasync.c @@ -41,3 +41,4 @@ fdatasync (int fd) } return 0; } +libc_hidden_def (fdatasync) diff --git a/sysdeps/mach/hurd/fsync.c b/sysdeps/mach/hurd/fsync.c index ef04ee97f9c..c1d560f2939 100644 --- a/sysdeps/mach/hurd/fsync.c +++ b/sysdeps/mach/hurd/fsync.c @@ -41,3 +41,4 @@ fsync (int fd) } return 0; } +libc_hidden_def (fsync) diff --git a/sysdeps/unix/sysv/linux/fdatasync.c b/sysdeps/unix/sysv/linux/fdatasync.c index 84c07f212e2..12fb3c13e5f 100644 --- a/sysdeps/unix/sysv/linux/fdatasync.c +++ b/sysdeps/unix/sysv/linux/fdatasync.c @@ -27,3 +27,4 @@ fdatasync (int fd) { return SYSCALL_CANCEL (fdatasync, fd); } +libc_hidden_def (fdatasync) diff --git a/sysdeps/unix/sysv/linux/fsync.c b/sysdeps/unix/sysv/linux/fsync.c index 234bb0049f6..e4b5c8c3422 100644 --- a/sysdeps/unix/sysv/linux/fsync.c +++ b/sysdeps/unix/sysv/linux/fsync.c @@ -26,3 +26,4 @@ fsync (int fd) { return SYSCALL_CANCEL (fsync, fd); } +libc_hidden_def (fsync)