1/* 2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 3 * unrestricted use provided that this legend is included on all tape 4 * media and as a part of the software program in whole or part. Users 5 * may copy or modify Sun RPC without charge, but are not authorized 6 * to license or distribute it to anyone else except as part of a product or 7 * program developed by the user. 8 * --- 16 unchanged lines hidden (view full) --- 25 * Sun Microsystems, Inc. 26 * 2550 Garcia Avenue 27 * Mountain View, California 94043 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31/*static char *sccsid = "from: @(#)pmap_getport.c 1.9 87/08/11 Copyr 1984 Sun Micro";*/ 32/*static char *sccsid = "from: @(#)pmap_getport.c 2.2 88/08/01 4.0 RPCSRC";*/ |
33static char *rcsid = "$FreeBSD: head/lib/libc/rpc/pmap_getport.c 56698 2000-01-27 23:07:25Z jasone $"; |
34#endif 35 36/* 37 * pmap_getport.c 38 * Client interface to pmap rpc service. 39 * 40 * Copyright (C) 1984, Sun Microsystems, Inc. 41 */ --- 38 unchanged lines hidden (view full) --- 80 rpc_createerr.cf_stat = RPC_PMAPFAILURE; 81 clnt_geterr(client, &rpc_createerr.cf_error); 82 } else if (port == 0) { 83 rpc_createerr.cf_stat = RPC_PROGNOTREGISTERED; 84 } 85 CLNT_DESTROY(client); 86 } 87 if (socket != -1) |
88 (void)_close(socket); |
89 address->sin_port = 0; 90 return (port); 91} |