Home | History | Annotate | Download | only in rpcsvc
      1  0  stevel /*
      2  0  stevel  * CDDL HEADER START
      3  0  stevel  *
      4  0  stevel  * The contents of this file are subject to the terms of the
      5  0  stevel  * Common Development and Distribution License, Version 1.0 only
      6  0  stevel  * (the "License").  You may not use this file except in compliance
      7  0  stevel  * with the License.
      8  0  stevel  *
      9  0  stevel  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     10  0  stevel  * or http://www.opensolaris.org/os/licensing.
     11  0  stevel  * See the License for the specific language governing permissions
     12  0  stevel  * and limitations under the License.
     13  0  stevel  *
     14  0  stevel  * When distributing Covered Code, include this CDDL HEADER in each
     15  0  stevel  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     16  0  stevel  * If applicable, add the following below this CDDL HEADER, with the
     17  0  stevel  * fields enclosed by brackets "[]" replaced with your own identifying
     18  0  stevel  * information: Portions Copyright [yyyy] [name of copyright owner]
     19  0  stevel  *
     20  0  stevel  * CDDL HEADER END
     21  0  stevel  */
     22  0  stevel /*
     23  0  stevel  * nis_cache.x
     24  0  stevel  *
     25  0  stevel  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
     26  0  stevel  * Use is subject to license terms.
     27  0  stevel  */
     28  0  stevel 
     29  0  stevel %#pragma ident	"%Z%%M%	%I%	%E% SMI"
     30  0  stevel 
     31  0  stevel 
     32  0  stevel #ifdef RPC_HDR
     33  0  stevel %#define	NIS_DIRECTORY		"/var/nis"
     34  0  stevel %#define	CACHE_FILE		"/var/nis/NIS_SHARED_DIRCACHE"
     35  0  stevel %#define	PRIVATE_CACHE_FILE	"/var/nis/.NIS_PRIVATE_DIRCACHE"
     36  0  stevel %#define	TMP_CACHE_FILE		"/var/nis/.NIS_TEMPORARY_DIRCACHE"
     37  0  stevel %#define	COLD_START_FILE		"/var/nis/NIS_COLD_START"
     38  0  stevel %#define	DOT_FILE		"/var/nis/.pref_servers"
     39  0  stevel %#include <rpc/types.h>
     40  0  stevel %#include <rpcsvc/nis.h>
     41  0  stevel %#include "nis_clnt.h"
     42  0  stevel #endif
     43  0  stevel 
     44  0  stevel struct bind_server_arg {
     45  0  stevel 	nis_server *srv;
     46  0  stevel 	int nsrv;
     47  0  stevel };
     48  0  stevel 
     49  0  stevel struct refresh_res {
     50  0  stevel 	int changed;
     51  0  stevel 	endpoint ep;
     52  0  stevel };
     53  0  stevel 
     54  0  stevel program CACHEPROG {
     55  0  stevel 	version CACHE_VER_2 {
     56  0  stevel 		void NIS_CACHE_ADD_ENTRY(fd_result) = 1;
     57  0  stevel 		void NIS_CACHE_REMOVE_ENTRY(directory_obj) = 2;
     58  0  stevel 		void NIS_CACHE_READ_COLDSTART(void) = 3;
     59  0  stevel 		void NIS_CACHE_REFRESH_ENTRY(string<>) = 4;
     60  0  stevel 
     61  0  stevel 		nis_error NIS_CACHE_BIND_REPLICA(string<>) = 5;
     62  0  stevel 		nis_error NIS_CACHE_BIND_MASTER(string<>) = 6;
     63  0  stevel 		nis_error NIS_CACHE_BIND_SERVER(bind_server_arg) = 7;
     64  0  stevel 		refresh_res NIS_CACHE_REFRESH_BINDING(nis_bound_directory) = 8;
     65  0  stevel 		refresh_res NIS_CACHE_REFRESH_ADDRESS(nis_bound_endpoint) = 9;
     66  0  stevel 		refresh_res NIS_CACHE_REFRESH_CALLBACK(nis_bound_endpoint) = 10;
     67  0  stevel 	} = 2;
     68  0  stevel } = 100301;
     69