Skip to content

Commit a8ef056

Browse files
author
Vladimir Kotal
committed
add readlink example
1 parent 4bc09a0 commit a8ef056

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

file-api.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,14 +923,14 @@
923923
\begin{slide}
924924
\sltitle{Symbolic links}
925925
\texttt{int \funnm{symlink}(const char *\emph{path1},
926-
const char *\emph{path2});}
926+
const char *\emph{path2});}
927927
\begin{itemize}
928928
\item make a new symbolic name from \emph{path2} $\rightarrow$ \emph{path1}.
929929
\item \emph{path1} may span filesystems, and may not exist at all
930930
\end{itemize}
931931
ifdef([[[NOSPELLCHECK]]], [[[
932932
\texttt{int \funnm{readlink}(const char *\emph{path}, char *\emph{buf},
933-
size\_t \emph{bufsz});}
933+
size\_t \emph{bufsz});}
934934
]]])
935935
\begin{itemize}
936936
\item put maximum of \emph{\texttt{bufsz}} bytes from the symlink target path
@@ -950,6 +950,7 @@
950950
the symlink's target.
951951
\item \emph{\texttt{bufsize}} is typically set as 1 byte less than the buffer
952952
size to accommodate the terminating \texttt{NULL} character.
953+
\item See \example{readlink/readlink.c}
953954
\end{itemize}
954955

955956
%%%%%
@@ -963,7 +964,7 @@
963964
\texttt{int \funnm{mkdir}(const char *\emph{path}, mode\_t \emph{mode});}
964965
\begin{itemize}
965966
\item attempts to create an empty directory \emph{path} with entries
966-
'\texttt{.}' and '\texttt{..}'
967+
'\texttt{.}' and '\texttt{..}'
967968
\end{itemize}
968969
\texttt{int \funnm{rmdir}(const char *\emph{path});}
969970
\begin{itemize}

0 commit comments

Comments
 (0)