home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NETKIT-B.05 / NETKIT-B / NetKit-B-0.05 / include / rpcsvc / rnusers.h next >
Encoding:
C/C++ Source or Header  |  1994-05-23  |  1.4 KB  |  68 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #ifndef _RNUSERS_H_RPCGEN
  7. #define _RNUSERS_H_RPCGEN
  8.  
  9. #include <rpc/rpc.h>
  10.  
  11. /*
  12.  * The following structures are used by version 2 of the rusersd protocol.
  13.  * They were not developed with rpcgen, so they do not appear as RPCL.
  14.  */
  15.  
  16. #define     RUSERSVERS_ORIG 1    /* original version */
  17. #define    RUSERSVERS_IDLE 2
  18. #define    MAXUSERS 100
  19.  
  20. /*
  21.  * This is the structure used in version 2 of the rusersd RPC service.
  22.  * It corresponds to the utmp structure for BSD sytems.
  23.  */
  24. struct ru_utmp {
  25.     char    ut_line[8];        /* tty name */
  26.     char    ut_name[8];        /* user id */
  27.     char    ut_host[16];        /* host name, if remote */
  28.     long    ut_time;        /* time on */
  29. };
  30. typedef struct ru_utmp rutmp;
  31.  
  32. struct utmparr {
  33.     struct utmp **uta_arr;
  34.     int uta_cnt;
  35. };
  36. typedef struct utmparr utmparr;
  37. int xdr_utmparr();
  38.  
  39. struct utmpidle {
  40.     struct ru_utmp ui_utmp;
  41.     unsigned ui_idle;
  42. };
  43.  
  44. struct utmpidlearr {
  45.     struct utmpidle **uia_arr;
  46.     int uia_cnt;
  47. };
  48. typedef struct utmpidlearr utmpidlearr;
  49. int xdr_utmpidlearr();
  50.  
  51. #define RUSERSVERS_1 ((u_long)1)
  52. #define RUSERSVERS_2 ((u_long)2)
  53. #ifndef RUSERSPROG
  54. #define RUSERSPROG ((u_long)100002)
  55. #endif
  56. #ifndef RUSERSPROC_NUM
  57. #define RUSERSPROC_NUM ((u_long)1)
  58. #endif
  59. #ifndef RUSERSPROC_NAMES
  60. #define RUSERSPROC_NAMES ((u_long)2)
  61. #endif
  62. #ifndef RUSERSPROC_ALLNAMES
  63. #define RUSERSPROC_ALLNAMES ((u_long)3)
  64. #endif
  65.  
  66.  
  67. #endif /* !_RNUSERS_H_RPCGEN */
  68.