nis.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. /*
  2. * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  3. * unrestricted use provided that this legend is included on all tape
  4. * media and as a part of the software program in whole or part. Users
  5. * may copy or modify Sun RPC without charge, but are not authorized
  6. * to license or distribute it to anyone else except as part of a product or
  7. * program developed by the user or with the express written consent of
  8. * Sun Microsystems, Inc.
  9. *
  10. * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  11. * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  12. * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  13. *
  14. * Sun RPC is provided with no support and without any obligation on the
  15. * part of Sun Microsystems, Inc. to assist in its use, correction,
  16. * modification or enhancement.
  17. *
  18. * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  19. * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  20. * OR ANY PART THEREOF.
  21. *
  22. * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  23. * or profits or other special, indirect and consequential damages, even if
  24. * Sun has been advised of the possibility of such damages.
  25. *
  26. * Sun Microsystems, Inc.
  27. * 2550 Garcia Avenue
  28. * Mountain View, California 94043
  29. */
  30. #ifndef _RPCSVC_NIS_H
  31. #define _RPCSVC_NIS_H 1
  32. #include <features.h>
  33. #include <rpc/rpc.h>
  34. #include <rpcsvc/nis_tags.h>
  35. __BEGIN_DECLS
  36. /*
  37. * nis.h
  38. *
  39. * This file is the main include file for NIS clients. It contains
  40. * both the client library function defines and the various data
  41. * structures used by the NIS service. It includes the file nis_tags.h
  42. * which defines the tag values. This allows the tags to change without
  43. * having to change the nis.x file.
  44. *
  45. * NOTE : THIS FILE IS NOT GENERATED WITH RPCGEN ! SO YOU HAVE TO
  46. * ADD ALL THE CHANGES ON nis_*.x FILES HERE AGAIN !
  47. *
  48. * I have removed all the Solaris internal structs and variables,
  49. * because they are not supported, Sun changed them between various
  50. * releases and they shouldn't be used in user programs.
  51. * <kukuk@suse.de>
  52. */
  53. #ifndef __nis_object_h
  54. #define __nis_object_h
  55. #define NIS_MAXSTRINGLEN 255
  56. #define NIS_MAXNAMELEN 1024
  57. #define NIS_MAXATTRNAME 32
  58. #define NIS_MAXATTRVAL 2048
  59. #define NIS_MAXCOLUMNS 64
  60. #define NIS_MAXATTR 16
  61. #define NIS_MAXPATH 1024
  62. #define NIS_MAXREPLICAS 128
  63. #define NIS_MAXLINKS 16
  64. #define NIS_PK_NONE 0
  65. #define NIS_PK_DH 1
  66. #define NIS_PK_RSA 2
  67. #define NIS_PK_KERB 3
  68. #define NIS_PK_DHEXT 4
  69. struct nis_attr {
  70. char *zattr_ndx;
  71. struct {
  72. u_int zattr_val_len;
  73. char *zattr_val_val;
  74. } zattr_val;
  75. };
  76. typedef struct nis_attr nis_attr;
  77. typedef char *nis_name;
  78. enum zotypes {
  79. BOGUS_OBJ = 0,
  80. NO_OBJ = 1,
  81. DIRECTORY_OBJ = 2,
  82. GROUP_OBJ = 3,
  83. TABLE_OBJ = 4,
  84. ENTRY_OBJ = 5,
  85. LINK_OBJ = 6,
  86. PRIVATE_OBJ = 7,
  87. NIS_BOGUS_OBJ = 0,
  88. NIS_NO_OBJ = 1,
  89. NIS_DIRECTORY_OBJ = 2,
  90. NIS_GROUP_OBJ = 3,
  91. NIS_TABLE_OBJ = 4,
  92. NIS_ENTRY_OBJ = 5,
  93. NIS_LINK_OBJ = 6,
  94. NIS_PRIVATE_OBJ = 7
  95. };
  96. typedef enum zotypes zotypes;
  97. enum nstype {
  98. UNKNOWN = 0,
  99. NIS = 1,
  100. SUNYP = 2,
  101. IVY = 3,
  102. DNS = 4,
  103. X500 = 5,
  104. DNANS = 6,
  105. XCHS = 7,
  106. CDS = 8,
  107. };
  108. typedef enum nstype nstype;
  109. struct oar_mask {
  110. uint32_t oa_rights;
  111. zotypes oa_otype;
  112. };
  113. typedef struct oar_mask oar_mask;
  114. struct endpoint {
  115. char *uaddr;
  116. char *family;
  117. char *proto;
  118. };
  119. typedef struct endpoint endpoint;
  120. struct nis_server {
  121. nis_name name;
  122. struct {
  123. u_int ep_len;
  124. endpoint *ep_val;
  125. } ep;
  126. uint32_t key_type;
  127. netobj pkey;
  128. };
  129. typedef struct nis_server nis_server;
  130. struct directory_obj {
  131. nis_name do_name;
  132. nstype do_type;
  133. struct {
  134. u_int do_servers_len;
  135. nis_server *do_servers_val;
  136. } do_servers;
  137. uint32_t do_ttl;
  138. struct {
  139. u_int do_armask_len;
  140. oar_mask *do_armask_val;
  141. } do_armask;
  142. };
  143. typedef struct directory_obj directory_obj;
  144. #define EN_BINARY 1
  145. #define EN_CRYPT 2
  146. #define EN_XDR 4
  147. #define EN_MODIFIED 8
  148. #define EN_ASN1 64
  149. struct entry_col {
  150. uint32_t ec_flags;
  151. struct {
  152. u_int ec_value_len;
  153. char *ec_value_val;
  154. } ec_value;
  155. };
  156. typedef struct entry_col entry_col;
  157. struct entry_obj {
  158. char *en_type;
  159. struct {
  160. u_int en_cols_len;
  161. entry_col *en_cols_val;
  162. } en_cols;
  163. };
  164. typedef struct entry_obj entry_obj;
  165. struct group_obj {
  166. uint32_t gr_flags;
  167. struct {
  168. u_int gr_members_len;
  169. nis_name *gr_members_val;
  170. } gr_members;
  171. };
  172. typedef struct group_obj group_obj;
  173. struct link_obj {
  174. zotypes li_rtype;
  175. struct {
  176. u_int li_attrs_len;
  177. nis_attr *li_attrs_val;
  178. } li_attrs;
  179. nis_name li_name;
  180. };
  181. typedef struct link_obj link_obj;
  182. #define TA_BINARY 1
  183. #define TA_CRYPT 2
  184. #define TA_XDR 4
  185. #define TA_SEARCHABLE 8
  186. #define TA_CASE 16
  187. #define TA_MODIFIED 32
  188. #define TA_ASN1 64
  189. struct table_col {
  190. char *tc_name;
  191. uint32_t tc_flags;
  192. uint32_t tc_rights;
  193. };
  194. typedef struct table_col table_col;
  195. struct table_obj {
  196. char *ta_type;
  197. int ta_maxcol;
  198. u_char ta_sep;
  199. struct {
  200. u_int ta_cols_len;
  201. table_col *ta_cols_val;
  202. } ta_cols;
  203. char *ta_path;
  204. };
  205. typedef struct table_obj table_obj;
  206. struct objdata {
  207. zotypes zo_type;
  208. union {
  209. struct directory_obj di_data;
  210. struct group_obj gr_data;
  211. struct table_obj ta_data;
  212. struct entry_obj en_data;
  213. struct link_obj li_data;
  214. struct {
  215. u_int po_data_len;
  216. char *po_data_val;
  217. } po_data;
  218. } objdata_u;
  219. };
  220. typedef struct objdata objdata;
  221. struct nis_oid {
  222. uint32_t ctime;
  223. uint32_t mtime;
  224. };
  225. typedef struct nis_oid nis_oid;
  226. struct nis_object {
  227. nis_oid zo_oid;
  228. nis_name zo_name;
  229. nis_name zo_owner;
  230. nis_name zo_group;
  231. nis_name zo_domain;
  232. uint32_t zo_access;
  233. uint32_t zo_ttl;
  234. objdata zo_data;
  235. };
  236. typedef struct nis_object nis_object;
  237. #endif /* if __nis_object_h */
  238. enum nis_error {
  239. NIS_SUCCESS = 0,
  240. NIS_S_SUCCESS = 1,
  241. NIS_NOTFOUND = 2,
  242. NIS_S_NOTFOUND = 3,
  243. NIS_CACHEEXPIRED = 4,
  244. NIS_NAMEUNREACHABLE = 5,
  245. NIS_UNKNOWNOBJ = 6,
  246. NIS_TRYAGAIN = 7,
  247. NIS_SYSTEMERROR = 8,
  248. NIS_CHAINBROKEN = 9,
  249. NIS_PERMISSION = 10,
  250. NIS_NOTOWNER = 11,
  251. NIS_NOT_ME = 12,
  252. NIS_NOMEMORY = 13,
  253. NIS_NAMEEXISTS = 14,
  254. NIS_NOTMASTER = 15,
  255. NIS_INVALIDOBJ = 16,
  256. NIS_BADNAME = 17,
  257. NIS_NOCALLBACK = 18,
  258. NIS_CBRESULTS = 19,
  259. NIS_NOSUCHNAME = 20,
  260. NIS_NOTUNIQUE = 21,
  261. NIS_IBMODERROR = 22,
  262. NIS_NOSUCHTABLE = 23,
  263. NIS_TYPEMISMATCH = 24,
  264. NIS_LINKNAMEERROR = 25,
  265. NIS_PARTIAL = 26,
  266. NIS_TOOMANYATTRS = 27,
  267. NIS_RPCERROR = 28,
  268. NIS_BADATTRIBUTE = 29,
  269. NIS_NOTSEARCHABLE = 30,
  270. NIS_CBERROR = 31,
  271. NIS_FOREIGNNS = 32,
  272. NIS_BADOBJECT = 33,
  273. NIS_NOTSAMEOBJ = 34,
  274. NIS_MODFAIL = 35,
  275. NIS_BADREQUEST = 36,
  276. NIS_NOTEMPTY = 37,
  277. NIS_COLDSTART_ERR = 38,
  278. NIS_RESYNC = 39,
  279. NIS_FAIL = 40,
  280. NIS_UNAVAIL = 41,
  281. NIS_RES2BIG = 42,
  282. NIS_SRVAUTH = 43,
  283. NIS_CLNTAUTH = 44,
  284. NIS_NOFILESPACE = 45,
  285. NIS_NOPROC = 46,
  286. NIS_DUMPLATER = 47,
  287. };
  288. typedef enum nis_error nis_error;
  289. struct nis_result {
  290. nis_error status;
  291. struct {
  292. u_int objects_len;
  293. nis_object *objects_val;
  294. } objects;
  295. netobj cookie;
  296. uint32_t zticks;
  297. uint32_t dticks;
  298. uint32_t aticks;
  299. uint32_t cticks;
  300. };
  301. typedef struct nis_result nis_result;
  302. struct ns_request {
  303. nis_name ns_name;
  304. struct {
  305. u_int ns_object_len;
  306. nis_object *ns_object_val;
  307. } ns_object;
  308. };
  309. typedef struct ns_request ns_request;
  310. struct ib_request {
  311. nis_name ibr_name;
  312. struct {
  313. u_int ibr_srch_len;
  314. nis_attr *ibr_srch_val;
  315. } ibr_srch;
  316. uint32_t ibr_flags;
  317. struct {
  318. u_int ibr_obj_len;
  319. nis_object *ibr_obj_val;
  320. } ibr_obj;
  321. struct {
  322. u_int ibr_cbhost_len;
  323. nis_server *ibr_cbhost_val;
  324. } ibr_cbhost;
  325. u_int ibr_bufsize;
  326. netobj ibr_cookie;
  327. };
  328. typedef struct ib_request ib_request;
  329. struct ping_args {
  330. nis_name dir;
  331. uint32_t stamp;
  332. };
  333. typedef struct ping_args ping_args;
  334. enum log_entry_t {
  335. LOG_NOP = 0,
  336. ADD_NAME = 1,
  337. REM_NAME = 2,
  338. MOD_NAME_OLD = 3,
  339. MOD_NAME_NEW = 4,
  340. ADD_IBASE = 5,
  341. REM_IBASE = 6,
  342. MOD_IBASE = 7,
  343. UPD_STAMP = 8,
  344. };
  345. typedef enum log_entry_t log_entry_t;
  346. struct log_entry {
  347. uint32_t le_time;
  348. log_entry_t le_type;
  349. nis_name le_princp;
  350. nis_name le_name;
  351. struct {
  352. u_int le_attrs_len;
  353. nis_attr *le_attrs_val;
  354. } le_attrs;
  355. nis_object le_object;
  356. };
  357. typedef struct log_entry log_entry;
  358. struct log_result {
  359. nis_error lr_status;
  360. netobj lr_cookie;
  361. struct {
  362. u_int lr_entries_len;
  363. log_entry *lr_entries_val;
  364. } lr_entries;
  365. };
  366. typedef struct log_result log_result;
  367. struct cp_result {
  368. nis_error cp_status;
  369. uint32_t cp_zticks;
  370. uint32_t cp_dticks;
  371. };
  372. typedef struct cp_result cp_result;
  373. struct nis_tag {
  374. uint32_t tag_type;
  375. char *tag_val;
  376. };
  377. typedef struct nis_tag nis_tag;
  378. struct nis_taglist {
  379. struct {
  380. u_int tags_len;
  381. nis_tag *tags_val;
  382. } tags;
  383. };
  384. typedef struct nis_taglist nis_taglist;
  385. struct dump_args {
  386. nis_name da_dir;
  387. uint32_t da_time;
  388. struct {
  389. u_int da_cbhost_len;
  390. nis_server *da_cbhost_val;
  391. } da_cbhost;
  392. };
  393. typedef struct dump_args dump_args;
  394. struct fd_args {
  395. nis_name dir_name;
  396. nis_name requester;
  397. };
  398. typedef struct fd_args fd_args;
  399. struct fd_result {
  400. nis_error status;
  401. nis_name source;
  402. struct {
  403. u_int dir_data_len;
  404. char *dir_data_val;
  405. } dir_data;
  406. struct {
  407. u_int signature_len;
  408. char *signature_val;
  409. } signature;
  410. };
  411. typedef struct fd_result fd_result;
  412. /* Generic client creating flags */
  413. #define ZMH_VC 1
  414. #define ZMH_DG 2
  415. #define ZMH_AUTH 4
  416. /* Testing Access rights for objects */
  417. #define NIS_READ_ACC 1
  418. #define NIS_MODIFY_ACC 2
  419. #define NIS_CREATE_ACC 4
  420. #define NIS_DESTROY_ACC 8
  421. /* Test macros. a == access rights, m == desired rights. */
  422. #define NIS_WORLD(a, m) (((a) & (m)) != 0)
  423. #define NIS_GROUP(a, m) (((a) & ((m) << 8)) != 0)
  424. #define NIS_OWNER(a, m) (((a) & ((m) << 16)) != 0)
  425. #define NIS_NOBODY(a, m) (((a) & ((m) << 24)) != 0)
  426. /*
  427. * EOL Alert - The following non-prefixed test macros are
  428. * here for backward compatability, and will be not be present
  429. * in future releases - use the NIS_*() macros above.
  430. */
  431. #define WORLD(a, m) (((a) & (m)) != 0)
  432. #define GROUP(a, m) (((a) & ((m) << 8)) != 0)
  433. #define OWNER(a, m) (((a) & ((m) << 16)) != 0)
  434. #define NOBODY(a, m) (((a) & ((m) << 24)) != 0)
  435. #define OATYPE(d, n) (((d)->do_armask.do_armask_val+n)->oa_otype)
  436. #define OARIGHTS(d, n) (((d)->do_armask.do_armask_val+n)->oa_rights)
  437. #define WORLD_DEFAULT (NIS_READ_ACC)
  438. #define GROUP_DEFAULT (NIS_READ_ACC << 8)
  439. #define OWNER_DEFAULT ((NIS_READ_ACC + NIS_MODIFY_ACC + NIS_CREATE_ACC +\
  440. NIS_DESTROY_ACC) << 16)
  441. #define DEFAULT_RIGHTS (WORLD_DEFAULT | GROUP_DEFAULT | OWNER_DEFAULT)
  442. /* Result manipulation defines ... */
  443. #define NIS_RES_NUMOBJ(x) ((x)->objects.objects_len)
  444. #define NIS_RES_OBJECT(x) ((x)->objects.objects_val)
  445. #define NIS_RES_COOKIE(x) ((x)->cookie)
  446. #define NIS_RES_STATUS(x) ((x)->status)
  447. /* These defines make getting at the variant part of the object easier. */
  448. #define TA_data zo_data.objdata_u.ta_data
  449. #define EN_data zo_data.objdata_u.en_data
  450. #define DI_data zo_data.objdata_u.di_data
  451. #define LI_data zo_data.objdata_u.li_data
  452. #define GR_data zo_data.objdata_u.gr_data
  453. #define __type_of(o) ((o)->zo_data.zo_type)
  454. /* Declarations for the internal subroutines in nislib.c */
  455. enum name_pos {SAME_NAME, HIGHER_NAME, LOWER_NAME, NOT_SEQUENTIAL, BAD_NAME};
  456. typedef enum name_pos name_pos;
  457. /*
  458. * Defines for getting at column data in entry objects. Because RPCGEN
  459. * generates some rather wordy structures, we create some defines that
  460. * collapse the needed keystrokes to access a particular value using
  461. * these definitions they take an nis_object *, and an int and return
  462. * a u_char * for Value, and an int for length.
  463. */
  464. #define ENTRY_VAL(obj, col) (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_val
  465. #define ENTRY_LEN(obj, col) (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_len
  466. /* Prototypes, and extern declarations for the NIS library functions. */
  467. #include <rpcsvc/nislib.h>
  468. #endif
  469. /*
  470. * nis_3.h
  471. *
  472. * This file contains definitions that are only of interest to the actual
  473. * service daemon and client stubs. Normal users of NIS will not include
  474. * this file.
  475. *
  476. * NOTE : This include file is automatically created by a combination
  477. * of rpcgen and sed. DO NOT EDIT IT, change the nis.x file instead
  478. * and then remake this file.
  479. */
  480. #ifndef __nis_3_h
  481. #define __nis_3_h
  482. #define NIS_PROG 100300
  483. #define NIS_VERSION 3
  484. #define NIS_LOOKUP 1
  485. extern nis_result * nis_lookup_3 (ns_request *, CLIENT *) __THROW;
  486. extern nis_result * nis_lookup_3_svc (ns_request *, struct svc_req *) __THROW;
  487. #define NIS_ADD 2
  488. extern nis_result * nis_add_3 (ns_request *, CLIENT *) __THROW;
  489. extern nis_result * nis_add_3_svc (ns_request *, struct svc_req *) __THROW;
  490. #define NIS_MODIFY 3
  491. extern nis_result * nis_modify_3 (ns_request *, CLIENT *) __THROW;
  492. extern nis_result * nis_modify_3_svc (ns_request *, struct svc_req *) __THROW;
  493. #define NIS_REMOVE 4
  494. extern nis_result * nis_remove_3 (ns_request *, CLIENT *) __THROW;
  495. extern nis_result * nis_remove_3_svc (ns_request *, struct svc_req *) __THROW;
  496. #define NIS_IBLIST 5
  497. extern nis_result * nis_iblist_3 (ib_request *, CLIENT *) __THROW;
  498. extern nis_result * nis_iblist_3_svc (ib_request *, struct svc_req *) __THROW;
  499. #define NIS_IBADD 6
  500. extern nis_result * nis_ibadd_3 (ib_request *, CLIENT *) __THROW;
  501. extern nis_result * nis_ibadd_3_svc (ib_request *, struct svc_req *) __THROW;
  502. #define NIS_IBMODIFY 7
  503. extern nis_result * nis_ibmodify_3 (ib_request *, CLIENT *) __THROW;
  504. extern nis_result * nis_ibmodify_3_svc (ib_request *, struct svc_req *)
  505. __THROW;
  506. #define NIS_IBREMOVE 8
  507. extern nis_result * nis_ibremove_3 (ib_request *, CLIENT *) __THROW;
  508. extern nis_result * nis_ibremove_3_svc (ib_request *, struct svc_req *)
  509. __THROW;
  510. #define NIS_IBFIRST 9
  511. extern nis_result * nis_ibfirst_3 (ib_request *, CLIENT *) __THROW;
  512. extern nis_result * nis_ibfirst_3_svc (ib_request *, struct svc_req *)
  513. __THROW;
  514. #define NIS_IBNEXT 10
  515. extern nis_result * nis_ibnext_3 (ib_request *, CLIENT *) __THROW;
  516. extern nis_result * nis_ibnext_3_svc (ib_request *, struct svc_req *) __THROW;
  517. #define NIS_FINDDIRECTORY 12
  518. extern fd_result * nis_finddirectory_3 (fd_args *, CLIENT *) __THROW;
  519. extern fd_result * nis_finddirectory_3_svc (fd_args *,
  520. struct svc_req *) __THROW;
  521. #define NIS_STATUS 14
  522. extern nis_taglist * nis_status_3 (nis_taglist *, CLIENT *) __THROW;
  523. extern nis_taglist * nis_status_3_svc (nis_taglist *, struct svc_req *)
  524. __THROW;
  525. #define NIS_DUMPLOG 15
  526. extern log_result * nis_dumplog_3 (dump_args *, CLIENT *) __THROW;
  527. extern log_result * nis_dumplog_3_svc (dump_args *, struct svc_req *) __THROW;
  528. #define NIS_DUMP 16
  529. extern log_result * nis_dump_3 (dump_args *, CLIENT *) __THROW;
  530. extern log_result * nis_dump_3_svc (dump_args *, struct svc_req *) __THROW;
  531. #define NIS_CALLBACK 17
  532. extern bool_t * nis_callback_3 (netobj *, CLIENT *) __THROW;
  533. extern bool_t * nis_callback_3_svc (netobj *, struct svc_req *) __THROW;
  534. #define NIS_CPTIME 18
  535. extern uint32_t * nis_cptime_3 (nis_name *, CLIENT *) __THROW;
  536. extern uint32_t * nis_cptime_3_svc (nis_name *, struct svc_req *) __THROW;
  537. #define NIS_CHECKPOINT 19
  538. extern cp_result * nis_checkpoint_3 (nis_name *, CLIENT *) __THROW;
  539. extern cp_result * nis_checkpoint_3_svc (nis_name *, struct svc_req *)
  540. __THROW;
  541. #define NIS_PING 20
  542. extern void * nis_ping_3 (ping_args *, CLIENT *) __THROW;
  543. extern void * nis_ping_3_svc (ping_args *, struct svc_req *) __THROW;
  544. #define NIS_SERVSTATE 21
  545. extern nis_taglist * nis_servstate_3 (nis_taglist *, CLIENT *) __THROW;
  546. extern nis_taglist * nis_servstate_3_svc (nis_taglist *,
  547. struct svc_req *) __THROW;
  548. #define NIS_MKDIR 22
  549. extern nis_error * nis_mkdir_3 (nis_name *, CLIENT *) __THROW;
  550. extern nis_error * nis_mkdir_3_svc (nis_name *, struct svc_req *) __THROW;
  551. #define NIS_RMDIR 23
  552. extern nis_error * nis_rmdir_3 (nis_name *, CLIENT *) __THROW;
  553. extern nis_error * nis_rmdir_3_svc (nis_name *, struct svc_req *) __THROW;
  554. #define NIS_UPDKEYS 24
  555. extern nis_error * nis_updkeys_3 (nis_name *, CLIENT *) __THROW;
  556. extern nis_error * nis_updkeys_3_svc (nis_name *, struct svc_req *) __THROW;
  557. __END_DECLS
  558. #endif /* ! _RPCSVC_NIS_H */