10 struct timespec req
= {n
, 0};
12 if (nanosleep(&req
, &rem
))
17 #define EXECARGS (1 << 7)
19 int execle(char *path
, ...)
26 while (argc
+ 1 < EXECARGS
&& (argv
[argc
] = va_arg(ap
, char *)))
28 envp
= va_arg(ap
, char **);
31 execve(path
, argv
, envp
);
35 int execvp(char *cmd
, char *argv
[])
38 char *p
= getenv("PATH");
40 return execve(cmd
, argv
, environ
);
45 while (*p
&& *p
!= ':')
50 execve(path
, argv
, environ
);
59 return waitpid(-1, status
, 0);
64 return kill(getpid(), sig
);