xref: /freebsd/share/examples/sunrpc/sort/sort.x (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1 /*
2  * The sort procedure receives an array of strings and returns an array
3  * of strings.  This toy service handles a maximum of 64 strings.
4  */
5 const MAXSORTSIZE  = 64;
6 const MAXSTRINGLEN = 64;
7 
8 typedef	string  str<MAXSTRINGLEN>;  /* the string itself */
9 
10 struct sortstrings {
11     str ss<MAXSORTSIZE>;
12 };
13 
14 program SORTPROG {
15     version SORTVERS {
16         sortstrings SORT(sortstrings) = 1;
17     } = 1;
18 } = 22855;
19