Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/sysvi386/wait.s')
-rw-r--r--newlib/libc/sys/sysvi386/wait.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/newlib/libc/sys/sysvi386/wait.s b/newlib/libc/sys/sysvi386/wait.s
new file mode 100644
index 000000000..1ae8b0c6b
--- /dev/null
+++ b/newlib/libc/sys/sysvi386/wait.s
@@ -0,0 +1,13 @@
+ .globl _wait
+ .globl wait
+_wait:
+wait:
+ movl $0x7, %eax
+ lcall $7,$0
+ jb _cerror
+ movl 4(%esp), %ecx
+ testl %ecx, %ecx
+ je bye
+ movl %edx, (%ecx)
+bye:
+ ret