diff options
author | Ken Sumrall <ksumrall@android.com> | 2011-03-18 11:55:12 -0700 |
---|---|---|
committer | Ken Sumrall <ksumrall@android.com> | 2011-03-24 18:18:48 -0700 |
commit | ae2d5ba31412c4f382ef405000baa866f35dd736 (patch) | |
tree | 54338fc3fa81d2ff665cf259570b7684c0453269 /libc/arch-x86/syscalls/utimensat.S | |
parent | ec7e8cc9dddafc624cd28939c1a38ea336c89455 (diff) | |
download | bionic-ae2d5ba31412c4f382ef405000baa866f35dd736.zip bionic-ae2d5ba31412c4f382ef405000baa866f35dd736.tar.gz bionic-ae2d5ba31412c4f382ef405000baa866f35dd736.tar.bz2 |
Add support for the utimensat(2) syscall to bionic.
The kernel has supported this syscall for quite some time now,
but bionic did not. Now that there is a need for it, let's
add it to bionic.
Change-Id: Ifcef3e46f1438d79435b600c4e6063857ab16903
Diffstat (limited to 'libc/arch-x86/syscalls/utimensat.S')
-rw-r--r-- | libc/arch-x86/syscalls/utimensat.S | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libc/arch-x86/syscalls/utimensat.S b/libc/arch-x86/syscalls/utimensat.S new file mode 100644 index 0000000..e2032b5 --- /dev/null +++ b/libc/arch-x86/syscalls/utimensat.S @@ -0,0 +1,32 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type utimensat, @function + .globl utimensat + .align 4 + +utimensat: + pushl %ebx + pushl %ecx + pushl %edx + pushl %esi + mov 20(%esp), %ebx + mov 24(%esp), %ecx + mov 28(%esp), %edx + mov 32(%esp), %esi + movl $__NR_utimensat, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %esi + popl %edx + popl %ecx + popl %ebx + ret |