summaryrefslogtreecommitdiffstats
path: root/lib/librpc/demo/sort/sort.x
blob: 629110cdf33aee8ae813d39ccec5172c106d6185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* @(#)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;
OpenPOWER on IntegriCloud