Current Path : /usr/src/share/examples/sunrpc/sort/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/share/examples/sunrpc/sort/sort.x |
/* @(#)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;