mirror of
https://github.com/dhil/phd-dissertation
synced 2026-03-13 02:58:26 +00:00
Putc => Write. Don't mention file descriptors.
This commit is contained in:
@@ -343,7 +343,7 @@
|
|||||||
\newcommand{\Putc}{\dec{Putc}}
|
\newcommand{\Putc}{\dec{Putc}}
|
||||||
\newcommand{\putc}{\dec{putc}}
|
\newcommand{\putc}{\dec{putc}}
|
||||||
\newcommand{\UFile}{\dec{File}}
|
\newcommand{\UFile}{\dec{File}}
|
||||||
\newcommand{\UFD}{\dec{FileDescr}}
|
\newcommand{\UFD}{\dec{INumber}}
|
||||||
\newcommand{\fwrite}{\dec{fwrite}}
|
\newcommand{\fwrite}{\dec{fwrite}}
|
||||||
\newcommand{\iter}{\dec{iter}}
|
\newcommand{\iter}{\dec{iter}}
|
||||||
\newcommand{\stdout}{\dec{stdout}}
|
\newcommand{\stdout}{\dec{stdout}}
|
||||||
|
|||||||
@@ -2057,11 +2057,11 @@ operation $\Write$ for writing a list of characters to the file.
|
|||||||
\BIO \defas \{\Write : \Record{\UFD;\String} \opto \UnitType\}
|
\BIO \defas \{\Write : \Record{\UFD;\String} \opto \UnitType\}
|
||||||
\]
|
\]
|
||||||
%
|
%
|
||||||
The operation is parameterised by a file descriptor ($\UFD$) and a
|
The operation is parameterised by an $\UFD$ and a character
|
||||||
character. We will leave the file descriptor type abstract until
|
sequence. We will leave the $\UFD$ type abstract until
|
||||||
Section~\ref{sec:tiny-unix-io}, however, we will assume the existence
|
Section~\ref{sec:tiny-unix-io}, however, we will assume the existence
|
||||||
of a term $\stdout : \UFD$ such that we perform invocations of
|
of a term $\stdout : \UFD$ such that we perform invocations of
|
||||||
$\Putc$.
|
$\Write$.
|
||||||
%
|
%
|
||||||
Let us define a suitable handler for this operation.
|
Let us define a suitable handler for this operation.
|
||||||
%
|
%
|
||||||
|
|||||||
Reference in New Issue
Block a user