OSDN Git Service

Update networking includes.
authorEric Andersen <andersen@codepoet.org>
Mon, 5 Feb 2001 03:05:26 +0000 (03:05 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 5 Feb 2001 03:05:26 +0000 (03:05 -0000)
43 files changed:
libc/inet/addr.c
libc/inet/getproto.c
libc/inet/getservice.c
libc/inet/hostid.c
libc/inet/resolv.c
libc/inet/rpc/auth_none.c
libc/inet/rpc/auth_unix.c
libc/inet/rpc/authunix_prot.c
libc/inet/rpc/bindresvport.c
libc/inet/rpc/clnt_generic.c
libc/inet/rpc/clnt_perror.c
libc/inet/rpc/clnt_raw.c
libc/inet/rpc/clnt_simple.c
libc/inet/rpc/clnt_tcp.c
libc/inet/rpc/clnt_udp.c
libc/inet/rpc/get_myaddress.c
libc/inet/rpc/getrpcent.c
libc/inet/rpc/getrpcport.c
libc/inet/rpc/pmap_clnt.c
libc/inet/rpc/pmap_getmaps.c
libc/inet/rpc/pmap_getport.c
libc/inet/rpc/pmap_prot.c
libc/inet/rpc/pmap_prot2.c
libc/inet/rpc/pmap_rmt.c
libc/inet/rpc/rpc_callmsg.c
libc/inet/rpc/rpc_dtablesize.c
libc/inet/rpc/rpc_prot.c
libc/inet/rpc/svc.c
libc/inet/rpc/svc_auth.c
libc/inet/rpc/svc_auth_unix.c
libc/inet/rpc/svc_raw.c
libc/inet/rpc/svc_run.c
libc/inet/rpc/svc_simple.c
libc/inet/rpc/svc_tcp.c
libc/inet/rpc/svc_udp.c
libc/inet/rpc/xdr.c
libc/inet/rpc/xdr_array.c
libc/inet/rpc/xdr_float.c
libc/inet/rpc/xdr_mem.c
libc/inet/rpc/xdr_rec.c
libc/inet/rpc/xdr_reference.c
libc/inet/rpc/xdr_stdio.c
libc/inet/socketcalls.c

index a05a428..305447b 100644 (file)
@@ -12,6 +12,8 @@
  * inet_ntoa in half (from 190 bytes down to 94).
  */
 
+#define __FORCE_GLIBC__
+#include <features.h>
 #include <string.h>
 #include <ctype.h>
 #include <netinet/in.h>
index 95306b0..6a30176 100644 (file)
@@ -51,6 +51,8 @@
 ** SUCH DAMAGE.
 */
 
+#define __FORCE_GLIBC__
+#include <features.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
index dee6c83..8b89d74 100644 (file)
@@ -52,6 +52,8 @@
 */
 
 
+#define __FORCE_GLIBC__
+#include <features.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
index 475eaf4..84a441a 100644 (file)
@@ -1,3 +1,5 @@
+#define __FORCE_GLIBC__
+#include <features.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
index 91442b3..900783f 100644 (file)
@@ -34,6 +34,8 @@
  *
  */
 
+#define __FORCE_GLIBC__
+#include <features.h>
 #include <string.h>
 #include <stdio.h>
 #include <signal.h>
@@ -46,6 +48,7 @@
 #include <unistd.h>
 #include <cfgfile.h>
 #include <resolv.h>
+#include <netdb.h>
 #include <arpa/nameser.h>
 
 #define MAX_RECURSE 5
index 7a4dffe..4cb1fbc 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)auth_none.c 1.19 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * auth_none.c
index 1f213bd..373e32b 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)auth_unix.c 1.19 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * auth_unix.c, Implements UNIX style authentication parameters. 
index cae1735..34d1d70 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)authunix_prot.c 1.15 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * authunix_prot.c
index e08994d..ad86784 100644 (file)
@@ -31,6 +31,8 @@
  * Copyright (c) 1987 by Sun Microsystems, Inc.
  */
 
+#define __FORCE_GLIBC__
+#include <features.h>
 #include <unistd.h>
 #include <string.h>
 #include <sys/types.h>
index 45199a4..5b62e86 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)clnt_generic.c 1.4 87/08/11 (C) 1987 SMI";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 /*
  * Copyright (C) 1987, Sun Microsystems, Inc.
  */
index 4ede1a4..aef1260 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)clnt_perror.c 1.15 87/10/07 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * clnt_perror.c
index 7479b55..dce0524 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)clnt_raw.c 1.22 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * clnt_raw.c
index 15bf3fe..4b2a6e4 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /* 
  * clnt_simple.c
index 3042226..e48974f 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)clnt_tcp.c 1.37 87/10/05 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * clnt_tcp.c, Implements a TCP/IP based, client side RPC.
index 7857f86..d112873 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * clnt_udp.c, Implements a UDP/IP based, client side RPC.
index 95ddc71..b25fb82 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)get_myaddress.c 1.4 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * get_myaddress.c
index 06c272c..02f0eac 100644 (file)
@@ -1,9 +1,6 @@
 /* @(#)getrpcent.c     2.2 88/07/29 4.0 RPCSRC */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)getrpcent.c 1.9 87/08/11  Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
index 0665fba..2c20282 100644 (file)
@@ -1,7 +1,6 @@
 /* @(#)getrpcport.c    2.1 88/07/29 4.0 RPCSRC */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)getrpcport.c 1.3 87/08/11 SMI";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  * unrestricted use provided that this legend is included on all tape
index 921575e..c1c38d8 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)pmap_clnt.c 1.37 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * pmap_clnt.c
index 8378753..e1685b5 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)pmap_getmaps.c 1.10 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * pmap_getmap.c
index 122105d..eee4f5d 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)pmap_getport.c 1.9 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * pmap_getport.c
index ec8b5af..7b12b3c 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)pmap_prot.c 1.17 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * pmap_prot.c
index 1a62077..bdd3ec0 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)pmap_prot2.c 1.3 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * pmap_prot2.c
index 80e984b..e1840b8 100644 (file)
@@ -27,9 +27,6 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro";
-#endif
 
 /*
  * pmap_rmt.c
@@ -39,6 +36,12 @@ static char sccsid[] = "@(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro";
  * Copyright (C) 1984, Sun Microsystems, Inc.
  */
 
+#define __FORCE_GLIBC__
+#include <features.h>
+#include <unistd.h>
+#include <string.h>
+#include <sys/time.h>
+#include <sys/types.h>
 #include <rpc/rpc.h>
 #include <rpc/pmap_prot.h>
 #include <rpc/pmap_clnt.h>
@@ -105,7 +108,7 @@ u_long *port_ptr;
  * XDR remote call arguments
  * written for XDR_ENCODE direction only
  */
-bool_t xdr_rmtcall_args(xdrs, args)
+bool_t xdr_rmtcall_args(xdrs, arg2)
 register XDR *xdrs;
 void * arg2;
 {
@@ -150,6 +153,7 @@ register struct rmtcallres *crp;
        return (FALSE);
 }
 
+void get_myaddress( struct sockaddr_in *addr);
 
 /*
  * The following is kludged-up support for simple rpc broadcasts.
@@ -223,6 +227,8 @@ char *buf;                                          /* why allocxate more when we can use existing... */
 }
 
 typedef bool_t(*resultproc_t) ();
+void _rpc_dtablesize(void );
+
 
 enum clnt_stat
 clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp,
index 1bd6bb6..46ffa7b 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)rpc_callmsg.c 1.4 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * rpc_callmsg.c
index 960bb46..9ddbb63 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)rpc_dtablesize.c 1.2 87/08/11 Copyr 1987 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * Cache the result of getdtablesize(), so we don't have to do an
index e3c873b..21bdb2a 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)rpc_prot.c 1.36 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * rpc_prot.c
index 1ba12ef..f8042cf 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)svc.c 1.41 87/10/13 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * svc.c, Server-side remote procedure call interface.
index 60e4fa7..435f816 100644 (file)
@@ -1,8 +1,5 @@
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)svc_auth.c 2.1 88/08/07 4.0 RPCSRC; from 1.19 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  * unrestricted use provided that this legend is included on all tape
index 212f9cb..7e6628a 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)svc_auth_unix.c 1.28 88/02/08 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * svc_auth_unix.c
index c13ea5e..ecc9977 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)svc_raw.c 1.15 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * svc_raw.c,   This a toy for simple testing and timing.
index 092fcb9..db7d8e7 100644 (file)
@@ -1,7 +1,6 @@
 /* @(#)svc_run.c       2.1 88/07/29 4.0 RPCSRC */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)svc_run.c 1.1 87/10/13 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
index 3c75de3..e6e9f86 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)svc_simple.c 1.18 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /* 
  * svc_simple.c
index 0008eaa..64527f8 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * svc_tcp.c, Server side for TCP/IP based RPC. 
index b8495a1..208fbf2 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * svc_udp.c,
index 8860073..8f6fbca 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)xdr.c 1.35 87/08/12";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * xdr.c, Generic XDR routines implementation.
index 1e61017..26dd7be 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)xdr_array.c 1.10 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * xdr_array.c, Generic XDR routines impelmentation.
index f8eb5e9..52edea1 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)xdr_float.c 1.12 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * xdr_float.c, Generic XDR routines impelmentation.
index b05f2b6..17707f8 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)xdr_mem.c 1.19 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * xdr_mem.h, XDR implementation using memory buffers.
index 94fcc38..57e6f6f 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)xdr_rec.c 1.21 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * xdr_rec.c, Implements TCP/IP based XDR streams with a "record marking"
index 61050b6..4d3d992 100644 (file)
@@ -27,9 +27,8 @@
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * xdr_reference.c, Generic XDR routines impelmentation.
index 7ae5fbd..828bcbf 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#if !defined(lint) && defined(SCCSIDS)
-static char sccsid[] =
-
-       "@(#)xdr_stdio.c 1.16 87/08/11 Copyr 1984 Sun Micro";
-#endif
+#define __FORCE_GLIBC__
+#include <features.h>
 
 /*
  * xdr_stdio.c, XDR implementation on standard i/o file.
index 162e077..542910b 100644 (file)
@@ -1,3 +1,5 @@
+#define __FORCE_GLIBC__
+#include <features.h>
 #include <errno.h>
 #include <syscall.h>
 #include <sys/socket.h>