1/* Generated by gensyscalls.py. Do not edit. */ 2 3#include <private/bionic_asm.h> 4 5ENTRY(read) 6 pushl %ebx 7 .cfi_def_cfa_offset 8 8 .cfi_rel_offset ebx, 0 9 pushl %ecx 10 .cfi_adjust_cfa_offset 4 11 .cfi_rel_offset ecx, 0 12 pushl %edx 13 .cfi_adjust_cfa_offset 4 14 .cfi_rel_offset edx, 0 15 16 call __kernel_syscall 17 pushl %eax 18 .cfi_adjust_cfa_offset 4 19 .cfi_rel_offset eax, 0 20 21 mov 20(%esp), %ebx 22 mov 24(%esp), %ecx 23 mov 28(%esp), %edx 24 movl $__NR_read, %eax 25 call *(%esp) 26 addl $4, %esp 27 28 cmpl $-MAX_ERRNO, %eax 29 jb 1f 30 negl %eax 31 pushl %eax 32 call __set_errno_internal 33 addl $4, %esp 341: 35 popl %edx 36 popl %ecx 37 popl %ebx 38 ret 39END(read) 40