apio
9e0bd39964
read() and close() are in unistd.h, but open() in fnctl.h. I thought only the definitions for O_SOMETHING were in fnctl.h, but it is as it is. Don't know why, but let's not anger the Unix gods. The FILE* C API is pending as well.
25 lines
431 B
C
25 lines
431 B
C
#ifndef _UNISTD_H
|
|
#define _UNISTD_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
int execv(const char*, char* const[]);
|
|
int execve(const char*, char* const[], char* const[]);
|
|
int execvp(const char*, char* const[]);
|
|
pid_t fork(void);
|
|
long syscall(long, ...);
|
|
unsigned int sleep(unsigned int);
|
|
|
|
ssize_t read(int, void*, size_t);
|
|
int close(int);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |