Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:37

0001 /*
0002  * Copyright (c) 2010, Oracle America, Inc.
0003  *
0004  * Redistribution and use in source and binary forms, with or without
0005  * modification, are permitted provided that the following conditions are
0006  * met:
0007  *
0008  *     * Redistributions of source code must retain the above copyright
0009  *       notice, this list of conditions and the following disclaimer.
0010  *     * Redistributions in binary form must reproduce the above
0011  *       copyright notice, this list of conditions and the following
0012  *       disclaimer in the documentation and/or other materials
0013  *       provided with the distribution.
0014  *     * Neither the name of the "Oracle America, Inc." nor the names of its
0015  *       contributors may be used to endorse or promote products derived
0016  *       from this software without specific prior written permission.
0017  *
0018  *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0019  *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0020  *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
0021  *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
0022  *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
0023  *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
0024  *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
0025  *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0026  *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
0027  *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
0028  *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0029  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0030  */
0031 /* from @(#)ypupdate_prot.x 1.3 91/03/11 TIRPC 1.0 */
0032 
0033 #ifndef __RPCSVC_YPUPD_H__
0034 #define __RPCSVC_YPUPD_H__
0035 
0036 #include <rpc/rpc.h>
0037 
0038 #define MAXMAPNAMELEN 255
0039 #define MAXYPDATALEN 1023
0040 #define MAXERRMSGLEN 255
0041 
0042 #ifdef  __cplusplus
0043 extern "C" {
0044 #endif
0045 
0046 typedef struct {
0047     u_int yp_buf_len;
0048     char *yp_buf_val;
0049 } yp_buf;
0050 
0051 extern  bool_t xdr_yp_buf (XDR *, yp_buf*);
0052 
0053 struct ypupdate_args {
0054     char *mapname;
0055     yp_buf key;
0056     yp_buf datum;
0057 };
0058 typedef struct ypupdate_args ypupdate_args;
0059 
0060 extern  bool_t xdr_ypupdate_args (XDR *, ypupdate_args*);
0061 
0062 struct ypdelete_args {
0063     char *mapname;
0064     yp_buf key;
0065 };
0066 typedef struct ypdelete_args ypdelete_args;
0067 
0068 extern  bool_t xdr_ypdelete_args (XDR *, ypdelete_args*);
0069 
0070 #define YPU_PROG 100028
0071 #define YPU_VERS 1
0072 
0073 #define YPU_CHANGE 1
0074 extern  u_int * ypu_change_1 (ypupdate_args *, CLIENT *);
0075 extern  u_int * ypu_change_1_svc (ypupdate_args *, struct svc_req *);
0076 #define YPU_INSERT 2
0077 extern  u_int * ypu_insert_1 (ypupdate_args *, CLIENT *);
0078 extern  u_int * ypu_insert_1_svc (ypupdate_args *, struct svc_req *);
0079 #define YPU_DELETE 3
0080 extern  u_int * ypu_delete_1 (ypdelete_args *, CLIENT *);
0081 extern  u_int * ypu_delete_1_svc (ypdelete_args *, struct svc_req *);
0082 #define YPU_STORE 4
0083 extern  u_int * ypu_store_1 (ypupdate_args *, CLIENT *);
0084 extern  u_int * ypu_store_1_svc (ypupdate_args *, struct svc_req *);
0085 
0086 #ifdef  __cplusplus
0087 }
0088 #endif
0089 
0090 #endif /* !__RPCSVC_YPUPD_H__ */