Luna/libc/include/unistd.h

32 lines
530 B
C
Raw Normal View History

/* unistd.h: POSIX constants and functions. */
#ifndef _UNISTD_H
#define _UNISTD_H
#define __need_NULL
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C"
{
#endif
pid_t fork();
pid_t getpid();
int execv(const char*, char* const*);
int execve(const char*, char* const*, char* const*);
int execvp(const char*, char* const*);
/* Calls the operating system kernel for a specific service. */
long syscall(long num, ...);
#ifdef __cplusplus
}
#endif
#endif