banan-os/libc/include/unistd.h

22 lines
367 B
C
Raw Normal View History

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