Irina Tirdea | 1ad10a5 | 2012-08-29 11:48:35 +0300 | [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> |
Irina Tirdea | 1ad10a5 | 2012-08-29 11:48:35 +0300 | [diff] [blame] | 4 | #include <sys/linux-syscalls.h> |
5 | |||||
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 6 | ENTRY(getsid) |
Irina Tirdea | 1ad10a5 | 2012-08-29 11:48:35 +0300 | [diff] [blame] | 7 | pushl %ebx |
8 | mov 8(%esp), %ebx | ||||
9 | movl $__NR_getsid, %eax | ||||
10 | int $0x80 | ||||
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame^] | 11 | cmpl $-MAX_ERRNO, %eax |
Irina Tirdea | 1ad10a5 | 2012-08-29 11:48:35 +0300 | [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(getsid) |