apio
12cf37d0a7
Previously, sys_write only wrote to the tty. Now, it uses the VFS interface, as it should.
26 lines
476 B
C
26 lines
476 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);
|
|
ssize_t write(int, const void*, size_t);
|
|
int close(int);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |