/share/examples/sunrpc/sort/sort.x

https://bitbucket.org/freebsd/freebsd-head/ · Alex · 19 lines · 16 code · 3 blank · 0 comment · 0 complexity · 4faf39a1c70095458bb440c0d005388c MD5 · raw file

  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. typedef string str<MAXSTRINGLEN>; /* the string itself */
  9. struct sortstrings {
  10. str ss<MAXSORTSIZE>;
  11. };
  12. program SORTPROG {
  13. version SORTVERS {
  14. sortstrings SORT(sortstrings) = 1;
  15. } = 1;
  16. } = 22855;