Deleted Added
full compact
pmap_clnt.c (55837) pmap_clnt.c (56698)
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_clnt.c 1.37 87/08/11 Copyr 1984 Sun Micro";*/
32/*static char *sccsid = "from: @(#)pmap_clnt.c 2.2 88/08/01 4.0 RPCSRC";*/
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_clnt.c 1.37 87/08/11 Copyr 1984 Sun Micro";*/
32/*static char *sccsid = "from: @(#)pmap_clnt.c 2.2 88/08/01 4.0 RPCSRC";*/
33static char *rcsid = "$FreeBSD: head/lib/libc/rpc/pmap_clnt.c 55837 2000-01-12 09:23:48Z jasone $";
33static char *rcsid = "$FreeBSD: head/lib/libc/rpc/pmap_clnt.c 56698 2000-01-27 23:07:25Z jasone $";
34#endif
35
36/*
37 * pmap_clnt.c
38 * Client interface to pmap rpc service.
39 *
40 * Copyright (C) 1984, Sun Microsystems, Inc.
41 */

--- 55 unchanged lines hidden (view full) ---

97 parms.pm_port = port;
98 if (CLNT_CALL(client, PMAPPROC_SET, xdr_pmap, &parms, xdr_bool, &rslt,
99 tottimeout) != RPC_SUCCESS) {
100 clnt_perror(client, "Cannot register service");
101 return (FALSE);
102 }
103 CLNT_DESTROY(client);
104 if (socket != -1)
34#endif
35
36/*
37 * pmap_clnt.c
38 * Client interface to pmap rpc service.
39 *
40 * Copyright (C) 1984, Sun Microsystems, Inc.
41 */

--- 55 unchanged lines hidden (view full) ---

97 parms.pm_port = port;
98 if (CLNT_CALL(client, PMAPPROC_SET, xdr_pmap, &parms, xdr_bool, &rslt,
99 tottimeout) != RPC_SUCCESS) {
100 clnt_perror(client, "Cannot register service");
101 return (FALSE);
102 }
103 CLNT_DESTROY(client);
104 if (socket != -1)
105 (void)_libc_close(socket);
105 (void)_close(socket);
106 return (rslt);
107}
108
109/*
110 * Remove the mapping between program,version and port.
111 * Calls the pmap service remotely to do the un-mapping.
112 */
113bool_t

--- 25 unchanged lines hidden (view full) ---

139 return (FALSE);
140 parms.pm_prog = program;
141 parms.pm_vers = version;
142 parms.pm_port = parms.pm_prot = 0;
143 CLNT_CALL(client, PMAPPROC_UNSET, xdr_pmap, &parms, xdr_bool, &rslt,
144 tottimeout);
145 CLNT_DESTROY(client);
146 if (socket != -1)
106 return (rslt);
107}
108
109/*
110 * Remove the mapping between program,version and port.
111 * Calls the pmap service remotely to do the un-mapping.
112 */
113bool_t

--- 25 unchanged lines hidden (view full) ---

139 return (FALSE);
140 parms.pm_prog = program;
141 parms.pm_vers = version;
142 parms.pm_port = parms.pm_prot = 0;
143 CLNT_CALL(client, PMAPPROC_UNSET, xdr_pmap, &parms, xdr_bool, &rslt,
144 tottimeout);
145 CLNT_DESTROY(client);
146 if (socket != -1)
147 (void)_libc_close(socket);
147 (void)_close(socket);
148 return (rslt);
149}
148 return (rslt);
149}