Initial Windows port
This commit is contained in:
committed by
Love Hornquist Astrand
parent
25a2ac726b
commit
b1063ea8fc
@@ -78,7 +78,7 @@ sigtimeout(int sig)
|
||||
SIGRETURN(0);
|
||||
}
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
wait_for_process_timed(pid_t pid, time_t (*func)(void *),
|
||||
void *ptr, time_t timeout)
|
||||
{
|
||||
@@ -134,13 +134,13 @@ wait_for_process_timed(pid_t pid, time_t (*func)(void *),
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
wait_for_process(pid_t pid)
|
||||
{
|
||||
return wait_for_process_timed(pid, NULL, NULL, 0);
|
||||
}
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
pipe_execv(FILE **stdin_fd, FILE **stdout_fd, FILE **stderr_fd,
|
||||
const char *file, ...)
|
||||
{
|
||||
@@ -229,7 +229,7 @@ pipe_execv(FILE **stdin_fd, FILE **stdout_fd, FILE **stderr_fd,
|
||||
return pid;
|
||||
}
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
simple_execvp_timed(const char *file, char *const args[],
|
||||
time_t (*func)(void *), void *ptr, time_t timeout)
|
||||
{
|
||||
@@ -245,14 +245,14 @@ simple_execvp_timed(const char *file, char *const args[],
|
||||
}
|
||||
}
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
simple_execvp(const char *file, char *const args[])
|
||||
{
|
||||
return simple_execvp_timed(file, args, NULL, NULL, 0);
|
||||
}
|
||||
|
||||
/* gee, I'd like a execvpe */
|
||||
int ROKEN_LIB_FUNCTION
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
simple_execve_timed(const char *file, char *const args[], char *const envp[],
|
||||
time_t (*func)(void *), void *ptr, time_t timeout)
|
||||
{
|
||||
@@ -268,13 +268,13 @@ simple_execve_timed(const char *file, char *const args[], char *const envp[],
|
||||
}
|
||||
}
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
simple_execve(const char *file, char *const args[], char *const envp[])
|
||||
{
|
||||
return simple_execve_timed(file, args, envp, NULL, NULL, 0);
|
||||
}
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
simple_execlp(const char *file, ...)
|
||||
{
|
||||
va_list ap;
|
||||
@@ -291,7 +291,7 @@ simple_execlp(const char *file, ...)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
simple_execle(const char *file, ... /* ,char *const envp[] */)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
Reference in New Issue
Block a user