/* rpc spec file */ typedef struct acct account; struct acct { int balance; int pin; }; typedef struct trans transaction; struct trans { account * A; int amt; }; program first { version first0 { /* specify services */ void f(int) = 1; int g(int) = 2; void withdraw(transaction) = 3; void deposit(transaction) = 4; int inquiry(account) = 5; } = 1; } = 0x20000003; /* hex range 0x20000000 to 0x3fffffff are user defined rpc programs. */ /* rpcgen first.x creates first.h first_clnt.c first_svc.c first_xdr.c */