parent
477f97e918
commit
61a50b32ae
@ -0,0 +1,16 @@
|
||||
#define __LIBRARY__
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
#include <asm/segment.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
int sys_sleep(unsigned int seconds)
|
||||
{
|
||||
sys_signal(SIGALRM, SIG_IGN, NULL);
|
||||
sys_alarm(seconds);
|
||||
sys_pause();
|
||||
return 0;
|
||||
}
|
Loading…
Reference in new issue