/ sysleep.s / EMACS_MODES: !c !fill / This file contains the c interface to the sleep (II) system call. / The icmp daemon uses the system sleep call rather than the standard / C library sleep (sleep (III)) because there is a critical race in / the C library implementation which could result in the process / pausing forever. This is a horrible bug in the UNIX process / control mechanism. .globl _sleep / C calling sequence : / sleep (secs) / int secs; /* time to sleep in seconds */ _sleep: mov 2(sp),r0 / get sleep time sys sleep / do it rts pc