Skip to content

Commit fbc3142

Browse files
author
Vladimir Kotal
committed
fix spelling and translation
1 parent f8bbfcd commit fbc3142

File tree

5 files changed

+39
-26
lines changed

5 files changed

+39
-26
lines changed

proc.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
\item The file descriptor tables are exact copies in both processes. That means
410410
that more processes can share and seek a common file position. Signal masks are
411411
not changed, more on that on page \pageref{SIGNALBLOCKINGEXAMPLE}.
412-
\item For effiency and less memory consumption, the address space is not copied
412+
\item For efficiency and less memory consumption, the address space is not copied
413413
but a \emph{copy-on-write} mechanism is used.
414414
\item The reason why the parent gets its child's PID as a return value and the
415415
child gets 0 is because it is easy for the child to get its parent PID via
@@ -456,15 +456,15 @@
456456
runs in foreground (\emph{foreground process group}) and has access to the
457457
controlling terminal for input and output, the rest is running in the background
458458
(\emph{background process groups}) and have only optional access to the output
459-
or no at all. (unallowed operation with terminal will stop the process).
459+
or no at all. (disallowed operation with terminal will stop the process).
460460
\item[parent process:] Each process (besides \texttt{swapper}u, pid~==~0)
461461
has a parent, i.e. process that created it with the \texttt{fork} syscall.
462462
If the parent exits before the child, its adoptive parent will become the
463463
\texttt{init} process, that will take care of the zombie after the process ends.
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 Solaris built
467+
using non-standard API (e.g. the \texttt{libproc} library on Solaris built
468468
on 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
470470
portable (commonly \texttt{init} has pid 1 however this is not true in many
@@ -899,7 +899,7 @@
899899
as the EOF would not be detected otherwise.
900900
\item Closing the reading descriptor \texttt{pd[0]} in the consumer process is
901901
desired as well (see {\color[rgb]{1,0,0} $\triangleright$}) as if the
902-
consumer finishes prematurely the producent properly gets a \texttt{SIGPIPE}.
902+
consumer finishes prematurely the producer properly gets a \texttt{SIGPIPE}.
903903
If that file descriptor in the producer was not closed while the consumer died
904904
in the middle of processing the data, for example, the producer would not learn
905905
that the consumer was gone (as the producer would remain to be an existing

signals.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@
520520
\item It is a difference to ignore and block a signal. A signal ignored will
521521
never be delivered to the process, while a blocked signal is remembered by the
522522
kernel and is delivered if the process unblocks it.
523-
\item It is implementation dependend if a signal received multiple times while
523+
\item It is implementation dependent if a signal received multiple times while
524524
blocked will be delivered only once or multiple times after unblocking.
525525
\item If POSIX.4 extension is used (see page
526526
\pageref{REALTIMEEXTENSIONS} and the use of \texttt{SA\_SIGINFO}), signals are

synchro.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@
417417
\begin{slide}
418418
\sltitle{Deadlock}
419419
\begin{itemize}
420-
\item 2 shared resrouces \texttt{res1} and \texttt{res2} protected by locks
420+
\item 2 shared resources \texttt{res1} and \texttt{res2} protected by locks
421421
\texttt{lck1} and \texttt{lck2}. Processes \texttt{p1} and
422422
\texttt{p2} want to have exclusive access to both resources.
423423
\end{itemize}

unix_dict.txt

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ cxref
137137
dbx
138138
dereferenced
139139
dev
140-
dimanche
141140
dir
142141
dirent
143142
distros
@@ -159,7 +158,6 @@ envp
159158
errno
160159
errnum
161160
errx
162-
excercise
163161
expr
164162
extern
165163
fcntl
@@ -176,7 +174,6 @@ getenv
176174
getopt
177175
getoptlong
178176
getopts
179-
ggr
180177
gmake
181178
gprof
182179
hearted
@@ -219,7 +216,6 @@ longopts
219216
lude
220217
macOS
221218
makefile
222-
meis
223219
memccpy
224220
memchr
225221
memcmp
@@ -231,7 +227,6 @@ microkernels
231227
mips
232228
mman
233229
mmap
234-
monolitic
235230
movb
236231
msg
237232
mv
@@ -241,7 +236,6 @@ od
241236
openssl
242237
optarg
243238
opterr
244-
optimalization
245239
optind
246240
optinons
247241
optopt
@@ -260,14 +254,11 @@ preprocesor
260254
preprocessor
261255
preprocessor's
262256
printf
263-
proceses
264257
profilers
265258
prog
266-
programu
267259
pthread
268260
putc
269261
putenv
270-
ramm
271262
readelf
272263
rld
273264
runtime
@@ -279,9 +270,7 @@ setjmp
279270
shm
280271
sizeof
281272
snprintf
282-
sparc
283273
src
284-
stateful
285274
stdarg
286275
stderr
287276
stdhdrs
@@ -291,27 +280,19 @@ stdout
291280
strerror
292281
strncpy
293282
strtol
294-
stru
295283
struct
296284
subtree
297-
supresses
298285
suvreq
299286
sys
300287
syscall
301288
syscallretvals
302289
syscalls
303290
sysenter
304-
syst
305291
tcp
306-
ter
307-
tions
308292
tmp
309293
tracepoint
310-
ture
311-
tx
312294
ulimit
313295
uname
314-
uncertified
315296
unistd
316297
unix
317298
unixstd
@@ -670,3 +651,35 @@ execvpe
670651
procfs
671652
lockfile
672653
lockfiles
654+
RDLCK
655+
WRLCK
656+
UNLCK
657+
creat
658+
fscanf
659+
oflag
660+
chdir
661+
pwd
662+
SETFL
663+
RO
664+
RW
665+
shlock
666+
sysutils
667+
shlock
668+
lockd
669+
SUIDDIR
670+
getpw
671+
getgrnam
672+
getgrent
673+
getent
674+
CompactFlash
675+
noatime
676+
filetype
677+
utime
678+
PGID
679+
sigsuspend
680+
nodename
681+
socketlen
682+
nodelen
683+
servicename
684+
socketlen
685+
servicelen

user-access.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@
390390
\item The \texttt{getuid} returns real UID, there is nothing like
391391
\texttt{getruid}.
392392
\item \texttt{getgroups}: when \texttt{gidsz~==~0}, it returns the number of
393-
groups. When \texttt{0 < gidsz < \#skupin}, it returns \texttt{-1}.
393+
groups. When \texttt{0 < gidsz < \#groups}, it returns \texttt{-1}.
394394
\item In Unix, there are many data types such as \verb#uid_t#, \verb#gid_t#,
395395
\verb#size_t#, \verb#pid_t#, etc. In general, these are integer types and you
396396
can often find them in the \texttt{/usr/inc{}lude/sys/types.h} header file.

0 commit comments

Comments
 (0)