From 048292ab2f1c23d0af7eadf268b5355157164fac Mon Sep 17 00:00:00 2001 From: mainzelm Date: Tue, 26 Nov 2002 10:37:32 +0000 Subject: [PATCH] Added documentation for the new file-info-... variants. --- doc/scsh-manual/syscalls.tex | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/doc/scsh-manual/syscalls.tex b/doc/scsh-manual/syscalls.tex index 4192564..6316ee1 100644 --- a/doc/scsh-manual/syscalls.tex +++ b/doc/scsh-manual/syscalls.tex @@ -1286,7 +1286,19 @@ For example, \codex{(file-directory? "/usr/dalbertz")\qquad\evalto\qquad\sharpt} \end{desc} -\defun {file-not-readable?} {fname/fd/port} \boolean +There are variants of these procedures which work directly on +\ex{file-info} records: +\defun {file-info-directory?}{file-info}{\boolean} +\defunx {file-info-fifo?}{file-info}{\boolean} +\defunx {file-info-regular?}{file-info}{\boolean} +\defunx {file-info-socket?}{file-info}{\boolean} +\defunx {file-info-special?}{file-info}{\boolean} +\defunx {file-info-symlink?}{file-info}{\boolean} + +The following set of procedures are a convenient means to work on the +permission bits of a file: + +\defun {file-not-readable?} {fname/fd/port} \boolean \defunx{file-not-writable?} {fname/fd/port} \boolean \defunx{file-not-executable?} {fname/fd/port} \boolean \begin{desc} @@ -1346,6 +1358,15 @@ For example, Refer to them for a discussion of their problems and limitations. \end{desc} +\defun {file-info-not-readable?} {file-info} \boolean +\defunx{file-info-not-writable?} {file-info} \boolean +\defunx{file-info-not-executable?} {file-info} \boolean +\defun {file-info-readable?} {file-info} \boolean +\defunx {file-info-writable?} {file-info} \boolean +\defunx {file-info-executable?} {file-info} \boolean + +There are variants which work directly on \ex{file-info} records. + \begin{defundesc}{file-not-exists?} {fname/fd/port [chase?]} \object Returns: \begin{optiontable}