os/libc/unistd.h

27 lines
474 B
C
Raw Normal View History

2020-07-26 15:38:29 -05:00
/**
* \file
*/
#ifndef UNISTD_H
#define UNISTD_H
#include <sys/types.h>
2020-07-26 15:38:29 -05:00
#ifndef DOXYGEN_SHOULD_SKIP_THIS
pid_t fork(void); // GCC required
int execv(const char* path, char* const argv[]); // GCC required
int execve(const char* path, char* const argv[], char* const envp[]); // GCC required
int execvp(const char* file, char* const argv[]); // GCC required
2020-07-26 15:38:29 -05:00
#endif
/**
* Gets the current process's PID
* \return the current process's PID
*/
pid_t getpid();
2020-07-26 15:38:29 -05:00
#endif