summaryrefslogtreecommitdiffstats
path: root/libc/include/sys
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-09-27 17:28:38 +0200
committerDavid 'Digit' Turner <digit@google.com>2010-09-28 09:17:17 +0200
commita3ae60d343661784e3f6f4566b276d8e6b8a06a7 (patch)
tree08c1d005960477585df8fd5e0a14b421f4767643 /libc/include/sys
parent307aadb8473744c3d946add8b3e4947ada5481aa (diff)
downloadbionic-a3ae60d343661784e3f6f4566b276d8e6b8a06a7.zip
bionic-a3ae60d343661784e3f6f4566b276d8e6b8a06a7.tar.gz
bionic-a3ae60d343661784e3f6f4566b276d8e6b8a06a7.tar.bz2
libc: Add missing fdatasync() implementation
Change-Id: I04bb655d77e414021e1f2a973329167ad76ca1c4
Diffstat (limited to 'libc/include/sys')
-rw-r--r--libc/include/sys/linux-syscalls.h1
-rw-r--r--libc/include/sys/linux-unistd.h1
2 files changed, 2 insertions, 0 deletions
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 *);