2023-04-05 00:59:48 +03:00
|
|
|
#pragma once
|
|
|
|
|
2023-04-05 23:58:40 +03:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
2023-04-05 00:59:48 +03:00
|
|
|
#define STDIN_FILENO 0
|
|
|
|
#define STDOUT_FILENO 1
|
|
|
|
#define STDERR_FILENO 2
|
2023-04-05 23:58:40 +03:00
|
|
|
|
|
|
|
// fork(), execv(), execve(), execvp(), getpid()
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
pid_t fork(void);
|
|
|
|
|
|
|
|
int execv(const char*, char* const[]);
|
|
|
|
int execve(const char*, char* const[], char* const[]);
|
|
|
|
int execvp(const char*, char* const[]);
|
|
|
|
|
|
|
|
pid_t getpid(void);
|
|
|
|
|
|
|
|
__END_DECLS
|