diff --git a/myfunction.c b/myfunction.c new file mode 100644 index 0000000..39d6b18 --- /dev/null +++ b/myfunction.c @@ -0,0 +1,46 @@ + + +#define _LIBRARY_ +#include +#include +#include +#include +#include + +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; +}