summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/fdatasync.S
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/arch-x86/syscalls/fdatasync.S
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/arch-x86/syscalls/fdatasync.S')
-rw-r--r--libc/arch-x86/syscalls/fdatasync.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/libc/arch-x86/syscalls/fdatasync.S b/libc/arch-x86/syscalls/fdatasync.S
new file mode 100644
index 0000000..b86c0f8
--- /dev/null
+++ b/libc/arch-x86/syscalls/fdatasync.S
@@ -0,0 +1,23 @@
+/* autogenerated by gensyscalls.py */
+#include <sys/linux-syscalls.h>
+
+ .text
+ .type fdatasync, @function
+ .globl fdatasync
+ .align 4
+
+fdatasync:
+ pushl %ebx
+ mov 8(%esp), %ebx
+ movl $__NR_fdatasync, %eax
+ int $0x80
+ cmpl $-129, %eax
+ jb 1f
+ negl %eax
+ pushl %eax
+ call __set_errno
+ addl $4, %esp
+ orl $-1, %eax
+1:
+ popl %ebx
+ ret