1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Add hidden prototypes for fsync, fdatasync

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer
2021-06-22 09:50:27 +02:00
parent 3c79234c7a
commit 412b05fec9
7 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,8 @@ libc_hidden_proto (seteuid)
libc_hidden_proto (setegid) libc_hidden_proto (setegid)
libc_hidden_proto (tcgetpgrp) libc_hidden_proto (tcgetpgrp)
libc_hidden_proto (readlinkat) libc_hidden_proto (readlinkat)
libc_hidden_proto (fsync)
libc_hidden_proto (fdatasync)
/* Now define the internal interfaces. */ /* Now define the internal interfaces. */
extern int __access (const char *__name, int __type); extern int __access (const char *__name, int __type);

View File

@ -25,3 +25,4 @@ fdatasync (int fildes)
{ {
return fsync (fildes); return fsync (fildes);
} }
libc_hidden_def (fdatasync)

View File

@ -25,6 +25,6 @@ fsync (int fd)
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;
} }
libc_hidden_def (fsync)
stub_warning (fsync) stub_warning (fsync)

View File

@ -41,3 +41,4 @@ fdatasync (int fd)
} }
return 0; return 0;
} }
libc_hidden_def (fdatasync)

View File

@ -41,3 +41,4 @@ fsync (int fd)
} }
return 0; return 0;
} }
libc_hidden_def (fsync)

View File

@ -27,3 +27,4 @@ fdatasync (int fd)
{ {
return SYSCALL_CANCEL (fdatasync, fd); return SYSCALL_CANCEL (fdatasync, fd);
} }
libc_hidden_def (fdatasync)

View File

@ -26,3 +26,4 @@ fsync (int fd)
{ {
return SYSCALL_CANCEL (fsync, fd); return SYSCALL_CANCEL (fsync, fd);
} }
libc_hidden_def (fsync)