#!/usr/bin/sed -f
#
# Translates a server stub generated by rpcgen into format usable by
# runix library. 
#
/^static$/ N
/^static.void$/ N
# ---
/^static.void._msgout/,/^}$/ c\
#include "project.h"\
#undef RPC_SVC_FG\
#define RPC_SVC_FG 1
# ---
/^static.void.closedown/,/^}$/ d
/^main(/,/^}$/ d
s/_msgout/eprintf/g
s/^static.\(void.*_prog\)/\1/
/^ \* It was generated using rpcgen/ c\
 * It was generated using rpcgen\
 * and converted by rpcxlate.
# -- For Solaris 2.x rpcgen:
s@sys/ttycom\.h@termios.h@g
