Functions | |
| int | _open (const char *path, int oflag,...) |
| Open file. More... | |
| int | _close (int fildes) |
| Close a file descriptor. More... | |
| ssize_t | _write (int fildes, const void *buf, size_t nbyte) |
| Write on a file. More... | |
| ssize_t | _read (int fildes, void *buf, size_t nbyte) |
| Read from a file. More... | |
| off_t | _lseek (int fildes, off_t offset, int whence) |
| Move the read/write file offset. More... | |
| int | _isatty (int fildes) |
| Test for a terminal device. More... | |
| int | _fstat (int fildes, struct stat *buf) |
| Get file status. More... | |
| int | _stat (const char *path, struct stat *buf) |
| Get file status (by name). More... | |
| int | _link (const char *path1, const char *path2) |
| Link one file to another file. More... | |
| int | _unlink (const char *path) |
| Remove a directory entry. More... | |
| int | _execve (const char *path, char *const argv[], char *const envp[]) |
| Execute a file. More... | |
| pid_t | fork (void) |
| Create a new process. More... | |
| void | _exit (int status) |
| Terminate a process. More... | |
| int | _kill (pid_t pid, int sig) |
| Send a signal to a process or a group of processes. More... | |
| pid_t | _getpid (void) |
| Get the process ID. More... | |
| pid_t | _wait (int *stat_loc) |
| Wait for a child process to stop or terminate. More... | |
| void * | _sbrk (ptrdiff_t incr) |
| Extend heap space by incr bytes. More... | |
Variables | |
| char ** | environ |
| A pointer to an array of character pointers to the environment strings. More... | |
| int _close | ( | int | fildes | ) |
Close a file descriptor.
| [in] | fildes | File descriptor |
| int _execve | ( | const char * | path, |
| char *const | argv[], | ||
| char *const | envp[] | ||
| ) |
Execute a file.
| [in] | path | Pathname that identifies the new process image file |
| [in] | argv | Pointers to strings that constitute process argument list |
| [in] | envp | Pointers to strings that constitute process environment variables |
| void _exit | ( | int | status | ) |
Terminate a process.
| [in] | status | Process exit status code |
| int _fstat | ( | int | fildes, |
| struct stat * | buf | ||
| ) |
Get file status.
| [in] | fildes | File descriptor |
| [out] | buf | A pointer to a stat structure |
| pid_t _getpid | ( | void | ) |
Get the process ID.
| int _isatty | ( | int | fildes | ) |
Test for a terminal device.
| [in] | fildes | File descriptor |
| int _kill | ( | pid_t | pid, |
| int | sig | ||
| ) |
Send a signal to a process or a group of processes.
| int _link | ( | const char * | path1, |
| const char * | path2 | ||
| ) |
Link one file to another file.
| [in] | path1 | Pathname naming an existing file |
| [out] | path2 | Pathname naming the new directory entry to be created |
| off_t _lseek | ( | int | fildes, |
| off_t | offset, | ||
| int | whence | ||
| ) |
Move the read/write file offset.
| [in] | fildes | File descriptor |
| [in] | offset | File offset |
| [in] | whence | File seek mode |
| int _open | ( | const char * | path, |
| int | oflag, | ||
| ... | |||
| ) |
Open file.
| [in] | path | Pathname naming the file |
| [in] | oflag | Mode specification bitmap |
| ssize_t _read | ( | int | fildes, |
| void * | buf, | ||
| size_t | nbyte | ||
| ) |
Read from a file.
| [in] | fildes | File descriptor |
| [out] | buf | A pointer to data buffer |
| [in] | nbyte | Number of bytes to read |
| void * _sbrk | ( | ptrdiff_t | incr | ) |
Extend heap space by incr bytes.
| [in] | incr | The number of bytes to increment the heap by |
| int _stat | ( | const char * | path, |
| struct stat * | buf | ||
| ) |
Get file status (by name).
| [in] | path | Pathname naming the file |
| [in] | buf | A pointer to a stat structure |
| int _unlink | ( | const char * | path | ) |
Remove a directory entry.
| [in] | path | Pathname naming the file |
| pid_t _wait | ( | int * | stat_loc | ) |
Wait for a child process to stop or terminate.
| [in] | stat_loc | Pointer to a integer to store status information |
| ssize_t _write | ( | int | fildes, |
| const void * | buf, | ||
| size_t | nbyte | ||
| ) |
Write on a file.
| [in] | fildes | File descriptor |
| [in] | buf | A pointer to data buffer |
| [in] | nbyte | Number of bytes to write |
| pid_t fork | ( | void | ) |
Create a new process.
|
extern |
A pointer to an array of character pointers to the environment strings.