Blame nis/rpcsvc/ypupd.h

Packit 6c4009
/*
Packit 6c4009
 * Copyright (c) 2010, Oracle America, Inc.
Packit 6c4009
 *
Packit 6c4009
 * Redistribution and use in source and binary forms, with or without
Packit 6c4009
 * modification, are permitted provided that the following conditions are
Packit 6c4009
 * met:
Packit 6c4009
 *
Packit 6c4009
 *     * Redistributions of source code must retain the above copyright
Packit 6c4009
 *       notice, this list of conditions and the following disclaimer.
Packit 6c4009
 *     * Redistributions in binary form must reproduce the above
Packit 6c4009
 *       copyright notice, this list of conditions and the following
Packit 6c4009
 *       disclaimer in the documentation and/or other materials
Packit 6c4009
 *       provided with the distribution.
Packit 6c4009
 *     * Neither the name of the "Oracle America, Inc." nor the names of its
Packit 6c4009
 *       contributors may be used to endorse or promote products derived
Packit 6c4009
 *       from this software without specific prior written permission.
Packit 6c4009
 *
Packit 6c4009
 *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit 6c4009
 *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit 6c4009
 *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
Packit 6c4009
 *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
Packit 6c4009
 *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
Packit 6c4009
 *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit 6c4009
 *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
Packit 6c4009
 *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
Packit 6c4009
 *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
Packit 6c4009
 *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
Packit 6c4009
 *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit 6c4009
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 6c4009
 */
Packit 6c4009
/* from @(#)ypupdate_prot.x	1.3 91/03/11 TIRPC 1.0 */
Packit 6c4009
Packit 6c4009
#ifndef __RPCSVC_YPUPD_H__
Packit 6c4009
#define __RPCSVC_YPUPD_H__
Packit 6c4009
Packit 6c4009
#include <features.h>
Packit 6c4009
Packit 6c4009
#include <rpc/rpc.h>
Packit 6c4009
Packit 6c4009
#define MAXMAPNAMELEN 255
Packit 6c4009
#define MAXYPDATALEN 1023
Packit 6c4009
#define MAXERRMSGLEN 255
Packit 6c4009
Packit 6c4009
__BEGIN_DECLS
Packit 6c4009
Packit 6c4009
typedef struct {
Packit 6c4009
	u_int yp_buf_len;
Packit 6c4009
	char *yp_buf_val;
Packit 6c4009
} yp_buf;
Packit 6c4009
Packit 6c4009
extern  bool_t xdr_yp_buf (XDR *, yp_buf*);
Packit 6c4009
Packit 6c4009
struct ypupdate_args {
Packit 6c4009
	char *mapname;
Packit 6c4009
	yp_buf key;
Packit 6c4009
	yp_buf datum;
Packit 6c4009
};
Packit 6c4009
typedef struct ypupdate_args ypupdate_args;
Packit 6c4009
Packit 6c4009
extern  bool_t xdr_ypupdate_args (XDR *, ypupdate_args*);
Packit 6c4009
Packit 6c4009
struct ypdelete_args {
Packit 6c4009
	char *mapname;
Packit 6c4009
	yp_buf key;
Packit 6c4009
};
Packit 6c4009
typedef struct ypdelete_args ypdelete_args;
Packit 6c4009
Packit 6c4009
extern  bool_t xdr_ypdelete_args (XDR *, ypdelete_args*);
Packit 6c4009
Packit 6c4009
#define YPU_PROG 100028
Packit 6c4009
#define YPU_VERS 1
Packit 6c4009
Packit 6c4009
#define YPU_CHANGE 1
Packit 6c4009
extern  u_int * ypu_change_1 (ypupdate_args *, CLIENT *);
Packit 6c4009
extern  u_int * ypu_change_1_svc (ypupdate_args *, struct svc_req *);
Packit 6c4009
#define YPU_INSERT 2
Packit 6c4009
extern  u_int * ypu_insert_1 (ypupdate_args *, CLIENT *);
Packit 6c4009
extern  u_int * ypu_insert_1_svc (ypupdate_args *, struct svc_req *);
Packit 6c4009
#define YPU_DELETE 3
Packit 6c4009
extern  u_int * ypu_delete_1 (ypdelete_args *, CLIENT *);
Packit 6c4009
extern  u_int * ypu_delete_1_svc (ypdelete_args *, struct svc_req *);
Packit 6c4009
#define YPU_STORE 4
Packit 6c4009
extern  u_int * ypu_store_1 (ypupdate_args *, CLIENT *);
Packit 6c4009
extern  u_int * ypu_store_1_svc (ypupdate_args *, struct svc_req *);
Packit 6c4009
Packit 6c4009
__END_DECLS
Packit 6c4009
Packit 6c4009
#endif /* !__RPCSVC_YPUPD_H__ */