1*2f172c55SRobert Thurlow /* 2*2f172c55SRobert Thurlow * CDDL HEADER START 3*2f172c55SRobert Thurlow * 4*2f172c55SRobert Thurlow * The contents of this file are subject to the terms of the 5*2f172c55SRobert Thurlow * Common Development and Distribution License (the "License"). 6*2f172c55SRobert Thurlow * You may not use this file except in compliance with the License. 7*2f172c55SRobert Thurlow * 8*2f172c55SRobert Thurlow * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*2f172c55SRobert Thurlow * or http://www.opensolaris.org/os/licensing. 10*2f172c55SRobert Thurlow * See the License for the specific language governing permissions 11*2f172c55SRobert Thurlow * and limitations under the License. 12*2f172c55SRobert Thurlow * 13*2f172c55SRobert Thurlow * When distributing Covered Code, include this CDDL HEADER in each 14*2f172c55SRobert Thurlow * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*2f172c55SRobert Thurlow * If applicable, add the following below this CDDL HEADER, with the 16*2f172c55SRobert Thurlow * fields enclosed by brackets "[]" replaced with your own identifying 17*2f172c55SRobert Thurlow * information: Portions Copyright [yyyy] [name of copyright owner] 18*2f172c55SRobert Thurlow * 19*2f172c55SRobert Thurlow * CDDL HEADER END 20*2f172c55SRobert Thurlow */ 21*2f172c55SRobert Thurlow 22*2f172c55SRobert Thurlow /* 23*2f172c55SRobert Thurlow * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*2f172c55SRobert Thurlow * Use is subject to license terms. 25*2f172c55SRobert Thurlow */ 26*2f172c55SRobert Thurlow 27*2f172c55SRobert Thurlow #ifndef _REF_SUBR_H 28*2f172c55SRobert Thurlow #define _REF_SUBR_H 29*2f172c55SRobert Thurlow 30*2f172c55SRobert Thurlow #ifdef __cplusplus 31*2f172c55SRobert Thurlow extern "C" { 32*2f172c55SRobert Thurlow #endif 33*2f172c55SRobert Thurlow 34*2f172c55SRobert Thurlow #include <sys/types.h> 35*2f172c55SRobert Thurlow #include <rpc/types.h> 36*2f172c55SRobert Thurlow #include <rpc/xdr.h> 37*2f172c55SRobert Thurlow #include <rpc/auth.h> 38*2f172c55SRobert Thurlow #include <rpc/clnt.h> 39*2f172c55SRobert Thurlow #include <rpc/rpc_msg.h> 40*2f172c55SRobert Thurlow #include <nfs/nfs4.h> 41*2f172c55SRobert Thurlow #include <rpcsvc/nfs4_prot.h> 42*2f172c55SRobert Thurlow 43*2f172c55SRobert Thurlow extern utf8string *str_to_utf8(char *, utf8string *); 44*2f172c55SRobert Thurlow extern char *utf8_to_str(utf8string *, uint_t *, char *); 45*2f172c55SRobert Thurlow extern void print_referral_summary(fs_locations4 *); 46*2f172c55SRobert Thurlow extern int make_pathname4(char *, pathname4 *); 47*2f172c55SRobert Thurlow extern bool_t xdr_component4(register XDR *, component4 *); 48*2f172c55SRobert Thurlow extern bool_t xdr_utf8string(register XDR *, utf8string *); 49*2f172c55SRobert Thurlow extern bool_t xdr_pathname4(register XDR *, pathname4 *); 50*2f172c55SRobert Thurlow extern bool_t xdr_fs_location4(register XDR *, fs_location4 *); 51*2f172c55SRobert Thurlow extern bool_t xdr_fs_locations4(register XDR *, fs_locations4 *); 52*2f172c55SRobert Thurlow 53*2f172c55SRobert Thurlow #ifdef __cplusplus 54*2f172c55SRobert Thurlow } 55*2f172c55SRobert Thurlow #endif 56*2f172c55SRobert Thurlow 57*2f172c55SRobert Thurlow #endif /* _REF_SUBR_H */ 58