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 * Copyright (c) 1997 by Sun Microsystems, Inc. 24 * All rights reserved. 25 */ 26 27 #pragma ident "%Z%%M% %I% %E% SMI" 28 29 /* LINTLIBRARY */ 30 31 #include <stdio.h> 32 #include <rpc/rpc.h> 33 #include <sys/socket.h> 34 #include <sys/time.h> 35 #include <netdb.h> 36 #include <errno.h> 37 #include <rpc/pmap_clnt.h> 38 #include <sys/syslog.h> 39 #include <sys/ioctl.h> 40 #include <sys/filio.h> 41 #include <sys/types.h> 42 #include <sys/errno.h> 43 #include <netinet/in.h> 44 45 /* clnt_tcp.c */ 46 CLIENT *clnttcp_create(struct sockaddr_in *, ulong_t, ulong_t, 47 int *, uint_t, uint_t); 48 49 /* clnt_udp.c */ 50 CLIENT *clntudp_bufcreate(struct sockaddr_in *, ulong_t, ulong_t, 51 struct timeval, int *, uint_t, uint_t); 52 CLIENT *clntudp_create(struct sockaddr_in *, ulong_t, ulong_t, 53 struct timeval wait, int *); 54 55 /* get_myaddress.c */ 56 int get_myaddress(struct sockaddr_in *); 57 58 /* getrpcport.c */ 59 int getrpcport(char *, int, int, int); 60 61 /* rtime.c */ 62 int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); 63 64 /* svc_tcp.c */ 65 SVCXPRT *svctcp_create(int, uint_t, uint_t); 66 SVCXPRT *svcfd_create(int, uint_t, uint_t); 67 68 /* svc_udp.c */ 69 SVCXPRT *svcudp_bufcreate(int, uint_t, uint_t); 70 SVCXPRT *svcudp_create(int); 71 int svcudp_enablecache(SVCXPRT *, ulong_t); 72