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 * nis_cache.x 24 * 25 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 26 * Use is subject to license terms. 27 */ 28 29 %#pragma ident "%Z%%M% %I% %E% SMI" 30 31 32 #ifdef RPC_HDR 33 %#define NIS_DIRECTORY "/var/nis" 34 %#define CACHE_FILE "/var/nis/NIS_SHARED_DIRCACHE" 35 %#define PRIVATE_CACHE_FILE "/var/nis/.NIS_PRIVATE_DIRCACHE" 36 %#define TMP_CACHE_FILE "/var/nis/.NIS_TEMPORARY_DIRCACHE" 37 %#define COLD_START_FILE "/var/nis/NIS_COLD_START" 38 %#define DOT_FILE "/var/nis/.pref_servers" 39 %#include <rpc/types.h> 40 %#include <rpcsvc/nis.h> 41 %#include "nis_clnt.h" 42 #endif 43 44 struct bind_server_arg { 45 nis_server *srv; 46 int nsrv; 47 }; 48 49 struct refresh_res { 50 int changed; 51 endpoint ep; 52 }; 53 54 program CACHEPROG { 55 version CACHE_VER_2 { 56 void NIS_CACHE_ADD_ENTRY(fd_result) = 1; 57 void NIS_CACHE_REMOVE_ENTRY(directory_obj) = 2; 58 void NIS_CACHE_READ_COLDSTART(void) = 3; 59 void NIS_CACHE_REFRESH_ENTRY(string<>) = 4; 60 61 nis_error NIS_CACHE_BIND_REPLICA(string<>) = 5; 62 nis_error NIS_CACHE_BIND_MASTER(string<>) = 6; 63 nis_error NIS_CACHE_BIND_SERVER(bind_server_arg) = 7; 64 refresh_res NIS_CACHE_REFRESH_BINDING(nis_bound_directory) = 8; 65 refresh_res NIS_CACHE_REFRESH_ADDRESS(nis_bound_endpoint) = 9; 66 refresh_res NIS_CACHE_REFRESH_CALLBACK(nis_bound_endpoint) = 10; 67 } = 2; 68 } = 100301; 69