From a3ae60d343661784e3f6f4566b276d8e6b8a06a7 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Mon, 27 Sep 2010 17:28:38 +0200 Subject: libc: Add missing fdatasync() implementation Change-Id: I04bb655d77e414021e1f2a973329167ad76ca1c4 --- libc/include/sys/linux-syscalls.h | 1 + libc/include/sys/linux-unistd.h | 1 + 2 files changed, 2 insertions(+) (limited to 'libc/include/sys') diff --git a/libc/include/sys/linux-syscalls.h b/libc/include/sys/linux-syscalls.h index 6a7fc40..b90f20d 100644 --- a/libc/include/sys/linux-syscalls.h +++ b/libc/include/sys/linux-syscalls.h @@ -72,6 +72,7 @@ #define __NR__newselect (__NR_SYSCALL_BASE + 142) #define __NR_ftruncate (__NR_SYSCALL_BASE + 93) #define __NR_fsync (__NR_SYSCALL_BASE + 118) +#define __NR_fdatasync (__NR_SYSCALL_BASE + 148) #define __NR_fchown32 (__NR_SYSCALL_BASE + 207) #define __NR_sync (__NR_SYSCALL_BASE + 36) #define __NR_fcntl64 (__NR_SYSCALL_BASE + 221) diff --git a/libc/include/sys/linux-unistd.h b/libc/include/sys/linux-unistd.h index 7494efe..5e9c2f0 100644 --- a/libc/include/sys/linux-unistd.h +++ b/libc/include/sys/linux-unistd.h @@ -85,6 +85,7 @@ int select (int, struct fd_set *, struct fd_set *, struct fd_set *, int ftruncate (int, off_t); int getdents (unsigned int, struct dirent *, unsigned int); int fsync (int); +int fdatasync (int); int fchown (int, uid_t, gid_t); void sync (void); int __fcntl64 (int, int, void *); -- cgit v1.1