Skip to content

Commit 93df753

Browse files
author
Vladimir Kotal
committed
more spellchecking
1 parent 3eee9b9 commit 93df753

File tree

6 files changed

+28
-13
lines changed

6 files changed

+28
-13
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ spellcheck:
7171
sed '/\begin{alltt}/,/\end{alltt}/d' | \
7272
sed 's/pdfbookmark\[[0-9]\]{\([^{}]*\)}{.*}/pdfbookmark{\1}/' | \
7373
sed 's/\\\-//g' | \
74+
sed 's/\\\=//g' | \
75+
sed 's/\\example{[^{]*}//g' | \
7476
sed 's/\\texttt{[^{]*}//g' | \
7577
sed 's/\\\funnm{[^{]*}//g' | \
7678
sed 's/\\emprg{.*}//g' | \

proc.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
non-initialized variables share a common data segment, labeled in the image as
102102
,,executable -- DATA''. Example: \example{pmap/proc-addr-space.c}.
103103
\item The kernel mapping is not necessary, for example on Solaris running on
104-
\texttt{\emph{amd64}} architecture (i.e. 64-bit) the kernel is no longer mapped
104+
\emph{\texttt{amd64}} architecture (i.e. 64-bit) the kernel is no longer mapped
105105
into user space.
106106
\item \texttt{brk} nor \texttt{sbrk} are part of the standard, hence portable
107107
applications should not use them; if a similar functionality is needed, they
@@ -706,7 +706,7 @@
706706
\item On Solaris, the \texttt{elfdump} command allows listing sections of the
707707
ELF file in a human readable form. On Linux distributions, use \texttt{readelf}.
708708
\item The \emph{ELF header} contains basic information about the file. Try
709-
``\texttt{readelf -h /bin/ls}'' on any Linux distro.
709+
``\texttt{readelf -h /bin/ls}'' on any Linux distribution.
710710
\item The \emph{program header table} is only present in files that are
711711
executable. For example, dynamic libraries are ELF files that are not
712712
executable. It contains information on the virtual memory layout. You can list
@@ -1088,7 +1088,7 @@
10881088
\end{itemize}
10891089
\texttt{int \funnm{munmap}(void *\emph{addr}, size\_t \emph{l{}en});}
10901090
\begin{itemize}
1091-
\item write back changes, destroy mapping of lenght \texttt{l{}en} from
1091+
\item write back changes, destroy mapping of length \texttt{l{}en} from
10921092
address \texttt{addr}.
10931093
\end{itemize}
10941094
\texttt{int \funnm{mprotect}(void *\emph{addr}, size\_t \emph{l{}en},

synchro.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@
622622
\end{itemize}
623623
\item \emsl{sockets} come from the BSD world and allow communication in domains
624624
\texttt{AF\_UNIX} (communication within the same system) and \texttt{AF\_INET}
625-
(communication within the same system or accross network).
625+
(communication within the same system or across network).
626626
\end{itemize}
627627
\end{slide}
628628

sys-v-semaphores.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@
1414
\texttt{IPC\_CREAT} (create if does not exist),
1515
\texttt{IPC\_EXCL} (error, if exists).
1616
\end{itemize}
17+
ifdef([[[NOSPELLCHECK]]], [[[
1718
\texttt{int \funnm{semctl}(int \emph{\texttt{semid}},
1819
int \emph{\texttt{semnum}}, int \emph{\texttt{cmd}}, ...);}
20+
]]])
1921
\begin{itemize}
2022
\item controlling function, optional 4th argument \texttt{arg} is of the
2123
\texttt{union~semun} type.
2224
\end{itemize}
25+
ifdef([[[NOSPELLCHECK]]], [[[
2326
\texttt{int \funnm{semop}(int \emph{\texttt{semid}},
2427
struct sembuf *\emph{\texttt{sops}}, size\_t \emph{\texttt{nsops}});}
28+
]]])
2529
\begin{itemize}
2630
\item generic operations P and V.
2731
\end{itemize}

unix_dict.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,3 +726,4 @@ decrementing
726726
endianess
727727
Downey
728728
unbuffered
729+
acyclic

user-access.tex

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
representation of users and groups.
3939
\item Passwords are long gone from \texttt{/etc/passwd}, they are stored some
4040
place else, for example in \texttt{/etc/shadow}, which is not readable to an
41-
uprivileged user. The passwords are also salted and then hashed. On BSD based
41+
unprivileged user. The passwords are also salted and then hashed. On BSD based
4242
systems, eg. FreeBSD or macOS, instead of \texttt{/etc/shadow},
4343
\texttt{/etc/master.passwd} database is used.
4444
\item If \texttt{/etc/shadow} does exist, it is structured in a similar way as
@@ -203,9 +203,11 @@
203203
\item this identification is inherited by each process
204204
\item file $F$ has owner ($UID_F$) and group owner ($GID_F$).
205205
\item algorithm for evaluation of access rights for process:
206-
$P(UID_P,GID_P,SUPG)$ and file $F(UID_F,GID_F)$:
206+
ifdef([[[NOSPELLCHECK]]], [[[$P(UID_P,GID_P,SUPG)$]]]) and file
207+
ifdef([[[NOSPELLCHECK]]], [[[$F(UID_F,GID_F)$]]]):
207208
\begin{tabular}{ll}
208-
If & then $P$rocess has w.r.t. $F$ile \\
209+
If & then ifdef([[[NOSPELLCHECK]]], [[[$P$rocess]]]) has w.r.t.
210+
ifdef([[[NOSPELLCHECK]]], [[[$F$ile]]]) \\
209211
\hline
210212
\texttt{if($UID_P$ == 0)} & \dots{} all rights \\
211213
\texttt{else if($UID_P$ == $UID_F$)} & \dots{} owner rights \\
@@ -304,7 +306,9 @@
304306

305307
%%%%%
306308

309+
ifdef([[[NOSPELLCHECK]]], [[[
307310
\pdfbookmark[1]{ruid, euid, suid}{resugid}
311+
]]])
308312

309313
\begin{slide}
310314
\sltitle{Real and effective UID/GID}
@@ -378,8 +382,10 @@
378382
\item \texttt{gid\_t \funnm{getegid}(void)}
379383

380384
returns effective group ID of the calling process.
381-
\item \texttt{int \funnm{getgroups}(int \emph{gidsz}, gid\_t \emph{glist}[])}
382385

386+
ifdef([[[NOSPELLCHECK]]], [[[
387+
\item \texttt{int \funnm{getgroups}(int \emph{gidsz}, gid\_t \emph{glist}[])}
388+
]]])
383389
-- \texttt{glist} returns at most \texttt{gidsz} supplementary group
384390
IDs of the calling process and returns number of all GIDs of the process.
385391
\end{itemize}
@@ -419,8 +425,10 @@
419425
\end{itemize}
420426
\item \texttt{int \funnm{setgid}(gid\_t \emph{gid});} \\
421427
similar to \texttt{setuid}, for group-IDs of the process.
428+
ifdef([[[NOSPELLCHECK]]], [[[
422429
\item \texttt{int \funnm{setgroups}(int \emph{ngroups},
423430
gid\_t *\emph{gidset})} \\
431+
]]])
424432
sets the supplementary group IDs for the calling process. Can only be used
425433
by superuser process.
426434
\end{itemize}
@@ -454,7 +462,7 @@
454462
\sltitle{File system}
455463
\setlength{\baselineskip}{0.8\baselineskip}
456464
\begin{itemize}
457-
\item directories form a tree; together with files acyclical graph
465+
\item directories form a tree; together with files acyclic graph
458466
(one file can have multiple references).
459467
\item each directory also contains reference to itself '\texttt{.}'
460468
(dot) and to its parent directory '\texttt{..}' (two dots).
@@ -504,10 +512,10 @@
504512
kernel and running processes in the form of text files. However, some systems,
505513
like Solaris, have those files in a binary form only and provide special
506514
commands to read those (like \texttt{pargs}, \texttt{pldd}, etc.).
507-
\item Modern Unix systems contain a special \emph{devfs} filesystem that
508-
reflects an actual system configuration w.r.t. connected devices. I.e. after
509-
connecting a USB stick a related device will appear under \texttt{/dev}. After
510-
physically disconnecting it, the item will disappear.
515+
\item Modern Unix systems contain a special \emph{\texttt{devfs}} filesystem
516+
that reflects an actual system configuration w.r.t. connected devices. I.e.
517+
after connecting a USB stick a related device will appear under \texttt{/dev}.
518+
After physically disconnecting it, the item will disappear.
511519
\end{itemize}
512520

513521
\endinput

0 commit comments

Comments
 (0)