|
448 | 448 | \item returns the PGID of the calling process |
449 | 449 | \end{itemize} |
450 | 450 | ifdef([[[NOSPELLCHECK]]], [[[ |
451 | | -\texttt{pid\_t \funnm{getppid}(void);} |
| 451 | +\texttt{pid\_t \funnm{getppid}(void);} |
452 | 452 | ]]]) |
453 | 453 | \begin{itemize} |
454 | | -\item returns the process ID of the calling process. |
| 454 | +\item returns the process ID of the parent process. |
455 | 455 | \end{itemize} |
456 | 456 | ifdef([[[NOSPELLCHECK]]], [[[ |
457 | 457 | \texttt{pid\_t \funnm{getsid}(pid\_t \emph{pid});} |
|
466 | 466 | \item[process groups] make it possible to send signals to group of processes |
467 | 467 | at once |
468 | 468 | \item[session] is a collection of processes created for (\emph{job control}). |
469 | | -The processes of the session shared one \emph{controlling terminal}. |
| 469 | + |
| 470 | +The processes of the session share one \emph{controlling terminal}. |
470 | 471 | Session includes one or more process groups. Maximum one group in the session |
471 | 472 | runs in foreground (\emph{foreground process group}) and has access to the |
472 | 473 | controlling terminal for input and output, the rest is running in the background |
|
998 | 999 | calls |
999 | 1000 | \begin{itemize} |
1000 | 1001 | \item pros: processes cannot corrupt address space of one another |
1001 | | -\item const: significant syscall overhead (typically \funnm{read}, |
| 1002 | +\item cons: significant syscall overhead (typically \funnm{read}, |
1002 | 1003 | \funnm{write}) |
1003 | 1004 | \end{itemize} |
1004 | 1005 | \item \emph{shared memory} means to map a part of memory into an address space |
|
1152 | 1153 | \item \texttt{MS\_ASYNC} \dots{} asynchronous write |
1153 | 1154 | \item \texttt{MS\_SYNC} \dots{} synchronous write |
1154 | 1155 | \item \texttt{MS\_INVALIDATE} \dots{} destroy mapped data, |
1155 | | - that are differ from file contents |
| 1156 | + different to file contents |
1156 | 1157 | \end{itemize} |
1157 | 1158 | \end{itemize} |
1158 | 1159 | ifdef([[[NOSPELLCHECK]]], [[[ |
|
1284 | 1285 | \item \texttt{RTLD\_GLOBAL} \dots{} symbols defined by the shared object |
1285 | 1286 | will be made available for symbol resolution of subsequently loaded |
1286 | 1287 | objects. That is the default for objects mapped when executing a program. |
1287 | | - For \funnm{dlopen}, the default is \texttt{RTLD\_LOCAL}. It means you can |
1288 | | - map the same library multiple time via \funnm{dlopen} and the symbols in the |
1289 | | - mapped instances of the same library will not overlap. However, all |
1290 | | - globally mapped symbols from there are shared, e.g. \texttt{errno}. |
| 1288 | + For \funnm{dlopen}, the default is \texttt{RTLD\_LOCAL}. It means |
| 1289 | + the same library can be mapped multiple times via \funnm{dlopen} and the |
| 1290 | + symbols in the mapped instances of the same library will not overlap. |
| 1291 | + However, all globally mapped symbols from there are shared, e.g. |
| 1292 | + \texttt{errno}. |
1291 | 1293 | \end{itemize} |
1292 | 1294 | \item \label{RTLD_NEXT} Special handle \texttt{RTLD\_NEXT} searches the symbol |
1293 | 1295 | only in libraries loaded after the library that called \funnm{dlsym}. Handy for |
|
0 commit comments