[2d19ed6c] | 1 | @c |
---|
| 2 | @c COPYRIGHT (c) 1988-1998. |
---|
| 3 | @c On-Line Applications Research Corporation (OAR). |
---|
| 4 | @c All rights reserved. |
---|
| 5 | @c |
---|
| 6 | @c $Id$ |
---|
| 7 | @c |
---|
| 8 | |
---|
| 9 | @chapter Process Primitives |
---|
[0874502] | 10 | |
---|
[2d19ed6c] | 11 | @section Process Creation and Execution |
---|
[0874502] | 12 | |
---|
[2d19ed6c] | 13 | @subsection Process Creation |
---|
[0874502] | 14 | |
---|
| 15 | @example |
---|
[34683fee] | 16 | fork(), Function, Unimplementable |
---|
[0874502] | 17 | @end example |
---|
| 18 | |
---|
| 19 | |
---|
[2d19ed6c] | 20 | @subsection Execute a File |
---|
[0874502] | 21 | |
---|
| 22 | @example |
---|
[34683fee] | 23 | execl(), Function, Unimplementable, Requires Processes |
---|
| 24 | execv(), Function, Unimplementable, Requires Processes |
---|
| 25 | execle(), Function, Unimplementable, Requires Processes |
---|
| 26 | execve(), Function, Unimplementable, Requires Processes |
---|
| 27 | execlp(), Function, Unimplementable, Requires Processes |
---|
| 28 | execvp(), Function, Unimplementable, Requires Processes |
---|
[0874502] | 29 | @end example |
---|
| 30 | |
---|
[2d19ed6c] | 31 | @subsection Register Fork Handlers |
---|
[0874502] | 32 | |
---|
| 33 | @example |
---|
[34683fee] | 34 | pthread_atfork(), Function, Unimplementable, Requires Processes |
---|
[0874502] | 35 | @end example |
---|
| 36 | |
---|
[2d19ed6c] | 37 | @section Process Termination |
---|
[0874502] | 38 | |
---|
[2d19ed6c] | 39 | @subsection Wait for Process Termination |
---|
[0874502] | 40 | |
---|
| 41 | @example |
---|
[34683fee] | 42 | wait(), Function, Unimplementable, Requires Processes |
---|
| 43 | waitpid(), Function, Unimplementable, Requires Processes |
---|
[7331714] | 44 | WNOHANG, Constant, Unimplementable, Requires Processes |
---|
| 45 | WUNTRACED, Constant, Unimplementable, Requires Processes |
---|
| 46 | WIFEXITED(), Function, Unimplementable, Requires Processes |
---|
| 47 | WEXITSTATUS(), Function, Unimplementable, Requires Processes |
---|
| 48 | WIFSIGNALED(), Function, Unimplementable, Requires Processes |
---|
| 49 | WTERMSIG(), Function, Unimplementable, Requires Processes |
---|
| 50 | WIFSTOPPED(), Function, Unimplementable, Requires Processes |
---|
| 51 | WSTOPSIG(), Function, Unimplementable, Requires Processes |
---|
[0874502] | 52 | @end example |
---|
| 53 | |
---|
[2d19ed6c] | 54 | @subsection Terminate a Process |
---|
[0874502] | 55 | |
---|
| 56 | @example |
---|
[34683fee] | 57 | _exit(), Function, Unimplemented |
---|
[0874502] | 58 | @end example |
---|
| 59 | |
---|
[2d19ed6c] | 60 | @section Signals |
---|
[0874502] | 61 | |
---|
[2d19ed6c] | 62 | @subsection Signal Concepts |
---|
[0874502] | 63 | |
---|
[7331714] | 64 | @subsubsection Signal Names |
---|
| 65 | |
---|
[3349409] | 66 | @example |
---|
[6984a19] | 67 | sigset_t, Type, Implemented |
---|
[180ca02] | 68 | SIG_DFL, Constant, Implemented |
---|
| 69 | SIG_IGN, Constant, Implemented |
---|
| 70 | SIG_ERR, Constant, Implemented |
---|
| 71 | SIGABRT, Constant, Implemented |
---|
| 72 | SIGALRM, Constant, Implemented |
---|
| 73 | SIGFPE, Constant, Implemented |
---|
| 74 | SIGHUP, Constant, Implemented |
---|
| 75 | SIGILL, Constant, Implemented |
---|
| 76 | SIGINT, Constant, Implemented |
---|
| 77 | SIGKILL, Constant, Implemented |
---|
| 78 | SIGPIPE, Constant, Implemented |
---|
| 79 | SIGQUIT, Constant, Implemented |
---|
| 80 | SIGSEGV, Constant, Implemented |
---|
| 81 | SIGTERM, Constant, Implemented |
---|
| 82 | SIGUSR1, Constant, Implemented |
---|
| 83 | SIGUSR2, Constant, Implemented |
---|
| 84 | SIGCHLD, Constant, Unimplemented |
---|
| 85 | SIGCONT, Constant, Unimplemented |
---|
| 86 | SIGSTOP, Constant, Unimplemented |
---|
| 87 | SIGTSTP, Constant, Unimplemented |
---|
| 88 | SIGTTIN, Constant, Unimplemented |
---|
| 89 | SIGTTOU, Constant, Unimplemented |
---|
| 90 | SIGBUS, Constant, Implemented |
---|
| 91 | SIGRTMIN, Constant, Implemented |
---|
| 92 | SIGRTMAX, Constant, Implemented |
---|
| 93 | @end example |
---|
| 94 | |
---|
| 95 | NOTE: SIG_ERR is technically an extension to the C Library which is |
---|
| 96 | not documented anywhere else according to the index. |
---|
[7331714] | 97 | @subsubsection Signal Generation and Delivery |
---|
| 98 | |
---|
| 99 | @example |
---|
[6984a19] | 100 | struct sigevent, Type, Implemented |
---|
| 101 | union sigval, Type, Implemented |
---|
[180ca02] | 102 | SIGEV_NONE, Constant, Implemented |
---|
| 103 | SIGEV_SIGNAL, Constant, Implemented |
---|
| 104 | SIGEV_THREAD, Constant, Implemented |
---|
[7331714] | 105 | @end example |
---|
| 106 | |
---|
| 107 | @subsubsection Signal Actions |
---|
| 108 | |
---|
| 109 | @example |
---|
[6984a19] | 110 | siginfo_t, Type, Implemented |
---|
[180ca02] | 111 | SI_USER, Constant, Implemented |
---|
| 112 | SI_QUEUE, Constant, Implemented |
---|
| 113 | SI_TIMER, Constant, Implemented |
---|
| 114 | SI_ASYNCIO, Constant, Implemented |
---|
| 115 | SI_MESGQ, Constant, Implemented |
---|
[3349409] | 116 | @end example |
---|
| 117 | |
---|
[2d19ed6c] | 118 | @subsection Send a Signal to a Process |
---|
[0874502] | 119 | |
---|
| 120 | @example |
---|
[34683fee] | 121 | kill(), Function, Implemented |
---|
[0874502] | 122 | @end example |
---|
| 123 | |
---|
[2d19ed6c] | 124 | @subsection Manipulate Signal Sets |
---|
[0874502] | 125 | |
---|
| 126 | @example |
---|
[34683fee] | 127 | sigemptyset(), Function, Implemented |
---|
| 128 | sigfillset(), Function, Implemented |
---|
| 129 | sigaddset(), Function, Implemented |
---|
| 130 | sigdelset(), Function, Implemented |
---|
| 131 | sigismember(), Function, Implemented |
---|
[0874502] | 132 | @end example |
---|
| 133 | |
---|
[2d19ed6c] | 134 | @subsection Examine and Change Signal Action |
---|
[0874502] | 135 | |
---|
| 136 | @example |
---|
[34683fee] | 137 | sigaction(), Function, Implemented |
---|
[6984a19] | 138 | sigaction, Type, Implemented |
---|
[180ca02] | 139 | SA_NOCLDSTOP, Constant, Implemented |
---|
| 140 | SA_SIGINFO, Constant, Implemented |
---|
[0874502] | 141 | @end example |
---|
| 142 | |
---|
[2d19ed6c] | 143 | @subsection Examine and Change Blocked Signals |
---|
[0874502] | 144 | |
---|
| 145 | @example |
---|
[34683fee] | 146 | pthread_sigmask(), Function, Implemented |
---|
| 147 | sigprocmask(), Function, Implemented |
---|
[180ca02] | 148 | SIG_BLOCK, Constant, Implemented |
---|
| 149 | SIG_UNBLOCK, Constant, Implemented |
---|
| 150 | SIG_SETMASK, Constant, Implemented |
---|
[0874502] | 151 | @end example |
---|
| 152 | |
---|
[2d19ed6c] | 153 | @subsection Examine Pending Signals |
---|
[0874502] | 154 | |
---|
| 155 | @example |
---|
[34683fee] | 156 | sigpending(), Function, Implemented |
---|
[0874502] | 157 | @end example |
---|
| 158 | |
---|
[2d19ed6c] | 159 | @subsection Wait for a Signal |
---|
[0874502] | 160 | |
---|
| 161 | @example |
---|
[34683fee] | 162 | sigsuspend(), Function, Implemented |
---|
[0874502] | 163 | @end example |
---|
| 164 | |
---|
[2d19ed6c] | 165 | @subsection Synchronously Accept a Signal |
---|
[0874502] | 166 | |
---|
| 167 | @example |
---|
[34683fee] | 168 | sigwait(), Function, Implemented |
---|
| 169 | sigwaitinfo(), Function, Implemented |
---|
| 170 | sigtimedwait(), Function, Implemented |
---|
[0874502] | 171 | @end example |
---|
| 172 | |
---|
[2d19ed6c] | 173 | @subsection Queue a Signal to a Process |
---|
[0874502] | 174 | |
---|
| 175 | @example |
---|
[34683fee] | 176 | sigqueue(), Function, Implemented |
---|
[0874502] | 177 | @end example |
---|
| 178 | |
---|
[2d19ed6c] | 179 | @subsection Send a Signal to a Thread |
---|
[0874502] | 180 | |
---|
| 181 | @example |
---|
[34683fee] | 182 | pthread_kill(), Function, Implemented |
---|
[0874502] | 183 | @end example |
---|
| 184 | |
---|
[2d19ed6c] | 185 | @section Timer Operations |
---|
[0874502] | 186 | |
---|
[2d19ed6c] | 187 | @subsection Schedule Alarm |
---|
[0874502] | 188 | |
---|
| 189 | @example |
---|
[34683fee] | 190 | alarm(), Function, Implemented |
---|
[0874502] | 191 | @end example |
---|
| 192 | |
---|
[2d19ed6c] | 193 | @subsection Suspend Process Execution |
---|
[0874502] | 194 | |
---|
| 195 | @example |
---|
[34683fee] | 196 | pause(), Function, Implemented |
---|
[0874502] | 197 | @end example |
---|
| 198 | |
---|
[2d19ed6c] | 199 | @subsection Delay Process Execution |
---|
| 200 | |
---|
[0874502] | 201 | @example |
---|
[34683fee] | 202 | sleep(), Function, Implemented |
---|
[0874502] | 203 | @end example |
---|