Skip to content

Commit deca147

Browse files
author
Vladimir Kotal
committed
more spellchecking
1 parent fb18987 commit deca147

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

file-api.tex

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@
8181

8282
\begin{slide}
8383
\sltitle{Opening a file: \texttt{open()}}
84+
ifdef([[[NOSPELLCHECK]]], [[[
8485
\texttt{int \funnm{open}(const char *\emph{path}, int \emph{oflag},
8586
... );}
87+
]]])
8688
\begin{itemize}
8789
\item opens a file \texttt{path}, returns its file descriptor. The
8890
\texttt{oflag} is an OR combination of the following flags:
@@ -151,7 +153,9 @@
151153

152154
%%%%%
153155

156+
ifdef([[[NOSPELLCHECK]]], [[[
154157
\pdfbookmark[1]{creat}{creat}
158+
]]])
155159

156160
\begin{slide}
157161
\sltitle{Creating a file}
@@ -199,7 +203,7 @@
199203
\begin{itemize}
200204
\item attempts to read \emph{nbyte} bytes of data from the object referenced by
201205
the descriptor \emph{fd} into the buffer pointed to by \emph{buf}
202-
\item returns the number of bytes actually read, 0 on EOF, -1 on error
206+
\item returns the number of bytes actually read, 0 on \texttt{EOF}, -1 on error
203207
\end{itemize}
204208

205209
ifdef([[[NOSPELLCHECK]]], [[[
@@ -685,9 +689,10 @@
685689
\item \texttt{F\_GETFL} \dots{} get file opening flags (read/write, append,
686690
\dots)
687691
\item \texttt{F\_SETFL} \dots{} set file opening flags
688-
(\texttt{O\_APPEND}, \texttt{O\_DSYNC}, \texttt{O\_NONBLOCK}, \texttt{O\_R\-SYNC},
689-
and \texttt{O\_SYNC}). Setting RO/RW is not allowed, and neither are flags for
690-
creation, truncation, and exclusive access.
692+
(\texttt{O\_APPEND}, \texttt{O\_DSYNC}, \texttt{O\_NONBLOCK},
693+
\texttt{O\_R\-SYNC}, and \texttt{O\_SYNC}).
694+
Setting ifdef([[[NOSPELLCHECK]]], [[[RO/RW]]]) is not allowed, and neither are
695+
flags for creation, truncation, and exclusive access.
691696
\item \texttt{F\_GETLK}, \texttt{F\_SETLK}, \texttt{F\_SETLKW} \dots{}
692697
for file locking
693698
\end{itemize}
@@ -732,8 +737,8 @@
732737
\item \texttt{st\_uid}, \texttt{st\_gid} \dots{} user/group ID of owner
733738
\item \texttt{st\_mode} \dots{} file type and mode
734739
\item \texttt{st\_size}, \texttt{st\_blksize}, \texttt{st\_blocks}
735-
\dots{} total size in bytes, preferred blocksize for filesystem I/O, and number
736-
of 512B blocks allocated
740+
\dots{} total size in bytes, preferred block size for filesystem I/O,
741+
and number of 512 byte blocks allocated
737742
\item \texttt{st\_atime}, \texttt{st\_mtime}, \texttt{st\_ctime}
738743
\dots{} time of last access, last modification, and last i-node modification
739744
\item \texttt{st\_nlink} \dots{} number of hard links
@@ -811,7 +816,9 @@
811816

812817
%%%%%
813818

819+
ifdef([[[NOSPELLCHECK]]], [[[
814820
\pdfbookmark[1]{utime}{utime}
821+
]]])
815822

816823
\begin{slide}
817824
\sltitle{Setting file times}
@@ -821,7 +828,7 @@
821828
]]])
822829
\begin{itemize}
823830
\item changes file last access and modification times
824-
\item cannot change i-node access time (ctime)
831+
\item cannot change i-node access time (\texttt{ctime})
825832
\item calling process must have write permission for the file
826833
\end{itemize}
827834
\end{slide}
@@ -836,7 +843,9 @@
836843

837844
%%%%%
838845

846+
ifdef([[[NOSPELLCHECK]]], [[[
839847
\pdfbookmark[1]{link, unlink, rename}{link}
848+
]]])
840849

841850
\begin{slide}
842851
\sltitle{File name manipulations}
@@ -881,7 +890,9 @@
881890

882891
%%%%%
883892

893+
ifdef([[[NOSPELLCHECK]]], [[[
884894
\pdfbookmark[1]{symlink, readlink}{symlink}
895+
]]])
885896

886897
\begin{slide}
887898
\sltitle{Symbolic links}
@@ -917,7 +928,9 @@
917928

918929
%%%%%
919930

931+
ifdef([[[NOSPELLCHECK]]], [[[
920932
\pdfbookmark[1]{mkdir, rmdir, opendir, readdir, closedir}{dirfncs}
933+
]]])
921934

922935
\begin{slide}
923936
\sltitle{Working with directories}
@@ -1006,7 +1019,9 @@
10061019

10071020
%%%%%
10081021

1022+
ifdef([[[NOSPELLCHECK]]], [[[
10091023
\pdfbookmark[1]{chdir, fchdir, getcwd}{pwd}
1024+
]]])
10101025

10111026
\begin{slide}
10121027
\sltitle{Change working directory}
@@ -1063,8 +1078,8 @@
10631078
\item \verb#X_OK# \dots{} execution permission test
10641079
\item \verb#F_OK# \dots{} file existence test
10651080
\end{itemize}
1066-
\item in contrast to \texttt{stat()}, the result depends on the process's RUID
1067-
and RGID
1081+
\item in contrast to \texttt{stat()}, the result depends on the process's
1082+
\texttt{RUID} and \texttt{RGID}
10681083
\item \emsl{never use this call, it cannot be used in a safe way. See the notes
10691084
below.}
10701085
\end{itemize}
@@ -1088,7 +1103,9 @@
10881103

10891104
%%%%%
10901105

1106+
ifdef([[[NOSPELLCHECK]]], [[[
10911107
\pdfbookmark[1]{chmod, chown}{chmodchown}
1108+
]]])
10921109

10931110
\begin{slide}
10941111
\sltitle{Setting file permissions}

spellfilter.sed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ s/\\example{[[:alnum:]_\/\.\-]+}//g
77
s/\\texttt{[^{]*}//g
88
s/\\funnm{[^{]*}//g
99
s/\\emprg{.*}//g
10+
s/\\verb#[[:alnum:]_\(\)]+#//g

0 commit comments

Comments
 (0)