Skip to content

Commit 3eee9b9

Browse files
author
Vladimir Kotal
committed
more spellchecking
1 parent 711e879 commit 3eee9b9

File tree

4 files changed

+34
-19
lines changed

4 files changed

+34
-19
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ spellcheck:
6767
@for file in ${SLIDES}; do \
6868
echo "### Checking $$file"; \
6969
$(M4) $$file | \
70-
sed 's/NOSPELLCHECK\(.*\)//' | \
7170
sed '/\begin{verbatim}/,/\end{verbatim}/d' | \
7271
sed '/\begin{alltt}/,/\end{alltt}/d' | \
7372
sed 's/pdfbookmark\[[0-9]\]{\([^{}]*\)}{.*}/pdfbookmark{\1}/' | \

file-api.tex

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
current mask that can be changed via a shell command \texttt{umask} -- those
111111
bits in \emph{mode}, also set in the process umask, are nullified. The
112112
default umask value is typically (and historically) \texttt{022}. We recommend
113-
you to always se it to \texttt{077} in your profile script. Never do that for
113+
you to always set it to \texttt{077} in your profile script. Never do that for
114114
root though otherwise you will end up with a system in a non-supported
115115
configuration -- installed software will not be possible to run by
116116
non-privileged users, what worked before may stop working, etc.
@@ -192,16 +192,20 @@
192192
\begin{slide}
193193
\sltitle{Reading and writing files: \texttt{read()}, \texttt{write()}}
194194

195+
ifdef([[[NOSPELLCHECK]]], [[[
195196
\texttt{ssize\_t \funnm{read}(int \emph{fd}, void *\emph{buf},
196197
size\_t \emph{nbyte});}
198+
]]])
197199
\begin{itemize}
198200
\item attempts to read \emph{nbyte} bytes of data from the object referenced by
199201
the descriptor \emph{fd} into the buffer pointed to by \emph{buf}
200202
\item returns the number of bytes actually read, 0 on EOF, -1 on error
201203
\end{itemize}
202204

205+
ifdef([[[NOSPELLCHECK]]], [[[
203206
\texttt{ssize\_t \funnm{write}(int \emph{fd}, const void *\emph{buf},
204207
size\_t \emph{nbyte});}
208+
]]])
205209
\begin{itemize}
206210
\item attempts to write \emph{nbyte} of data to the object referenced by the
207211
descriptor \emph{fd} from the buffer pointed to by \emph{buf}
@@ -462,7 +466,7 @@
462466
\texttt{off\_t \funnm{lseek}(int \emph{fildes}, off\_t \emph{offset},
463467
int \emph{whence});}
464468
\begin{itemize}
465-
\item will reposition the file offset for reading and writing in an already
469+
\item will set the file offset for reading and writing in an already
466470
opened file associated with a file descriptor \emph{fildes}
467471
\item based on value of \texttt{whence}, the file offset is set to:
468472
\begin{itemize}
@@ -811,7 +815,10 @@
811815

812816
\begin{slide}
813817
\sltitle{Setting file times}
814-
\texttt{int \funnm{utime}(const char *\emph{path}, const struct utimbuf *\emph{times});}
818+
ifdef([[[NOSPELLCHECK]]], [[[
819+
\texttt{int \funnm{utime}(const char *\emph{path},
820+
const struct utimbuf *\emph{times});}
821+
]]])
815822
\begin{itemize}
816823
\item changes file last access and modification times
817824
\item cannot change i-node access time (ctime)
@@ -865,8 +872,8 @@
865872
\item \texttt{unlink} does not work on directories.
866873
\item The shell command \texttt{mv} uses \texttt{rename} to move objects within
867874
the same filesystems. To move files between filesystems, a file needs to be
868-
copied first, then unlinked from the originating filesystem (the whole operation
869-
is not atomic).
875+
copied first, then \texttt{unlink} it from the originating filesystem (the whole
876+
operation is not atomic).
870877
\item \texttt{rename} renames symlinks, not the files those symlinks point to.
871878
\item There is also a more generic call \texttt{remove}, see page
872879
\pageref{REMOVE}.
@@ -884,10 +891,13 @@
884891
\item make a new symbolic name from \emph{path2} $\rightarrow$ \emph{path1}.
885892
\item \emph{path1} may span filesystems, and may not exist at all
886893
\end{itemize}
887-
\texttt{int \funnm{readlink}(const char *\emph{path}, char *\emph{buf}, size\_t \emph{bufsz});}
894+
ifdef([[[NOSPELLCHECK]]], [[[
895+
\texttt{int \funnm{readlink}(const char *\emph{path}, char *\emph{buf},
896+
size\_t \emph{bufsz});}
897+
]]])
888898
\begin{itemize}
889-
\item put maximum of \texttt{\emph{bufsz}} bytes from the symlink target path to
890-
\texttt{\emph{buf}}
899+
\item put maximum of \emph{\texttt{bufsz}} bytes from the symlink target path
900+
to \texttt{\emph{buf}}
891901
\item returns the number of bytes written to \texttt{\emph{buf}}.
892902
\item \texttt{\emph{buf}} is \emsl{not} terminated by \verb#'\0'#
893903
\end{itemize}
@@ -896,13 +906,13 @@
896906
\begin{itemize}
897907
\item The shell command \texttt{ln} uses either the \texttt{symlink} or
898908
\texttt{link} syscall depending on whether the \texttt{-s} option was used.
899-
\item Unlinking a hardlink will not release the file data if other hardlinks
900-
exists. You can delete the symlink's target in which case you end up with a
901-
\emph{broken link}.
909+
\item Calling \texttt{unlink} on a hardlink will not release the file data if
910+
other hardlinks exists. You can delete the symlink's target in which case you
911+
end up with a \emph{broken link}.
902912
\item \texttt{readlink} is useful in situation when you want to unlink the
903913
symlink's target.
904-
\item \texttt{\emph{bufsize}} is typically set as 1 byte less than the buffer
905-
size to accommodate the terminating NUL character.
914+
\item \emph{\texttt{bufsize}} is typically set as 1 byte less than the buffer
915+
size to accommodate the terminating \texttt{NULL} character.
906916
\end{itemize}
907917

908918
%%%%%
@@ -920,15 +930,17 @@
920930
\begin{itemize}
921931
\item deletes directory \emph{path}. The directory \emsl{must} be empty.
922932
\end{itemize}
933+
ifdef([[[NOSPELLCHECK]]], [[[
923934
\texttt{DIR *\funnm{opendir}(const char *\emph{dirname});}\\
924935
\texttt{struct dirent *\funnm{readdir}(DIR *\emph{dirp});}\\
925936
\texttt{int \funnm{closedir}(DIR *\emph{dirp});}
937+
]]])
926938
\begin{itemize}
927939
\item sequentially reads directory entries
928940
\item structure \texttt{dirent} contains:
929941
\begin{itemize}
930-
\item \verb#d_ino# \dots{} i-node number
931-
\item \verb#d_name# \dots{} file name
942+
\item \texttt{d\_ino} \dots{} i-node number
943+
\item \texttt{d\_name} \dots{} file name
932944
\end{itemize}
933945
\end{itemize}
934946
\end{slide}
@@ -1039,10 +1051,12 @@
10391051

10401052
\begin{slide}
10411053
\sltitle{Check permissions for access: \texttt{access()}}
1054+
ifdef([[[NOSPELLCHECK]]], [[[
10421055
\texttt{int \funnm{access}(const char *\emph{path}, int \emph{amode});}
1056+
]]])
10431057
\begin{itemize}
10441058
\item checks whether the calling process can access the file \emph{path}
1045-
\item \texttt{\emph{amode}} is an OR-combination of constants
1059+
\item \emph{\texttt{amode}} is an OR-combination of constants
10461060
\begin{itemize}
10471061
\item \verb#R_OK# \dots{} read permission test
10481062
\item \verb#W_OK# \dots{} write permission test

history.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@
169169
etc., e.g. UNIX V3 != SVR3.
170170
\item UNIX System III is therefore not UNIX V3; in those days (late 70's) there
171171
were multiple groups in BTL that contributed to the UNIX development.
172-
The ``Vx'' versions were developed in \emph{Computer Research Group}, other
173-
groups were \emph{Unix System Group} (USG), \emph{Programmer's WorkBench} (PWB).
172+
The ifdef([[[NOSPELLCHECK]]], [[[``Vx'']]]) versions were developed in
173+
\emph{Computer Research Group}, other groups were \emph{Unix System Group}
174+
(USG), \emph{Programmer's WorkBench} (PWB).
174175
Another branch of UNIX was Columbus UNIX also in BT. The System III version is
175176
based on these early versions.
176177
\item UNIX has forked into two main branches: AT\&T and BSD, individual

unix_dict.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,3 +725,4 @@ incrementing
725725
decrementing
726726
endianess
727727
Downey
728+
unbuffered

0 commit comments

Comments
 (0)