You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
651 B
47 lines
651 B
|
|
|
|
#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;
|
|
}
|