Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libc / sys / sysvi386 / waitpid.S
blob598099f91dfdb66edada23078be3ba5be9360124
1         .globl  _waitpid
2         .globl  waitpid
3 _waitpid:
4 waitpid:        
5         pushfl
6         popl    %eax
7         orl     $0x8c4,%eax
8         pushl   %eax
9         popfl
10         movl    $0x7, %eax
11         lcall   $7,$0
12         jb      _cerror
13         movl    8(%esp), %ecx
14         testl   %ecx, %ecx
15         je      bye
16         movl    %edx, (%ecx)
17 bye:
18         ret