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 / rusers.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-23  |  2.8 KB  |  101 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #ifndef _RUSERS_H_RPCGEN
  7. #define _RUSERS_H_RPCGEN
  8.  
  9. #include <rpc/rpc.h>
  10.  
  11. /*
  12.  * Find out about remote users
  13.  */
  14. #define RUSERS_MAXUSERLEN 32
  15. #define RUSERS_MAXLINELEN 32
  16. #define RUSERS_MAXHOSTLEN 257
  17.  
  18. struct rusers_utmp {
  19.     char *ut_user;
  20.     char *ut_line;
  21.     char *ut_host;
  22.     int ut_type;
  23.     int ut_time;
  24.     u_int ut_idle;
  25. };
  26. typedef struct rusers_utmp rusers_utmp;
  27. #ifdef __cplusplus 
  28. extern "C" bool_t xdr_rusers_utmp(XDR *, rusers_utmp*);
  29. #elif __STDC__ 
  30. extern  bool_t xdr_rusers_utmp(XDR *, rusers_utmp*);
  31. #else /* Old Style C */ 
  32. bool_t xdr_rusers_utmp();
  33. #endif /* Old Style C */ 
  34.  
  35.  
  36. typedef struct {
  37.     u_int utmp_array_len;
  38.     rusers_utmp *utmp_array_val;
  39. } utmp_array;
  40. #ifdef __cplusplus 
  41. extern "C" bool_t xdr_utmp_array(XDR *, utmp_array*);
  42. #elif __STDC__ 
  43. extern  bool_t xdr_utmp_array(XDR *, utmp_array*);
  44. #else /* Old Style C */ 
  45. bool_t xdr_utmp_array();
  46. #endif /* Old Style C */ 
  47.  
  48.  
  49. /*
  50.  * Values for ut_type field above.
  51.  */
  52. #define RUSERS_EMPTY 0
  53. #define RUSERS_RUN_LVL 1
  54. #define RUSERS_BOOT_TIME 2
  55. #define RUSERS_OLD_TIME 3
  56. #define RUSERS_NEW_TIME 4
  57. #define RUSERS_INIT_PROCESS 5
  58. #define RUSERS_LOGIN_PROCESS 6
  59. #define RUSERS_USER_PROCESS 7
  60. #define RUSERS_DEAD_PROCESS 8
  61. #define RUSERS_ACCOUNTING 9
  62.  
  63. #define RUSERSPROG ((u_long)100002)
  64. #define RUSERSVERS_3 ((u_long)3)
  65.  
  66. #ifdef __cplusplus
  67. #define RUSERSPROC_NUM ((u_long)1)
  68. extern "C" int * rusersproc_num_3(void *, CLIENT *);
  69. extern "C" int * rusersproc_num_3_svc(void *, struct svc_req *);
  70. #define RUSERSPROC_NAMES ((u_long)2)
  71. extern "C" utmp_array * rusersproc_names_3(void *, CLIENT *);
  72. extern "C" utmp_array * rusersproc_names_3_svc(void *, struct svc_req *);
  73. #define RUSERSPROC_ALLNAMES ((u_long)3)
  74. extern "C" utmp_array * rusersproc_allnames_3(void *, CLIENT *);
  75. extern "C" utmp_array * rusersproc_allnames_3_svc(void *, struct svc_req *);
  76.  
  77. #elif __STDC__
  78. #define RUSERSPROC_NUM ((u_long)1)
  79. extern  int * rusersproc_num_3(void *, CLIENT *);
  80. extern  int * rusersproc_num_3_svc(void *, struct svc_req *);
  81. #define RUSERSPROC_NAMES ((u_long)2)
  82. extern  utmp_array * rusersproc_names_3(void *, CLIENT *);
  83. extern  utmp_array * rusersproc_names_3_svc(void *, struct svc_req *);
  84. #define RUSERSPROC_ALLNAMES ((u_long)3)
  85. extern  utmp_array * rusersproc_allnames_3(void *, CLIENT *);
  86. extern  utmp_array * rusersproc_allnames_3_svc(void *, struct svc_req *);
  87.  
  88. #else /* Old Style C */ 
  89. #define RUSERSPROC_NUM ((u_long)1)
  90. extern  int * rusersproc_num_3();
  91. extern  int * rusersproc_num_3_svc();
  92. #define RUSERSPROC_NAMES ((u_long)2)
  93. extern  utmp_array * rusersproc_names_3();
  94. extern  utmp_array * rusersproc_names_3_svc();
  95. #define RUSERSPROC_ALLNAMES ((u_long)3)
  96. extern  utmp_array * rusersproc_allnames_3();
  97. extern  utmp_array * rusersproc_allnames_3_svc();
  98. #endif /* Old Style C */ 
  99.  
  100. #endif /* !_RUSERS_H_RPCGEN */
  101.