2013-10-16 14:27:59 -07:00
|
|
|
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
|
2013-10-01 13:29:43 -07:00
|
|
|
#include <asm/unistd.h>
|
2013-03-12 14:57:30 -07:00
|
|
|
#include <linux/err.h>
|
2013-02-06 17:08:15 -08:00
|
|
|
#include <machine/asm.h>
|
2009-03-03 19:28:35 -08:00
|
|
|
|
2013-02-06 17:08:15 -08:00
|
|
|
ENTRY(getdents)
|
2009-03-03 19:28:35 -08:00
|
|
|
pushl %ebx
|
|
|
|
pushl %ecx
|
|
|
|
pushl %edx
|
|
|
|
mov 16(%esp), %ebx
|
|
|
|
mov 20(%esp), %ecx
|
|
|
|
mov 24(%esp), %edx
|
|
|
|
movl $__NR_getdents64, %eax
|
|
|
|
int $0x80
|
2013-03-12 14:57:30 -07:00
|
|
|
cmpl $-MAX_ERRNO, %eax
|
2009-03-03 19:28:35 -08:00
|
|
|
jb 1f
|
|
|
|
negl %eax
|
|
|
|
pushl %eax
|
|
|
|
call __set_errno
|
|
|
|
addl $4, %esp
|
|
|
|
orl $-1, %eax
|
|
|
|
1:
|
|
|
|
popl %edx
|
|
|
|
popl %ecx
|
|
|
|
popl %ebx
|
|
|
|
ret
|
2013-02-06 17:08:15 -08:00
|
|
|
END(getdents)
|