ArvernOS
Loading...
Searching...
No Matches
unistd.h File Reference
#include <sys/syscall.h>
#include <sys/types.h>
Include dependency graph for unistd.h:

Macros

#define ENVIRON_SIZE   10

Functions

pid_t fork (void)

Variables

char * environ [ENVIRON_SIZE]

Detailed Description

This file is a "proxy" header to ease compatibility with existing software.

Macro Definition Documentation

◆ ENVIRON_SIZE

#define ENVIRON_SIZE   10

Maximum number of environment variables (with the last entry reserved for the NULL terminator).

Function Documentation

◆ fork()

pid_t fork ( void )

Forks the current process.

Returns
the child pid in the parent, 0 in the child, or a negative errno.

Variable Documentation

◆ environ

char* environ[ENVIRON_SIZE]
extern
Todo
Use malloc() when it becomes possible.