]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - share/examples/sunrpc/sort/sort.x
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / share / examples / sunrpc / sort / sort.x
1 /* @(#)sort.x   2.1 88/08/11 4.0 RPCSRC */
2 /*
3  * The sort procedure receives an array of strings and returns an array
4  * of strings.  This toy service handles a maximum of 64 strings.
5  */
6 const MAXSORTSIZE  = 64;
7 const MAXSTRINGLEN = 64;
8
9 typedef string  str<MAXSTRINGLEN>;  /* the string itself */
10
11 struct sortstrings {
12     str ss<MAXSORTSIZE>;
13 };
14
15 program SORTPROG {
16     version SORTVERS {
17         sortstrings SORT(sortstrings) = 1;
18     } = 1;
19 } = 22855;