Home | History | Annotate | Download | only in snoop
      1 /*
      2  * CDDL HEADER START
      3  *
      4  * The contents of this file are subject to the terms of the
      5  * Common Development and Distribution License, Version 1.0 only
      6  * (the "License").  You may not use this file except in compliance
      7  * with the License.
      8  *
      9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     10  * or http://www.opensolaris.org/os/licensing.
     11  * See the License for the specific language governing permissions
     12  * and limitations under the License.
     13  *
     14  * When distributing Covered Code, include this CDDL HEADER in each
     15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     16  * If applicable, add the following below this CDDL HEADER, with the
     17  * fields enclosed by brackets "[]" replaced with your own identifying
     18  * information: Portions Copyright [yyyy] [name of copyright owner]
     19  *
     20  * CDDL HEADER END
     21  */
     22 /*
     23  * Copyright (c) 1991 by Sun Microsystems, Inc.
     24  */
     25 
     26 /* EDIT_START */
     27 
     28 /*
     29  * nis_clnt.h
     30  *
     31  * This file contains definitions that are only of interest to the actual
     32  * service daemon and client stubs. Normal users of NIS will not include
     33  * this file.
     34  *
     35  * NOTE : This include file is automatically created by a combination
     36  * of rpcgen and sed. DO NOT EDIT IT, change the nis.x file instead
     37  * and then remake this file.
     38  */
     39 
     40 #ifndef _NIS_CLNT_H
     41 #define	_NIS_CLNT_H
     42 
     43 #pragma ident	"%Z%%M%	%I%	%E% SMI"
     44 
     45 #ifdef __cplusplus
     46 extern "C" {
     47 #endif
     48 
     49 #define	NIS_PROG ((u_long)100300)
     50 #define	NIS_VERSION ((u_long)3)
     51 
     52 #ifdef __STDC__
     53 #define	NIS_LOOKUP ((u_long)1)
     54 extern  nis_result * nis_lookup_clnt(ns_request *, CLIENT *);
     55 extern  nis_result * nis_lookup_svc(ns_request *, struct svc_req *);
     56 #define	NIS_ADD ((u_long)2)
     57 extern  nis_result * nis_add_clnt(ns_request *, CLIENT *);
     58 extern  nis_result * nis_add_svc(ns_request *, struct svc_req *);
     59 #define	NIS_MODIFY ((u_long)3)
     60 extern  nis_result * nis_modify_clnt(ns_request *, CLIENT *);
     61 extern  nis_result * nis_modify_svc(ns_request *, struct svc_req *);
     62 #define	NIS_REMOVE ((u_long)4)
     63 extern  nis_result * nis_remove_clnt(ns_request *, CLIENT *);
     64 extern  nis_result * nis_remove_svc(ns_request *, struct svc_req *);
     65 #define	NIS_IBLIST ((u_long)5)
     66 extern  nis_result * nis_iblist_clnt(ib_request *, CLIENT *);
     67 extern  nis_result * nis_iblist_svc(ib_request *, struct svc_req *);
     68 #define	NIS_IBADD ((u_long)6)
     69 extern  nis_result * nis_ibadd_clnt(ib_request *, CLIENT *);
     70 extern  nis_result * nis_ibadd_svc(ib_request *, struct svc_req *);
     71 #define	NIS_IBMODIFY ((u_long)7)
     72 extern  nis_result * nis_ibmodify_clnt(ib_request *, CLIENT *);
     73 extern  nis_result * nis_ibmodify_svc(ib_request *, struct svc_req *);
     74 #define	NIS_IBREMOVE ((u_long)8)
     75 extern  nis_result * nis_ibremove_clnt(ib_request *, CLIENT *);
     76 extern  nis_result * nis_ibremove_svc(ib_request *, struct svc_req *);
     77 #define	NIS_IBFIRST ((u_long)9)
     78 extern  nis_result * nis_ibfirst_clnt(ib_request *, CLIENT *);
     79 extern  nis_result * nis_ibfirst_svc(ib_request *, struct svc_req *);
     80 #define	NIS_IBNEXT ((u_long)10)
     81 extern  nis_result * nis_ibnext_clnt(ib_request *, CLIENT *);
     82 extern  nis_result * nis_ibnext_svc(ib_request *, struct svc_req *);
     83 #define	NIS_FINDDIRECTORY ((u_long)12)
     84 extern  fd_result * nis_finddirectory_clnt(fd_args *, CLIENT *);
     85 extern  fd_result * nis_finddirectory_svc(fd_args *, struct svc_req *);
     86 #define	NIS_STATUS ((u_long)14)
     87 extern  nis_taglist * nis_status_clnt(nis_taglist *, CLIENT *);
     88 extern  nis_taglist * nis_status_svc(nis_taglist *, struct svc_req *);
     89 #define	NIS_DUMPLOG ((u_long)15)
     90 extern  log_result * nis_dumplog_clnt(dump_args *, CLIENT *);
     91 extern  log_result * nis_dumplog_svc(dump_args *, struct svc_req *);
     92 #define	NIS_DUMP ((u_long)16)
     93 extern  log_result * nis_dump_clnt(dump_args *, CLIENT *);
     94 extern  log_result * nis_dump_svc(dump_args *, struct svc_req *);
     95 #define	NIS_CALLBACK ((u_long)17)
     96 extern  bool_t * nis_callback_clnt(netobj *, CLIENT *);
     97 extern  bool_t * nis_callback_svc(netobj *, struct svc_req *);
     98 #define	NIS_CPTIME ((u_long)18)
     99 extern  u_long * nis_cptime_clnt(nis_name *, CLIENT *);
    100 extern  u_long * nis_cptime_svc(nis_name *, struct svc_req *);
    101 #define	NIS_CHECKPOINT ((u_long)19)
    102 extern  cp_result * nis_checkpoint_clnt(nis_name *, CLIENT *);
    103 extern  cp_result * nis_checkpoint_svc(nis_name *, struct svc_req *);
    104 #define	NIS_PING ((u_long)20)
    105 extern  void * nis_ping_clnt(ping_args *, CLIENT *);
    106 extern  void * nis_ping_svc(ping_args *, struct svc_req *);
    107 #define	NIS_SERVSTATE ((u_long)21)
    108 extern  nis_taglist * nis_servstate_clnt(nis_taglist *, CLIENT *);
    109 extern  nis_taglist * nis_servstate_svc(nis_taglist *, struct svc_req *);
    110 #define	NIS_MKDIR ((u_long)22)
    111 extern  nis_error * nis_mkdir_clnt(nis_name *, CLIENT *);
    112 extern  nis_error * nis_mkdir_svc(nis_name *, struct svc_req *);
    113 #define	NIS_RMDIR ((u_long)23)
    114 extern  nis_error * nis_rmdir_clnt(nis_name *, CLIENT *);
    115 extern  nis_error * nis_rmdir_svc(nis_name *, struct svc_req *);
    116 
    117 #else /* K&R C */
    118 
    119 #define	NIS_LOOKUP ((u_long)1)
    120 extern  nis_result * nis_lookup_clnt();
    121 extern  nis_result * nis_lookup_svc();
    122 #define	NIS_ADD ((u_long)2)
    123 extern  nis_result * nis_add_clnt();
    124 extern  nis_result * nis_add_svc();
    125 #define	NIS_MODIFY ((u_long)3)
    126 extern  nis_result * nis_modify_clnt();
    127 extern  nis_result * nis_modify_svc();
    128 #define	NIS_REMOVE ((u_long)4)
    129 extern  nis_result * nis_remove_clnt();
    130 extern  nis_result * nis_remove_svc();
    131 #define	NIS_IBLIST ((u_long)5)
    132 extern  nis_result * nis_iblist_clnt();
    133 extern  nis_result * nis_iblist_svc();
    134 #define	NIS_IBADD ((u_long)6)
    135 extern  nis_result * nis_ibadd_clnt();
    136 extern  nis_result * nis_ibadd_svc();
    137 #define	NIS_IBMODIFY ((u_long)7)
    138 extern  nis_result * nis_ibmodify_clnt();
    139 extern  nis_result * nis_ibmodify_svc();
    140 #define	NIS_IBREMOVE ((u_long)8)
    141 extern  nis_result * nis_ibremove_clnt();
    142 extern  nis_result * nis_ibremove_svc();
    143 #define	NIS_IBFIRST ((u_long)9)
    144 extern  nis_result * nis_ibfirst_clnt();
    145 extern  nis_result * nis_ibfirst_svc();
    146 #define	NIS_IBNEXT ((u_long)10)
    147 extern  nis_result * nis_ibnext_clnt();
    148 extern  nis_result * nis_ibnext_svc();
    149 #define	NIS_FINDDIRECTORY ((u_long)12)
    150 extern  fd_result * nis_finddirectory_clnt();
    151 extern  fd_result * nis_finddirectory_svc();
    152 #define	NIS_STATUS ((u_long)14)
    153 extern  nis_taglist * nis_status_clnt();
    154 extern  nis_taglist * nis_status_svc();
    155 #define	NIS_DUMPLOG ((u_long)15)
    156 extern  log_result * nis_dumplog_clnt();
    157 extern  log_result * nis_dumplog_svc();
    158 #define	NIS_DUMP ((u_long)16)
    159 extern  log_result * nis_dump_clnt();
    160 extern  log_result * nis_dump_svc();
    161 #define	NIS_CALLBACK ((u_long)17)
    162 extern  bool_t * nis_callback_clnt();
    163 extern  bool_t * nis_callback_svc();
    164 #define	NIS_CPTIME ((u_long)18)
    165 extern  u_long * nis_cptime_clnt();
    166 extern  u_long * nis_cptime_svc();
    167 #define	NIS_CHECKPOINT ((u_long)19)
    168 extern  cp_result * nis_checkpoint_clnt();
    169 extern  cp_result * nis_checkpoint_svc();
    170 #define	NIS_PING ((u_long)20)
    171 extern  void * nis_ping_clnt();
    172 extern  void * nis_ping_svc();
    173 #define	NIS_SERVSTATE ((u_long)21)
    174 extern  nis_taglist * nis_servstate_clnt();
    175 extern  nis_taglist * nis_servstate_svc();
    176 #define	NIS_MKDIR ((u_long)22)
    177 extern  nis_error * nis_mkdir_clnt();
    178 extern  nis_error * nis_mkdir_svc();
    179 #define	NIS_RMDIR ((u_long)23)
    180 extern  nis_error * nis_rmdir_clnt();
    181 extern  nis_error * nis_rmdir_svc();
    182 
    183 #endif /* K&R C */
    184 
    185 /* Now print out the definitions of all the xdr functions */
    186 
    187 #ifdef __STDC__
    188 extern  bool_t xdr_nis_attr(XDR *, nis_attr *);
    189 extern  bool_t xdr_nis_name(XDR *, nis_name *);
    190 extern  bool_t xdr_zotypes(XDR *, zotypes *);
    191 extern  bool_t xdr_nstype(XDR *, nstype *);
    192 extern  bool_t xdr_oar_mask(XDR *, oar_mask *);
    193 extern  bool_t xdr_endpoint(XDR *, endpoint *);
    194 extern  bool_t xdr_nis_server(XDR *, nis_server *);
    195 extern  bool_t xdr_directory_obj(XDR *, directory_obj *);
    196 extern  bool_t xdr_entry_col(XDR *, entry_col *);
    197 extern  bool_t xdr_entry_obj(XDR *, entry_obj *);
    198 extern  bool_t xdr_group_obj(XDR *, group_obj *);
    199 extern  bool_t xdr_link_obj(XDR *, link_obj *);
    200 extern  bool_t xdr_table_col(XDR *, table_col *);
    201 extern  bool_t xdr_table_obj(XDR *, table_obj *);
    202 extern  bool_t xdr_objdata(XDR *, objdata *);
    203 extern  bool_t xdr_nis_oid(XDR *, nis_oid *);
    204 extern  bool_t xdr_nis_object(XDR *, nis_object *);
    205 extern  bool_t xdr_nis_error(XDR *, nis_error *);
    206 extern  bool_t xdr_nis_result(XDR *, nis_result *);
    207 extern  bool_t xdr_ns_request(XDR *, ns_request *);
    208 extern  bool_t xdr_ib_request(XDR *, ib_request *);
    209 extern  bool_t xdr_ping_args(XDR *, ping_args *);
    210 extern  bool_t xdr_log_entry_t(XDR *, log_entry_t *);
    211 extern  bool_t xdr_log_entry(XDR *, log_entry *);
    212 extern  bool_t xdr_log_result(XDR *, log_result *);
    213 extern  bool_t xdr_cp_result(XDR *, cp_result *);
    214 extern  bool_t xdr_nis_tag(XDR *, nis_tag *);
    215 extern  bool_t xdr_nis_taglist(XDR *, nis_taglist *);
    216 extern  bool_t xdr_dump_args(XDR *, dump_args *);
    217 extern  bool_t xdr_fd_args(XDR *, fd_args *);
    218 extern  bool_t xdr_fd_result(XDR *, fd_result *);
    219 
    220 #else /* K&R C */
    221 
    222 bool_t xdr_nis_attr();
    223 bool_t xdr_nis_name();
    224 bool_t xdr_zotypes();
    225 bool_t xdr_nstype();
    226 bool_t xdr_oar_mask();
    227 bool_t xdr_endpoint();
    228 bool_t xdr_nis_server();
    229 bool_t xdr_directory_obj();
    230 bool_t xdr_entry_col();
    231 bool_t xdr_entry_obj();
    232 bool_t xdr_group_obj();
    233 bool_t xdr_link_obj();
    234 bool_t xdr_table_col();
    235 bool_t xdr_table_obj();
    236 bool_t xdr_objdata();
    237 bool_t xdr_nis_oid();
    238 bool_t xdr_nis_object();
    239 bool_t xdr_nis_error();
    240 bool_t xdr_nis_result();
    241 bool_t xdr_ns_request();
    242 bool_t xdr_ib_request();
    243 bool_t xdr_ping_args();
    244 bool_t xdr_log_entry_t();
    245 bool_t xdr_log_entry();
    246 bool_t xdr_log_result();
    247 bool_t xdr_cp_result();
    248 bool_t xdr_nis_tag();
    249 bool_t xdr_nis_taglist();
    250 bool_t xdr_dump_args();
    251 bool_t xdr_fd_args();
    252 bool_t xdr_fd_result();
    253 
    254 #endif /* K&R C */
    255 
    256 #ifdef __cplusplus
    257 }
    258 #endif
    259 
    260 #endif /* _NIS_CLNT_H */
    261