summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/sysinfo.S
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-05-20 10:55:45 -0700
committerDavid 'Digit' Turner <digit@google.com>2010-06-09 13:12:15 -0700
commitaa4b1d042927872224e4bf5d22e4db5367e389fa (patch)
treede40a80b8f9d1d2dd6a75b45901927378a1aed45 /libc/arch-x86/syscalls/sysinfo.S
parent6304d8b21891fd0cb7b5a4c25159a3d3b1709d62 (diff)
downloadbionic-aa4b1d042927872224e4bf5d22e4db5367e389fa.zip
bionic-aa4b1d042927872224e4bf5d22e4db5367e389fa.tar.gz
bionic-aa4b1d042927872224e4bf5d22e4db5367e389fa.tar.bz2
Add missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - DO NOT MERGE
Change-Id: Iac4eb5911ffe4a7ab72b84df44e907685ac816af
Diffstat (limited to 'libc/arch-x86/syscalls/sysinfo.S')
-rw-r--r--libc/arch-x86/syscalls/sysinfo.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/libc/arch-x86/syscalls/sysinfo.S b/libc/arch-x86/syscalls/sysinfo.S
new file mode 100644
index 0000000..c60c37b
--- /dev/null
+++ b/libc/arch-x86/syscalls/sysinfo.S
@@ -0,0 +1,23 @@
+/* autogenerated by gensyscalls.py */
+#include <sys/linux-syscalls.h>
+
+ .text
+ .type sysinfo, @function
+ .globl sysinfo
+ .align 4
+
+sysinfo:
+ pushl %ebx
+ mov 8(%esp), %ebx
+ movl $__NR_sysinfo, %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