|
|
|
@ -0,0 +1,21 @@
|
|
|
|
|
#define __LIBRARY__
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <errno.h>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
|
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
|
#include <linux/sched.h>
|
|
|
|
|
#include <asm/segment.h>
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
|
|
int sys_sleep(unsigned int seconds) {
|
|
|
|
|
|
|
|
|
|
sys_signal(SIGALRM, SIG_IGN); /* <20>źŴ<C5BA><C5B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪSIG_IGN<47><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD>ź<EFBFBD> */
|
|
|
|
|
sys_alarm(seconds); /* seconds<64><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>źţ<C5BA><C5A3><EFBFBD><EFBFBD>ѽ<EFBFBD><D1BD><EFBFBD> */
|
|
|
|
|
|
|
|
|
|
if (sys_pause() != -1) /* <20>ٴν<D9B4><CEBD><EFBFBD>˯<EFBFBD><CBAF> */
|
|
|
|
|
return 0;
|
|
|
|
|
return -1;
|
|
|
|
|
}
|