mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 14:54:21 -04:00
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
36 lines
740 B
Text
36 lines
740 B
Text
/*
|
|
* dir.x: Remote directory listing protocol
|
|
*/
|
|
const MAXNAMELEN = 255; /* maximum length of a directory entry */
|
|
|
|
typedef string nametype<MAXNAMELEN>; /* a directory entry */
|
|
|
|
typedef struct namenode *namelist; /* a link in the listing */
|
|
|
|
/*
|
|
* A node in the directory listing
|
|
*/
|
|
struct namenode {
|
|
nametype name; /* name of directory entry */
|
|
namelist next; /* next entry */
|
|
};
|
|
|
|
/*
|
|
* The result of a READDIR operation.
|
|
*/
|
|
union readdir_res switch (int errno) {
|
|
case 0:
|
|
namelist list; /* no error: return directory listing */
|
|
default:
|
|
void; /* error occurred: nothing else to return */
|
|
};
|
|
|
|
/*
|
|
* The directory program definition
|
|
*/
|
|
program DIRPROG {
|
|
version DIRVERS {
|
|
readdir_res
|
|
READDIR(nametype) = 1;
|
|
} = 1;
|
|
} = 76;
|