Deleted Added
full compact
rpc_generic.c (121652) rpc_generic.c (156090)
1/* $NetBSD: rpc_generic.c,v 1.4 2000/09/28 09:07:04 kleink Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

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

29 * Mountain View, California 94043
30 */
31/*
32 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
33 */
34
35/* #pragma ident "@(#)rpc_generic.c 1.17 94/04/24 SMI" */
36#include <sys/cdefs.h>
1/* $NetBSD: rpc_generic.c,v 1.4 2000/09/28 09:07:04 kleink Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

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

29 * Mountain View, California 94043
30 */
31/*
32 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
33 */
34
35/* #pragma ident "@(#)rpc_generic.c 1.17 94/04/24 SMI" */
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: head/lib/libc/rpc/rpc_generic.c 121652 2003-10-29 09:20:33Z mbr $");
37__FBSDID("$FreeBSD: head/lib/libc/rpc/rpc_generic.c 156090 2006-02-27 22:10:59Z deischen $");
38
39/*
40 * rpc_generic.c, Miscl routines for RPC.
41 *
42 */
43
44#include "namespace.h"
45#include "reentrant.h"

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

58#include <netdb.h>
59#include <netconfig.h>
60#include <stdlib.h>
61#include <string.h>
62#include <syslog.h>
63#include <rpc/nettype.h>
64#include "un-namespace.h"
65#include "rpc_com.h"
38
39/*
40 * rpc_generic.c, Miscl routines for RPC.
41 *
42 */
43
44#include "namespace.h"
45#include "reentrant.h"

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

58#include <netdb.h>
59#include <netconfig.h>
60#include <stdlib.h>
61#include <string.h>
62#include <syslog.h>
63#include <rpc/nettype.h>
64#include "un-namespace.h"
65#include "rpc_com.h"
66#include "mt_misc.h"
66
67struct handle {
68 NCONF_HANDLE *nhandle;
69 int nflag; /* Whether NETPATH or NETCONFIG */
70 int nettype;
71};
72
73static const struct _rpcnettype {

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

231 char *netid;
232 char *netid_tcp = (char *) NULL;
233 char *netid_udp = (char *) NULL;
234 static char *netid_tcp_main;
235 static char *netid_udp_main;
236 struct netconfig *dummy;
237 int main_thread;
238 static thread_key_t tcp_key, udp_key;
67
68struct handle {
69 NCONF_HANDLE *nhandle;
70 int nflag; /* Whether NETPATH or NETCONFIG */
71 int nettype;
72};
73
74static const struct _rpcnettype {

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

232 char *netid;
233 char *netid_tcp = (char *) NULL;
234 char *netid_udp = (char *) NULL;
235 static char *netid_tcp_main;
236 static char *netid_udp_main;
237 struct netconfig *dummy;
238 int main_thread;
239 static thread_key_t tcp_key, udp_key;
239 extern mutex_t tsd_lock;
240
241 if ((main_thread = thr_main())) {
242 netid_udp = netid_udp_main;
243 netid_tcp = netid_tcp_main;
244 } else {
245 if (tcp_key == 0) {
246 mutex_lock(&tsd_lock);
247 if (tcp_key == 0)

--- 595 unchanged lines hidden ---
240
241 if ((main_thread = thr_main())) {
242 netid_udp = netid_udp_main;
243 netid_tcp = netid_tcp_main;
244 } else {
245 if (tcp_key == 0) {
246 mutex_lock(&tsd_lock);
247 if (tcp_key == 0)

--- 595 unchanged lines hidden ---