]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/fdatasync.c
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / common / fdatasync.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * fdatasync() for uClibc
4  *
5  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
6  *
7  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8  */
9
10 #include <sys/syscall.h>
11
12 #if !defined __NR_fdatasync && defined __NR_osf_fdatasync
13 # define __NR_fdatasync __NR_osf_fdatasync
14 #endif
15
16 #ifdef __NR_fdatasync
17 # include <unistd.h>
18 # include <cancel.h>
19
20 # define __NR___fdatasync_nocancel __NR_fdatasync
21 static _syscall1(int, __NC(fdatasync), int, fd)
22
23 CANCELLABLE_SYSCALL(int, fdatasync, (int fd), (fd))
24 #endif