next up previous contents index
Next: Primitives Up: Other Features Previous: Status   Contents   Index

More Primitives

As suggested by the lists of operations on files and directories in Sections 3.1.2 and 3.1.3, there are lots of opportunities for providing additional primitives (a rename, a copy, a ...). I have decided to do none of these, since most of them can (more or less elegantly) be written using the other (file) primitives.

Figure 5.7: Synchronization
\begin{figure}
{\scriptsize\begin{verbatim}/* psync.c - PeStO sample applicati...
...'Client time set to %s",ctime(&t));
return 0;
}
}\end{verbatim}}
\end{figure}

Figure 5.8: Example use of status primitives
\begin{figure}
{\scriptsize\begin{verbatim}/* pstatus.c - PeStO sample applica...
...c>1;)
filestatus(argv[--argc]);printf("\n");
}\end{verbatim}}
\end{figure}



michael@garfield.dk
2000-10-13