David 'Digit' Turner | a3ae60d | 2010-09-27 17:28:38 +0200 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame^] | 2 | #include <linux/err.h> |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 3 | #include <machine/asm.h> |
David 'Digit' Turner | a3ae60d | 2010-09-27 17:28:38 +0200 | [diff] [blame] | 4 | #include <sys/linux-syscalls.h> |
| 5 | |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 6 | ENTRY(fdatasync) |
David 'Digit' Turner | a3ae60d | 2010-09-27 17:28:38 +0200 | [diff] [blame] | 7 | pushl %ebx |
| 8 | mov 8(%esp), %ebx |
| 9 | movl $__NR_fdatasync, %eax |
| 10 | int $0x80 |
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame^] | 11 | cmpl $-MAX_ERRNO, %eax |
David 'Digit' Turner | a3ae60d | 2010-09-27 17:28:38 +0200 | [diff] [blame] | 12 | jb 1f |
| 13 | negl %eax |
| 14 | pushl %eax |
| 15 | call __set_errno |
| 16 | addl $4, %esp |
| 17 | orl $-1, %eax |
| 18 | 1: |
| 19 | popl %ebx |
| 20 | ret |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 21 | END(fdatasync) |