home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / include / nfs / krpc.h next >
C/C++ Source or Header  |  1996-12-11  |  1KB  |  40 lines

  1. /*    $NetBSD: krpc.h,v 1.3 1995/04/24 21:54:56 gwr Exp $    */
  2.  
  3. #include <sys/cdefs.h>
  4.  
  5. int krpc_call __P((struct sockaddr_in *sin, \
  6.     u_int prog, u_int vers, u_int func, \
  7.     struct mbuf **data, struct mbuf **from));
  8.  
  9. int krpc_portmap __P((struct sockaddr_in *sin, \
  10.     u_int prog, u_int vers, u_int16_t *portp));
  11.  
  12. struct mbuf * xdr_string_encode __P((char *str, int len));
  13. struct mbuf * xdr_string_decode __P((struct mbuf *m, char *str, int *len_p));
  14. struct mbuf * xdr_inaddr_encode __P((struct in_addr *ia));
  15. struct mbuf * xdr_inaddr_decode __P((struct mbuf *m, struct in_addr *ia));
  16.  
  17.  
  18. /*
  19.  * RPC definitions for the portmapper
  20.  */
  21. #define    PMAPPORT        111
  22. #define    PMAPPROG        100000
  23. #define    PMAPVERS        2
  24. #define    PMAPPROC_NULL        0
  25. #define    PMAPPROC_SET        1
  26. #define    PMAPPROC_UNSET        2
  27. #define    PMAPPROC_GETPORT    3
  28. #define    PMAPPROC_DUMP        4
  29. #define    PMAPPROC_CALLIT        5
  30.  
  31.  
  32. /*
  33.  * RPC definitions for bootparamd
  34.  */
  35. #define    BOOTPARAM_PROG        100026
  36. #define    BOOTPARAM_VERS        1
  37. #define BOOTPARAM_WHOAMI    1
  38. #define BOOTPARAM_GETFILE    2
  39.  
  40.