parent
ab543c60d1
commit
c38b7e971d
@ -0,0 +1,46 @@
|
||||
|
||||
|
||||
#define _LIBRARY_
|
||||
#include <errno.h>
|
||||
#include<unistd.h>
|
||||
#include<signal.h>
|
||||
#include<time.h>
|
||||
#include<linux/sched.h>
|
||||
|
||||
int sys_sleep(unsigned int seconds);
|
||||
int sys_execve2(const char *path, char * argv[], char * envp[])
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
int sys_getdents(unsigned int fd, struct linux_dirent *dirp, unsigned int count)
|
||||
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int sys_pipe2(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int sys_sleep(unsigned int seconds)
|
||||
{
|
||||
long s = sys_signal(SIGALRM,SIG_IGN,NULL);
|
||||
if (s <0) return -1;
|
||||
int c = sys_alarm(seconds);
|
||||
pause();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
long sys_getcwd(char * buf, size_t size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in new issue