diff options
Diffstat (limited to 'lib/librpc/demo/sort/sort.x')
-rw-r--r-- | lib/librpc/demo/sort/sort.x | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/librpc/demo/sort/sort.x b/lib/librpc/demo/sort/sort.x new file mode 100644 index 0000000..629110c --- /dev/null +++ b/lib/librpc/demo/sort/sort.x @@ -0,0 +1,19 @@ +/* @(#)sort.x 2.1 88/08/11 4.0 RPCSRC */ +/* + * The sort procedure receives an array of strings and returns an array + * of strings. This toy service handles a maximum of 64 strings. + */ +const MAXSORTSIZE = 64; +const MAXSTRINGLEN = 64; + +typedef string str<MAXSTRINGLEN>; /* the string itself */ + +struct sortstrings { + str ss<MAXSORTSIZE>; +}; + +program SORTPROG { + version SORTVERS { + sortstrings SORT(sortstrings) = 1; + } = 1; +} = 22855; |