![]() |
posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
|
POSIX Multi-Process option group. More...
Files | |
| file | times.h |
| POSIX process CPU time accounting (<sys/times.h>) | |
Functions | |
| int | pthread_atfork (void(*prepare)(void), void(*parent)(void), void(*child)(void)) |
| Register fork handlers to be called around fork(). | |
| clock_t | times (struct tms *buf) |
| Get the process and child process times. | |
| FUNC_NORETURN void | _exit (int status) |
| Terminate the calling process without calling atexit() handlers. | |
| int | execl (const char *path, const char *arg0,...) |
| Replace the process image with a new program (argument list form). | |
| int | execle (const char *path, const char *arg0,...) |
| Replace process image with a new program plus environment (argument list form). | |
| int | execlp (const char *file, const char *arg0,...) |
| Replace process image using PATH search (argument list form). | |
| int | execv (const char *path, char *const argv[]) |
| Replace process image with a new program (vector form). | |
| int | execve (const char *path, char *const argv[], char *const envp[]) |
| Replace process image with a new program plus environment (vector form). | |
| int | execvp (const char *file, char *const argv[]) |
| Replace process image using PATH search (vector form). | |
| int | fexecve (int fd, char *const argv[], char *const envp[]) |
| Replace process image using an open file descriptor (vector form). | |
| pid_t | fork (void) |
| Create a child process. | |
| gid_t | getegid (void) |
| Get the effective group ID of the calling process. | |
| uid_t | geteuid (void) |
| Get the effective user ID of the calling process. | |
| gid_t | getgid (void) |
| Get the real group ID of the calling process. | |
| int | getgroups (int gidsetsize, gid_t grouplist[]) |
| Get the supplementary group IDs of the calling process. | |
| char * | getlogin (void) |
| Get the login name of the user. | |
| pid_t | getpgid (pid_t pid) |
| Get the process group ID of a process. | |
| pid_t | getpgrp (void) |
| Get the process group ID of the calling process. | |
| pid_t | getpid (void) |
| Get the process ID of the calling process. | |
| pid_t | getppid (void) |
| Get the process ID of the parent of the calling process. | |
| pid_t | getsid (pid_t pid) |
| Get the session ID of a process. | |
| uid_t | getuid (void) |
| Get the real user ID of the calling process. | |
| int | nice (int incr) |
| Change the scheduling priority of the calling process (XSI extension). | |
| int | setegid (gid_t gid) |
| Set the effective group ID of the calling process. | |
| int | seteuid (uid_t uid) |
| Set the effective user ID of the calling process. | |
| int | setgid (gid_t gid) |
| Set the real group ID of the calling process. | |
| int | setpgid (pid_t pid, pid_t pgid) |
| Set the process group ID for a process. | |
| pid_t | setpgrp (void) |
| Set the process group ID to the process ID of the calling process (obsolescent). | |
| pid_t | setsid (void) |
| Create a new session and set the process group ID. | |
| int | setuid (uid_t uid) |
| Set the real user ID of the calling process. | |
| unsigned int | sleep (unsigned int seconds) |
| Suspend execution for at least the specified number of seconds. | |
| pid_t | tcgetpgrp (int fildes) |
| Get the process group ID of the foreground process group of the terminal. | |
| int | tcsetpgrp (int fildes, pid_t pgid_id) |
| Set the foreground process group ID of a terminal. | |
| int | usleep (useconds_t useconds) |
| Suspend execution for at least the specified number of microseconds (obsolescent). | |
POSIX Multi-Process option group.
Covers fork(), exec*(), _exit(), getpid(), getppid(), getpgid(), setpgid(), setsid(), getsid(), getuid(), setuid(), getgid(), setgid(), sleep(), tcgetpgrp(), tcsetpgrp(), and related process-control functions.
| FUNC_NORETURN void _exit | ( | int | status | ) |
Terminate the calling process without calling atexit() handlers.
| int execl | ( | const char * | path, |
| const char * | arg0, | ||
| ... | |||
| ) |
Replace the process image with a new program (argument list form).
| int execle | ( | const char * | path, |
| const char * | arg0, | ||
| ... | |||
| ) |
Replace process image with a new program plus environment (argument list form).
| int execlp | ( | const char * | file, |
| const char * | arg0, | ||
| ... | |||
| ) |
Replace process image using PATH search (argument list form).
| int execv | ( | const char * | path, |
| char *const | argv[] | ||
| ) |
Replace process image with a new program (vector form).
| int execve | ( | const char * | path, |
| char *const | argv[], | ||
| char *const | envp[] | ||
| ) |
Replace process image with a new program plus environment (vector form).
| int execvp | ( | const char * | file, |
| char *const | argv[] | ||
| ) |
Replace process image using PATH search (vector form).
| int fexecve | ( | int | fd, |
| char *const | argv[], | ||
| char *const | envp[] | ||
| ) |
Replace process image using an open file descriptor (vector form).
| pid_t fork | ( | void | ) |
Create a child process.
| gid_t getegid | ( | void | ) |
Get the effective group ID of the calling process.
| uid_t geteuid | ( | void | ) |
Get the effective user ID of the calling process.
| gid_t getgid | ( | void | ) |
Get the real group ID of the calling process.
| int getgroups | ( | int | gidsetsize, |
| gid_t | grouplist[] | ||
| ) |
Get the supplementary group IDs of the calling process.
| char * getlogin | ( | void | ) |
Get the login name of the user.
Get the process group ID of a process.
| pid_t getpgrp | ( | void | ) |
Get the process group ID of the calling process.
| pid_t getpid | ( | void | ) |
Get the process ID of the calling process.
| pid_t getppid | ( | void | ) |
Get the process ID of the parent of the calling process.
Get the session ID of a process.
| uid_t getuid | ( | void | ) |
Get the real user ID of the calling process.
| int nice | ( | int | incr | ) |
Change the scheduling priority of the calling process (XSI extension).
| int pthread_atfork | ( | void(*)(void) | prepare, |
| void(*)(void) | parent, | ||
| void(*)(void) | child | ||
| ) |
| int setegid | ( | gid_t | gid | ) |
Set the effective group ID of the calling process.
| int seteuid | ( | uid_t | uid | ) |
Set the effective user ID of the calling process.
| int setgid | ( | gid_t | gid | ) |
Set the real group ID of the calling process.
Set the process group ID for a process.
| pid_t setpgrp | ( | void | ) |
Set the process group ID to the process ID of the calling process (obsolescent).
| pid_t setsid | ( | void | ) |
Create a new session and set the process group ID.
| int setuid | ( | uid_t | uid | ) |
Set the real user ID of the calling process.
Suspend execution for at least the specified number of seconds.
| pid_t tcgetpgrp | ( | int | fildes | ) |
Get the process group ID of the foreground process group of the terminal.
| int tcsetpgrp | ( | int | fildes, |
| pid_t | pgid_id | ||
| ) |
Set the foreground process group ID of a terminal.
Get the process and child process times.
| buf | Output: filled with CPU times for the calling process. |
| int usleep | ( | useconds_t | useconds | ) |
Suspend execution for at least the specified number of microseconds (obsolescent).