186d7f5d3SJohn Marino /* @(#)sort.x 2.1 88/08/11 4.0 RPCSRC */ 286d7f5d3SJohn Marino /* 386d7f5d3SJohn Marino * The sort procedure receives an array of strings and returns an array 486d7f5d3SJohn Marino * of strings. This toy service handles a maximum of 64 strings. 586d7f5d3SJohn Marino */ 686d7f5d3SJohn Marino const MAXSORTSIZE = 64; 786d7f5d3SJohn Marino const MAXSTRINGLEN = 64; 886d7f5d3SJohn Marino 986d7f5d3SJohn Marino typedef string str<MAXSTRINGLEN>; /* the string itself */ 1086d7f5d3SJohn Marino 1186d7f5d3SJohn Marino struct sortstrings { 1286d7f5d3SJohn Marino str ss<MAXSORTSIZE>; 1386d7f5d3SJohn Marino }; 1486d7f5d3SJohn Marino 1586d7f5d3SJohn Marino program SORTPROG { 1686d7f5d3SJohn Marino version SORTVERS { 1786d7f5d3SJohn Marino sortstrings SORT(sortstrings) = 1; 1886d7f5d3SJohn Marino } = 1; 1986d7f5d3SJohn Marino } = 22855; 20