We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b352205 commit 45bfe6dCopy full SHA for 45bfe6d
file-api.tex
@@ -974,6 +974,14 @@
974
end up with a \emph{broken link}.
975
\item \texttt{readlink} is useful in the situation where you want to
976
\texttt{unlink} the symlink's target.
977
+\item On some systems (e.g. macOS) there is a \texttt{readlink} command that
978
+will display symlink target:
979
+\begin{verbatim}
980
+$ ls -l /etc/aliases
981
+lrwxr-xr-x 1 root wheel 15 Oct 24 2017 /etc/aliases -> postfix/aliases
982
+$ readlink /etc/aliases
983
+postfix/aliases
984
+\end{verbatim}
985
\item \emph{\texttt{bufsz}} is typically set as 1 byte less than the buffer
986
size to accommodate the terminating \texttt{NULL} character.
987
\item See \example{readlink/readlink.c} and fix the problem therein.
0 commit comments