/* * Remote directory listing protocol */ typedef string nametype ; typedef struct namenode *namelist; /* * A node in the directory listing */ struct namenode { nametype name; namelist next; }; /* * The result of a read directory operation. * When errno is not equal to zero, something went wrong. */ struct readdir_res { int errno; namelist list; }; /* * Program definition */ program DIRPROG { version DIRVERS { readdir_res READDIR(nametype) = 1; } = 1; } = 0x20000076;