Skip to content

Commit 32b7de3

Browse files
author
Vladimir Kotal
committed
fix problems found by Roman Sobkuliak
1 parent f8c1de8 commit 32b7de3

File tree

8 files changed

+30
-29
lines changed

8 files changed

+30
-29
lines changed

files.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333

334334
\begin{itemize}
335335
\item what is ``normally'' visible in directory listings are hard links.
336-
W.r.t. files there are \emsl{only} hardlink a symlinks.
336+
W.r.t. files there are \emsl{only} hardlink and symlinks.
337337

338338
\begin{description}
339339
\item[hardlink]~
@@ -445,7 +445,7 @@
445445

446446
\begin{itemize}
447447
\item The \emph{FFS} file system introduced in 4.2BSD was historically the
448-
second unix file system. Some manufacturers of unix system started to prefer its
448+
second unix file system. Some manufacturers of unix system started to prefer it
449449
considering its better performance and new features, others remained with
450450
ifdef([[[NOSPELLCHECK]]], [[[\emph{s5fs}]]]) from compatibility reasons. This
451451
deepened the problem with already insufficient interoperability between
@@ -476,8 +476,8 @@
476476
depending on file system type (e.g. from the ifdef([[[NOSPELLCHECK]]],
477477
[[[\emph{ext2fs}]]]) module).
478478
Implementation dependent part of vnode structure is accessible only from
479-
functions of given file system; for kernel it is opaque. Next slide will shown
480-
another set of functions that works with file systems themselves.
479+
functions of given file system; for kernel it is opaque. See next slide
480+
for functions that operate on file system level.
481481
\emsl{This set defines VFS interface.}
482482
These \emsl{two sets together} constitute the vnode/VFS interface, generally
483483
referred to as VFS.
@@ -570,7 +570,7 @@
570570
\item If a filesystem is not correctly unmounted before the system is halted,
571571
the data can be inconsistent.
572572
\item The \texttt{fsck} command is used to check and correct file system.
573-
It tests progressively tests possible inconsistencies:
573+
It progressively tests possible inconsistencies:
574574
\begin{itemize}
575575
\setlength{\itemsep}{0ex}
576576
\item multiple references to the same block

history.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@
108108
\begin{itemize}
109109
\item ACM = Association for Computing Machinery, founded in 1947. UNIX was
110110
presented by Ken Thompson and Dennis Ritchie.
111-
\item \emsl{The act of rewriting UNIX to C was possible to most important moment
112-
in the history of this system} $\Rightarrow$ it was much easier to port UNIX to
113-
different architectures.
111+
\item \emsl{The act of rewriting UNIX to C was possibly the most important
112+
moment in the history of this system} $\Rightarrow$ it was much easier to port
113+
UNIX to different architectures.
114114
\item The legendary book \emph{A commentary on the Unix
115115
Operating System} by John Lions was found on version 6.
116116
\item Microsoft did not sell XENIX directly, it was licensed to OEM companies

intro.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@
18951895
char *\emph{envp}[]);}
18961896
]]])
18971897
\item The return value type of \texttt{main} should be always \texttt{int}.
1898-
\emsl{Only lower 8 bits from that integer are only used though.} It is always a
1898+
\emsl{Only lower 8 bits from that integer are used though.} It is always a
18991899
non-negative number. Note that in contrast to the C convention, the \texttt{0}
19001900
return value means a success in a Unix shell, and a non-zero value means a
19011901
failure. A typical construct in a shell looks like this:

network.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,8 @@
10991099
(\texttt{/etc/nsswitch.conf}) and the \texttt{flags} value.
11001100
It performs the actions that would have to be otherwise done by
11011101
\texttt{gethostbyaddr} and \texttt{getservbyport}.
1102-
\item Either \texttt{host} or \texttt{port} can be \texttt{NULL} that
1103-
means the caller is not interested in its resolution.
1102+
\item Either \texttt{nodename} or \texttt{portname} can be \texttt{NULL} --
1103+
that means the caller is not interested in its resolution.
11041104
\item Unlike the above mentioned legacy functions \texttt{getnameinfo} is
11051105
reentrant and is therefore safe to use with threads.
11061106
\item The man page for \texttt{getnameinfo} contains the list of usable
@@ -1402,7 +1402,7 @@
14021402
\texttt{FD\_SETSIZE}.
14031403
\item Unlike \texttt{select} it is not necessary to refresh descriptor sets
14041404
after each call or nullify \texttt{revents}. To deselect a file descriptor,
1405-
set the \item \texttt{fd} member of the \texttt{pollfd} structure to -1
1405+
set the \texttt{fd} member of the \texttt{pollfd} structure to -1
14061406
(or reshuffle the array which is significantly more complex).
14071407
\item Time set to -1 has the same effect as \texttt{NULL} for \texttt{select}.
14081408
\item If the number of descriptors is set to 0 (\texttt{fds} should be then

other.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222
read-only memory will result in the \texttt{SIGSEGV} signal to be delivered.
2323
\item[swap:] swap area is created on separate disk partition, since
2424
SVR4 it can be also in a file.
25-
\item[swapper:] the \texttt{swapper} process tries to saved a process that is
26-
not into memory to disk and use the free space for process that was swapped out
27-
earlier.
25+
\item[swapper:] the \texttt{swapper} process tries to save a process
26+
to disk and use the free space for a process that was swapped out earlier.
2827
\item[demand paging:] when a process requests a memory only the page is
2928
modified. The first instruction addressing the page contents will result in an
3029
exception. The kernel will handle it by allocating a page.

proc.tex

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,10 @@
448448
\item returns the PGID of the calling process
449449
\end{itemize}
450450
ifdef([[[NOSPELLCHECK]]], [[[
451-
\texttt{pid\_t \funnm{getppid}(void);}
451+
\texttt{pid\_t \funnm{getppid}(void);}
452452
]]])
453453
\begin{itemize}
454-
\item returns the process ID of the calling process.
454+
\item returns the process ID of the parent process.
455455
\end{itemize}
456456
ifdef([[[NOSPELLCHECK]]], [[[
457457
\texttt{pid\_t \funnm{getsid}(pid\_t \emph{pid});}
@@ -466,7 +466,8 @@
466466
\item[process groups] make it possible to send signals to group of processes
467467
at once
468468
\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}.
470471
Session includes one or more process groups. Maximum one group in the session
471472
runs in foreground (\emph{foreground process group}) and has access to the
472473
controlling terminal for input and output, the rest is running in the background
@@ -998,7 +999,7 @@
998999
calls
9991000
\begin{itemize}
10001001
\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},
10021003
\funnm{write})
10031004
\end{itemize}
10041005
\item \emph{shared memory} means to map a part of memory into an address space
@@ -1152,7 +1153,7 @@
11521153
\item \texttt{MS\_ASYNC} \dots{} asynchronous write
11531154
\item \texttt{MS\_SYNC} \dots{} synchronous write
11541155
\item \texttt{MS\_INVALIDATE} \dots{} destroy mapped data,
1155-
that are differ from file contents
1156+
different to file contents
11561157
\end{itemize}
11571158
\end{itemize}
11581159
ifdef([[[NOSPELLCHECK]]], [[[
@@ -1284,10 +1285,11 @@
12841285
\item \texttt{RTLD\_GLOBAL} \dots{} symbols defined by the shared object
12851286
will be made available for symbol resolution of subsequently loaded
12861287
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}.
12911293
\end{itemize}
12921294
\item \label{RTLD_NEXT} Special handle \texttt{RTLD\_NEXT} searches the symbol
12931295
only in libraries loaded after the library that called \funnm{dlsym}. Handy for

synchro.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@
191191
to be unlocked.
192192
\item reader process locks the file for reading. Writers have to wait
193193
for the lock, other readers can also lock the file for reading and read data.
194-
\item in each moment there can be at most active lock for writing or multiple
195-
locks for reading. Both locks cannot be locked simultaneously.
194+
\item in each moment there can be at most one active lock for writing or
195+
multiple locks for reading. Both locks cannot be locked simultaneously.
196196
\item for efficiency each process should hold the lock for shortest time
197-
possible and if possible do not lock the whole file -- only the section that
197+
possible and if possible do not lock the whole file -- only the section that
198198
is being worked with. Passive waiting is preferred, active waiting is
199199
suitable for very short time.
200200
\end{itemize}

threads.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,8 @@
878878
\texttt{int \funnm{pthread\_mutex\_unlock}(pthread\_mutex\_t *\emph{mx});}
879879
]]])
880880
\begin{itemize}
881-
\item If a mutex is already locked, the attempt to acquire it will result on the
882-
thread being locked (depending on mutex type).
881+
\item If a mutex is already locked, the attempt to acquire it will result
882+
in the thread being locked (depending on mutex type).
883883
It is possible to use:
884884
\end{itemize}
885885
ifdef([[[NOSPELLCHECK]]], [[[

0 commit comments

Comments
 (0)