1 /* @(#)dir.x 2.1 88/08/02 4.0 RPCSRC */
3 * dir.x: Remote directory listing protocol
5 const MAXNAMELEN = 255; /* maximum length of a directory entry */
7 typedef string nametype<MAXNAMELEN>; /* a directory entry */
9 typedef struct namenode *namelist; /* a link in the listing */
12 * A node in the directory listing
15 nametype name; /* name of directory entry */
16 namelist next; /* next entry */
20 * The result of a READDIR operation.
22 union readdir_res switch (int errno) {
24 namelist list; /* no error: return directory listing */
26 void; /* error occurred: nothing else to return */
30 * The directory program definition
35 READDIR(nametype) = 1;