12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #include <_lfs_64.h>
- #include <sys/syscall.h>
- #ifdef __NR_fadvise64_64
- .text
- .global posix_fadvise64
- .type posix_fadvise64,%function
- posix_fadvise64:
-
- pushl %ebp
- pushl %ebx
- pushl %esi
- pushl %edi
- movl $__NR_fadvise64_64, %eax
- movl 20(%esp), %ebx
- movl 24(%esp), %ecx
- movl 28(%esp), %edx
- movl 32(%esp), %esi
- movl 36(%esp), %edi
- movl 40(%esp), %ebp
-
- int $0x80
-
- popl %edi
- popl %esi
- popl %ebx
- popl %ebp
-
- negl %eax
-
- ret
- .size posix_fadvise64,.-posix_fadvise64
- #endif
|