vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / unistd / sync.c
blob3f56fe093b1fd741efaf969e96edd316b5bc7029
1 /*
2 ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
7 #include <unistd.h>
9 #include <errno.h>
10 #include <pthread.h>
12 #include <syscall_utils.h>
14 #include <errno_private.h>
15 #include <syscalls.h>
18 int
19 fsync(int fd)
21 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_fsync(fd));
25 void
26 sync(void)
28 _kern_sync();