Capability Operations

Capabilities are written in a convenient ASCII format, also used by the Amoeba utilities c2a(U) and a2c(U). For example:

>>> amoeba.name_lookup('/profile/cap')
aa:1c:95:52:6a:fa/14(ff)/8e:ba:5b:8:11:1a
>>>

The following methods are defined for capability objects.


\begin{funcdesc}{dir_list}{}
Returns a list of the names of the entries in an Amoeba directory.
\end{funcdesc}


\begin{funcdesc}{b_read}{offset\, maxsize}
Reads (at most)
\var{maxsize}
bytes f...
...data is returned as a string.
EOF is reported as an empty string.
\end{funcdesc}


\begin{funcdesc}{b_size}{}
Returns the size of a bullet file.
\end{funcdesc}


\begin{funcdesc}{dir_append}{}
\funcline{dir_delete}{}\
\funcline{dir_lookup}{}...
...lity is ignored, since this
is the defined semantics for Amoeba.)
\end{funcdesc}


\begin{funcdesc}{std_info}{}
Returns the standard info string of the object.
\end{funcdesc}


\begin{funcdesc}{tod_gettime}{}
Returns the time (in seconds since the Epoch, in UCT, as for POSIX) from
a time server.
\end{funcdesc}


\begin{funcdesc}{tod_settime}{t}
Sets the time kept by a time server.
\end{funcdesc}