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
{\scriptsize\begin{verbatim}/* psync.c - PeStO sample applicati...
...'Client time set to %s",ctime(&t));
return 0;

Figure 5.8: Example use of status primitives
{\scriptsize\begin{verbatim}/* pstatus.c - PeStO sample applica...