mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
Add hidden prototypes for fsync, fdatasync
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
3c79234c7a
commit
412b05fec9
@ -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);
|
||||
|
@ -25,3 +25,4 @@ fdatasync (int fildes)
|
||||
{
|
||||
return fsync (fildes);
|
||||
}
|
||||
libc_hidden_def (fdatasync)
|
||||
|
@ -25,6 +25,6 @@ fsync (int fd)
|
||||
__set_errno (ENOSYS);
|
||||
return -1;
|
||||
}
|
||||
|
||||
libc_hidden_def (fsync)
|
||||
|
||||
stub_warning (fsync)
|
||||
|
@ -41,3 +41,4 @@ fdatasync (int fd)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
libc_hidden_def (fdatasync)
|
||||
|
@ -41,3 +41,4 @@ fsync (int fd)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
libc_hidden_def (fsync)
|
||||
|
@ -27,3 +27,4 @@ fdatasync (int fd)
|
||||
{
|
||||
return SYSCALL_CANCEL (fdatasync, fd);
|
||||
}
|
||||
libc_hidden_def (fdatasync)
|
||||
|
@ -26,3 +26,4 @@ fsync (int fd)
|
||||
{
|
||||
return SYSCALL_CANCEL (fsync, fd);
|
||||
}
|
||||
libc_hidden_def (fsync)
|
||||
|
Loading…
Reference in New Issue
Block a user