File tree Expand file tree Collapse file tree 7 files changed +31
-6
lines changed Expand file tree Collapse file tree 7 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 10441044\texttt {int \funnm {access}(const char *\emph {path }, int \emph {amode }); }
10451045\begin {itemize }
10461046\item checks whether the calling process can access the file \emph {path }
1047- \item \emph {amode } is an OR-combination of contants
1047+ \item \emph {amode } is an OR-combination of constants
10481048 \begin {itemize }
10491049 \item \verb #R_OK # \dots {} read permission test
10501050 \item \verb #W_OK # \dots {} write permission test
Original file line number Diff line number Diff line change 464464\end {description }
465465\begin {itemize }
466466\item To get information about running processes programatically is possible
467- using non-standar API (e.g. the \texttt {libproc } library on Solarisu built
467+ using non-standar API (e.g. the \texttt {libproc } library on Solaris built
468468on top of the \texttt {procfs } filesystem that is mounted under \texttt {/proc }).
469469\item Note that using \texttt {getppid } value to check if parent exited is not
470470portable (commonly \texttt {init } has pid 1 however this is not true in many
Original file line number Diff line number Diff line change 240240You can check \example {signals/catch-SIGSEGV.c}. More information and another
241241example can be found on page \pageref {THREADS_SIGWAIT }.
242242\item Note: if the standard specifies any behavior as \emph {undefined }, it means
243- the specification does not state what should happend and that whatever happens
243+ the specification does not state what should happen and that whatever happens
244244does not violate the standard. So, if you trigger such a behavior and your
245245computer burns down or even flies off to the Moon, possibly still in flames,
246246that does not violate the standard either.
Original file line number Diff line number Diff line change 161161records can be interleaved.
162162\item only single process can write.
163163\item other processes read data from the log file.
164- \item while reading record that is being written inconsitent data is retrived .
164+ \item while reading record that is being written inconsitent data is retrieved .
165165\item while writing, it is not possible to read. If no process is writing,
166166multiple processes can read simultaneously.
167167\end {itemize }
Original file line number Diff line number Diff line change 11changequote([[[, ]]])
22
33\pagebreak
4- \pdfbookmark [0]{threads and their synchronization}{vlakna }
4+ \pdfbookmark [0]{threads and their synchronization}{threads }
55
66\begin {slide }
77\sltitle {Contents}
Original file line number Diff line number Diff line change @@ -645,3 +645,28 @@ RESETHAND
645645DFL
646646NODEFER
647647IGN
648+ setsockopt
649+ getpeername
650+ socklen
651+ getipnodebyname
652+ getipnodebyaddr
653+ getipnode
654+ gethostbyaddr
655+ pton
656+ ntop
657+ proto
658+ getprotobyname
659+ getservbyname
660+ getservbyport
661+ getservent
662+ OSPF
663+ GRE
664+ recvfrom
665+ addrinfo
666+ addrlen
667+ socktype
668+ ai
669+ execvpe
670+ procfs
671+ lockfile
672+ lockfiles
Original file line number Diff line number Diff line change 437437\item If a process with UID~==~0 wants to change its identity, it has to call
438438\texttt {setgid } first and then \texttt {setgroups }. Only after that it can call
439439\texttt {setuid }. Any other ordering would mean that the process would lack the
440- rights to perform the opearation in question, e.g. once \texttt {setuid } returns
440+ rights to perform the operation in question, e.g. once \texttt {setuid } returns
441441it would not have the rights to perform \texttt {setgid } and \texttt {setgroups }.
442442\item \texttt {setgroups } is not part of UNIX~98 or UNIX~03.
443443\item RUID/EUID are saved in the kernel process structure and also in the so
You can’t perform that action at this time.
0 commit comments