nis.h 16 KB

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