Subject: lib/1045: small fixes for lib and manpages.
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Masanobu Saitoh <saitoh@spa.is.uec.ac.jp>
List: netbsd-bugs
Date: 05/11/1995 22:20:03
>Number:         1045
>Category:       lib
>Synopsis:       small fixes for lib and manpages.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 11 22:20:02 1995
>Originator:     Saitoh Msasanobu
>Organization:
	The University of Electro-Communications
>Release:        -current May 5 1995
>Environment:
	
System: NetBSD mincore.spa.is.uec.ac.jp 1.0A NetBSD 1.0A (ISYS) #38: Sat May 6 21:37:02 JST 1995 saitoh@mincore.spa.is.uec.ac.jp:/var/sources/0505/src/sys/arch/i386/compile/ISYS i386

>Description:

src/lib/libc/net/res_query.c: **************************************

	 res_querydomain() is global. Declaration for this
	function should be put on resolv.h

	In res_query.c, res_querydomain is defined as global,
	but not be written in resolver.3. (And, This function
	is referenced from src/usr.sbin/sendmail/src/domain.c).

src/lib/libc/rpc/auth_unix.c: **************************************

	<string.h>	for bcopy().
	<unistd.h>	for gethostname(), geteuid, getegid, and getgroups().

	xdr_opaque_auth() isn't declared anywhere in NetBSD sources.
	This declaration should be put on /usr/src/include/rpc/auth.h
        ...  or xdr.h ?

src/lib/libc/rpc/bindresvport.c:************************************

	<unistd.h>	for getpid().

	bindresvport() is not declared in /usr/include/rpc/*
	I don't know where this declaration put on.

src/lib/libc/gen/confstr.c:

	<string.h>	for strncmp().

src/lib/libc/gen/disklabel.c:

	<ctype.h>	for isdigit().

src/lib/libc/gen/initgroups.c:

	<unistd.h>	for getgrouplist() and setgroups().

src/lib/libc/gen/pwcache.c:

	<string.h>	for strncpy().

src/lib/libc/gen/sysctl.c:

	<string.h>	for memmove().

src/lib/libc/locale/setlocale.c:

	<stdio.h>	for snprintf().

src/lib/libc/net/gethostnamadr.c:

	<stdlib.h>	for qsort() and free().

src/lib/libc/net/rcmd.c:

	<netgroup.h>	for innetgr().

src/lib/libc/gen/getnetgrent.3:

	 add #include <netgroup.h> in SYNOPSYS.

src/lib/libc/rpc/bindresvport.3:

	include -> #include

src/lib/libc/rpc/clnt_raw.c:

	<stdio.h>	for perror().

src/lib/libc/rpc/clnt_simple:

	<unistd.h>	for close().

src/lib/libc/rpc/clnt_tcp.c:

	<unistd.h>	for close(), getpid(), select(), read() and write().
	<string.h>	for bzero().

src/lib/libc/rpc/clnt_udp.c:

	<unistd.h>	for getpid(), select() and close().
	<string.h>	for bzero().

	Fix select's arg 3 and 4.

src/lib/libc/rpc/rpc_dtablesize.c:

	add <unistd.h>	for getdtablesize().

src/lib/libc/rpc/get_myaddress.c:

	add <unistd.h>	for close().

src/lib/libc/rpc/getrpcport.c:

	add <rpc/pmap_clnt.h>	for pmap_getport().

src/lib/libc/rpc/pmap_clnt.c():

	add <unistd.h>	for close().

src/lib/libc/rpc/pmap_getmaps.c:

	add <unistd.h>	for close().

src/lib/libc/rpc/pmap_getport.c:

	add <unistd.h>	for close().

src/lib/libc/rpc/pmap_rmt.c:

	add <unistd.h>	for close(), getpid() and select().

src/lib/libc/rpc/rpc_callmsg.c:

	add <string.h>	for bcopy().

src/lib/libc/rpc/svc.c:

	add <string.h>	for bzero().


src/lib/libc/rpc/svc_auth_unix.c:

	add <string.h>	for bcopy().

src/lib/libc/rpc/svc_run.c:

	add <unistd.h>	for select().
	add <stdio.h>	for perror().

src/lib/libc/rpc/svc_simple.c:

	add <rpc/pmap_clnt.h>	for pmap_unset().

src/lib/libc/rpc/svc_tcp.c:

	add <unistd.h>	for close(), seelct(), read() and write().

src/lib/libc/rpc/svc_udp.c:

	add <unistd.h>	for close().

src/lib/libc/rpc/xdr_mem.c:

	add <string.h>	for bcopy().

src/lib/libc/rpc/xdr_rec.c:

	add <string.h>	for bcopy().

src/lib/libc/string/__strsignal.c:

	add <stdio.h>	for sprintf().

src/lib/libcompat/4.3/cfree.c:

	add <stdlib.h>	for free().

src/lib/libcompat/4.3/lsearch.c:

	add <string.h>	for bcopy().

src/lib/libcompat/4.3/rexec.c:

	add <unistd.h>	for close(), sleep(), write(), and read().

src/lib/libedit/term.c:

	add <sys/ioctl.h>	for ioctl().

src/lib/libkvm/kvm_i386.c:

	add <stdlib.h>	for free().

src/lib/libkvm/kvm_getloadavg.c:

	add <stdlib.h>	for getloadavg().
	fix man getloadavg.

src/lib/libkvm/kvm_proc.c:

	add <stdio.h>	for printf().
	add <string.h>	for bcopy().

src/lib/libpcap/pcap.c:

	add <stdlib.h>	for free().

src/lib/libpcap/pcap-bpf.c:

	add <unistd.h>	for read().

src/lib/libskey/skeylogin.c:

	add <stdlib.h>	for atoi().

src/lib/libtelnet/getent.c:

	add <stdlib.h>	for cgetent() and cgetstr().

src/lib/libtelnet/misc.c:

	add <stdlib.h>	for free().
	add <stdio.h>	for printf().

src/lib/libutil/login_tty.c:

	add <unistd.h>	for dup2() and close().

>How-To-Repeat:
>Fix:
--- src/include/rpc/ORGauth.h	Wed May 10 22:36:50 1995
+++ src/include/rpc/auth.h	Wed May 10 22:41:54 1995
@@ -91,6 +91,9 @@
 	caddr_t	oa_base;		/* address of more auth stuff */
 	u_int	oa_length;		/* not to exceed MAX_AUTH_BYTES */
 };
+__BEGIN_DECLS
+extern bool_t xdr_opaque_auth __P((XDR *, struct opaque_auth *));
+__END_DECLS
 
 
 /*
--- src/include/ORGresolv.h	Thu May 11 12:30:38 1995
+++ src/include/resolv.h	Thu May 11 12:32:33 1995
@@ -157,6 +157,7 @@
 		u_char *, int));
 int	 res_init __P((void));
 int	 res_query __P((char *, int, int, u_char *, int));
+int	 res_querydomain __P((char *, char *, int, int, u_char *, int));
 int	 res_search __P((const char *, int, int, u_char *, int));
 int	 res_mkquery __P((int, const char *, int, int, const char *, int,
 		const char *, char *, int));
--- src/include/ORGunistd.h	Mon Mar 20 16:17:59 1995
+++ src/include/unistd.h	Sat May  6 15:06:02 1995
@@ -73,6 +73,7 @@
 gid_t	 getegid __P((void));
 uid_t	 geteuid __P((void));
 gid_t	 getgid __P((void));
+int	 getgrouplist __P((const char *, int, int *, int *));
 int	 getgroups __P((int, gid_t *));
 char	*getlogin __P((void));
 pid_t	 getpgrp __P((void));
--- src/lib/libc/gen/ORGconfstr.c	Sat May  6 14:53:11 1995
+++ src/lib/libc/gen/confstr.c	Sat May  6 15:00:04 1995
@@ -47,6 +47,7 @@
 #include <errno.h>
 #include <paths.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 
 size_t
--- src/lib/libc/gen/ORGdisklabel.c	Sat May  6 14:56:32 1995
+++ src/lib/libc/gen/disklabel.c	Sat May  6 14:58:53 1995
@@ -46,6 +46,7 @@
 #include <sys/disklabel.h>
 #include <ufs/ffs/fs.h>
 
+#include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
--- src/lib/libc/gen/ORGinitgroups.c	Sat May  6 15:00:24 1995
+++ src/lib/libc/gen/initgroups.c	Sat May  6 15:01:59 1995
@@ -44,6 +44,7 @@
 #include <sys/param.h>
 
 #include <stdio.h>
+#include <unistd.h>
 
 int
 initgroups(uname, agroup)
--- src/lib/libc/gen/ORGpwcache.c	Sat May  6 15:15:45 1995
+++ src/lib/libc/gen/pwcache.c	Sat May  6 15:18:03 1995
@@ -46,6 +46,7 @@
 #include <grp.h>
 #include <pwd.h>
 #include <stdio.h>
+#include <string.h>
 #include <utmp.h>
 
 #define	NCACHE	64			/* power of 2 */
--- src/lib/libc/gen/ORGsysctl.c	Sat May  6 15:19:37 1995
+++ src/lib/libc/gen/sysctl.c	Sat May  6 15:21:17 1995
@@ -48,6 +48,7 @@
 #include <limits.h>
 #include <paths.h>
 #include <stdio.h>
+#include <string.h>
 #include <unistd.h>
 
 int
--- src/lib/libc/gen/ORGgetnetgrent.3	Sat May  6 15:35:52 1995
+++ src/lib/libc/gen/getnetgrent.3	Sat May  6 15:37:22 1995
@@ -43,6 +43,7 @@
 .Nm endnetgrent
 .Nd netgroup database operations
 .Sh SYNOPSIS
+.Fd #include <netgroup.h>
 .Ft int
 .Fn getnetgrent "char **host, char **user, char **domain"
 .Ft int
--- src/lib/libc/locale/ORGsetlocale.c	Sat May  6 15:23:18 1995
+++ src/lib/libc/locale/setlocale.c	Sat May  6 15:24:00 1995
@@ -41,6 +41,7 @@
 #include <sys/localedef.h>
 #include <locale.h>
 #include <limits.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <paths.h>
--- src/lib/libc/net/ORGgethostnamadr.c	Sat May  6 15:25:36 1995
+++ src/lib/libc/net/gethostnamadr.c	Sat May  6 15:29:17 1995
@@ -70,6 +70,7 @@
 #include <netdb.h>
 #include <resolv.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
 #include <errno.h>
 #include <string.h>
--- src/lib/libc/net/ORGrcmd.c	Sat May  6 15:31:59 1995
+++ src/lib/libc/net/rcmd.c	Sat May  6 15:33:17 1995
@@ -51,6 +51,7 @@
 #include <signal.h>
 #include <fcntl.h>
 #include <netdb.h>
+#include <netgroup.h>
 #include <unistd.h>
 #include <pwd.h>
 #include <errno.h>
--- src/lib/libc/rpc/ORGauth_unix.c	Sat May  6 15:57:13 1995
+++ src/lib/libc/rpc/auth_unix.c	Sat May  6 15:58:54 1995
@@ -49,6 +49,8 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 
 #include <rpc/types.h>
 #include <rpc/xdr.h>
--- src/lib/libc/rpc/ORGbindresvport.c	Sat May  6 16:27:52 1995
+++ src/lib/libc/rpc/bindresvport.c	Sat May  6 16:29:24 1995
@@ -40,6 +40,7 @@
  */
 
 #include <string.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/errno.h>
 #include <sys/socket.h>
--- src/lib/libc/rpc/ORGclnt_raw.c	Sat May  6 16:44:59 1995
+++ src/lib/libc/rpc/clnt_raw.c	Sat May  6 16:46:30 1995
@@ -46,6 +46,7 @@
  * any interference from the kernal.
  */
 
+#include <stdio.h>
 #include <stdlib.h>
 #include <rpc/rpc.h>
 
--- src/lib/libc/rpc/ORGclnt_simple.c	Sat May  6 16:47:34 1995
+++ src/lib/libc/rpc/clnt_simple.c	Sat May  6 16:49:07 1995
@@ -45,6 +45,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <rpc/rpc.h>
 #include <sys/socket.h>
 #include <netdb.h>
--- src/lib/libc/rpc/ORGclnt_tcp.c	Sat May  6 16:51:35 1995
+++ src/lib/libc/rpc/clnt_tcp.c	Wed May 10 23:48:11 1995
@@ -56,6 +56,8 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 #include <rpc/rpc.h>
 #include <sys/socket.h>
 #include <netdb.h>
@@ -409,8 +411,8 @@
 	FD_SET(ct->ct_sock, &mask);
 	while (TRUE) {
 		readfds = mask;
-		switch (select(ct->ct_sock+1, &readfds, (int*)NULL, (int*)NULL,
-			       &(ct->ct_wait))) {
+		switch (select(ct->ct_sock+1, &readfds, (fd_set *)NULL,
+				(fd_set *)NULL, &(ct->ct_wait))) {
 		case 0:
 			ct->ct_error.re_status = RPC_TIMEDOUT;
 			return (-1);
--- src/lib/libc/rpc/ORGbindresvport.3	Sat May  6 17:20:01 1995
+++ src/lib/libc/rpc/bindresvport.3	Sat May  6 17:20:16 1995
@@ -9,7 +9,7 @@
 .Nd bind a socket to a privileged IP port
 .Sh SYNOPSIS
 .Fd #include <sys/types.h>
-.Fd include <netinet/in.h>
+.Fd #include <netinet/in.h>
 .Ft int
 .Fn bindresvport "int sd" "struct sockaddr_in **sin"
 .Sh DESCRIPTION
--- src/lib/libc/rpc/ORGrpc_dtablesize.c	Sat May  6 17:36:05 1995
+++ src/lib/libc/rpc/rpc_dtablesize.c	Sat May  6 17:37:21 1995
@@ -35,6 +35,7 @@
 static char *rcsid = "$NetBSD: rpc_dtablesize.c,v 1.3 1995/02/25 03:01:55 cgd Exp $";
 #endif
 
+#include <unistd.h>
 #include <sys/types.h>
 
 /*
--- src/lib/libc/rpc/ORGget_myaddress.c	Sat May  6 17:38:42 1995
+++ src/lib/libc/rpc/get_myaddress.c	Sat May  6 17:39:06 1995
@@ -47,6 +47,7 @@
 #include <rpc/pmap_prot.h>
 #include <sys/socket.h>
 #include <stdio.h>
+#include <unistd.h>
 #include <net/if.h>
 #include <sys/ioctl.h>
 #include <netinet/in.h>
--- src/lib/libc/rpc/ORGpmap_clnt.c	Sat May  6 17:41:39 1995
+++ src/lib/libc/rpc/pmap_clnt.c	Sat May  6 17:44:10 1995
@@ -42,6 +42,7 @@
  * Copyright (C) 1984, Sun Microsystems, Inc.
  */
 
+#include <unistd.h>
 #include <rpc/rpc.h>
 #include <rpc/pmap_prot.h>
 #include <rpc/pmap_clnt.h>
--- src/lib/libc/rpc/ORGpmap_getmaps.c	Sat May  6 17:45:56 1995
+++ src/lib/libc/rpc/pmap_getmaps.c	Sat May  6 17:46:22 1995
@@ -49,6 +49,7 @@
 #include <sys/socket.h>
 #include <netdb.h>
 #include <stdio.h>
+#include <unistd.h>
 #include <errno.h>
 #include <net/if.h>
 #include <sys/ioctl.h>
--- src/lib/libc/rpc/ORGpmap_getport.c	Sat May  6 17:48:05 1995
+++ src/lib/libc/rpc/pmap_getport.c	Sat May  6 17:48:33 1995
@@ -42,6 +42,7 @@
  * Copyright (C) 1984, Sun Microsystems, Inc.
  */
 
+#include <unistd.h>
 #include <rpc/rpc.h>
 #include <rpc/pmap_prot.h>
 #include <rpc/pmap_clnt.h>
--- src/lib/libc/rpc/ORGpmap_rmt.c	Sat May  6 17:49:33 1995
+++ src/lib/libc/rpc/pmap_rmt.c	Wed May 10 23:53:32 1995
@@ -51,6 +51,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
+#include <unistd.h>
 #include <net/if.h>
 #include <sys/ioctl.h>
 #include <arpa/inet.h>
@@ -321,8 +322,8 @@
 		msg.acpted_rply.ar_results.where = (caddr_t)&r;
                 msg.acpted_rply.ar_results.proc = xdr_rmtcallres;
 		readfds = mask;
-		switch (select(sock+1, &readfds, (int *)NULL, 
-			       (int *)NULL, &t)) {
+		switch (select(sock+1, &readfds, (fd_set *)NULL, 
+			       (fd_set *)NULL, &t)) {
 
 		case 0:  /* timed out */
 			stat = RPC_TIMEDOUT;
--- src/lib/libc/rpc/ORGrpc_callmsg.c	Sat May  6 17:53:16 1995
+++ src/lib/libc/rpc/rpc_callmsg.c	Sat May  6 17:53:45 1995
@@ -43,6 +43,7 @@
  */
 
 #include <stdlib.h>
+#include <string.h>
 #include <sys/param.h>
 
 #include <rpc/rpc.h>
--- src/lib/libc/rpc/ORGsvc_auth_unix.c	Sat May  6 17:57:09 1995
+++ src/lib/libc/rpc/svc_auth_unix.c	Sat May  6 17:57:28 1995
@@ -47,6 +47,7 @@
  */
 
 #include <stdio.h>
+#include <string.h>
 #include <rpc/rpc.h>
 
 /*
--- src/lib/libc/rpc/ORGsvc_run.c	Sat May  6 17:58:41 1995
+++ src/lib/libc/rpc/svc_run.c	Wed May 10 23:54:31 1995
@@ -39,6 +39,8 @@
  * This is the rpc server side idle loop
  * Wait for input, call server program.
  */
+#include <stdio.h>
+#include <unistd.h>
 #include <rpc/rpc.h>
 #include <sys/errno.h>
 
@@ -49,7 +51,7 @@
 
 	for (;;) {
 		readfds = svc_fdset;
-		switch (select(svc_maxfd+1, &readfds, (int *)0, (int *)0,
+		switch (select(svc_maxfd+1, &readfds, (fd_set *)0, (fd_set *)0,
 			       (struct timeval *)0)) {
 		case -1:
 			if (errno == EINTR) {
--- src/lib/libc/rpc/ORGsvc_tcp.c	Sat May  6 18:02:27 1995
+++ src/lib/libc/rpc/svc_tcp.c	Wed May 10 23:55:17 1995
@@ -48,6 +48,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <rpc/rpc.h>
 #include <sys/socket.h>
 #include <errno.h>
@@ -303,7 +304,7 @@
 	FD_SET(sock, &mask);
 	do {
 		readfds = mask;
-		if (select(sock+1, &readfds, (int*)NULL, (int*)NULL, 
+		if (select(sock+1, &readfds, (fd_set *)NULL, (fd_set *)NULL, 
 			   &wait_per_try) <= 0) {
 			if (errno == EINTR) {
 				continue;
--- src/lib/libc/rpc/ORGsvc_udp.c	Sat May  6 18:04:34 1995
+++ src/lib/libc/rpc/svc_udp.c	Sat May  6 18:04:59 1995
@@ -46,6 +46,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <rpc/rpc.h>
 #include <sys/socket.h>
 #include <errno.h>
--- src/lib/libc/rpc/ORGxdr_mem.c	Sat May  6 18:06:14 1995
+++ src/lib/libc/rpc/xdr_mem.c	Sat May  6 18:06:34 1995
@@ -47,6 +47,7 @@
  */
 
 
+#include <string.h>
 #include <rpc/types.h>
 #include <rpc/xdr.h>
 #include <netinet/in.h>
--- src/lib/libc/rpc/ORGxdr_rec.c	Sat May  6 18:08:58 1995
+++ src/lib/libc/rpc/xdr_rec.c	Sat May  6 18:10:26 1995
@@ -53,6 +53,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <rpc/types.h>
 #include <rpc/xdr.h>
 #include <netinet/in.h>
--- src/lib/libc/rpc/ORGsvc.c	Wed May 10 23:25:26 1995
+++ src/lib/libc/rpc/svc.c	Wed May 10 23:25:46 1995
@@ -46,6 +46,7 @@
  */
 
 #include <stdlib.h>
+#include <string.h>
 
 #include <sys/errno.h>
 #include <rpc/rpc.h>
--- src/lib/libc/rpc/ORGclnt_udp.c	Wed May 10 23:10:09 1995
+++ src/lib/libc/rpc/clnt_udp.c	Thu May 11 12:13:38 1995
@@ -43,6 +43,8 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 #include <rpc/rpc.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
@@ -280,8 +282,8 @@
 	FD_SET(cu->cu_sock, &mask);
 	for (;;) {
 		readfds = mask;
-		switch (select(cu->cu_sock+1, &readfds, (int *)NULL, 
-			       (int *)NULL, &(cu->cu_wait))) {
+		switch (select(cu->cu_sock+1, &readfds, (fd_set *)NULL, 
+			       (fd_set *)NULL, &(cu->cu_wait))) {
 
 		case 0:
 			time_waited.tv_sec += cu->cu_wait.tv_sec;
--- src/lib/libc/rpc/ORGgetrpcport.c	Wed May 10 23:19:45 1995
+++ src/lib/libc/rpc/getrpcport.c	Wed May 10 23:20:08 1995
@@ -42,6 +42,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <rpc/rpc.h>
+#include <rpc/pmap_clnt.h>
 #include <netdb.h>
 #include <sys/socket.h>
 
--- src/lib/libc/rpc/ORGsvc_simple.c	Wed May 10 23:29:36 1995
+++ src/lib/libc/rpc/svc_simple.c	Wed May 10 23:31:22 1995
@@ -46,6 +46,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <rpc/rpc.h>
+#include <rpc/pmap_clnt.h>
 #include <sys/socket.h>
 #include <netdb.h>
 
--- src/lib/libc/string/ORG__strsignal.c	Sat May  6 18:15:37 1995
+++ src/lib/libc/string/__strsignal.c	Sat May  6 18:16:02 1995
@@ -46,6 +46,7 @@
 #define sys_siglist	_sys_siglist
 
 #include <signal.h>
+#include <stdio.h>
 #include <string.h>
 
 char *
--- src/lib/libcompat/4.3/ORGcfree.c	Sat May  6 18:17:26 1995
+++ src/lib/libcompat/4.3/cfree.c	Sat May  6 18:18:11 1995
@@ -35,6 +35,8 @@
 static char sccsid[] = "@(#)cfree.c	8.1 (Berkeley) 6/4/93";
 #endif /* LIBC_SCCS and not lint */
 
+#include <stdlib.h>
+
 void
 cfree(p)
 	void *p;
--- src/lib/libcompat/4.3/ORGlsearch.c	Sat May  6 18:18:46 1995
+++ src/lib/libcompat/4.3/lsearch.c	Sat May  6 18:19:09 1995
@@ -39,6 +39,7 @@
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
+#include <string.h>
 #include <unistd.h>
 
 static char *linear_base();
--- src/lib/libcompat/4.3/ORGrexec.c	Sat May  6 18:21:58 1995
+++ src/lib/libcompat/4.3/rexec.c	Sat May  6 18:22:40 1995
@@ -43,6 +43,7 @@
 #include <stdio.h>
 #include <netdb.h>
 #include <string.h>
+#include <unistd.h>
 #include <errno.h>
 
 extern	errno;
--- src/lib/libtelnet/ORGgetent.c	Sat May  6 19:26:42 1995
+++ src/lib/libtelnet/getent.c	Sat May  6 19:27:17 1995
@@ -36,6 +36,8 @@
 static char *rcsid = "$Id: getent.c,v 1.3 1994/02/25 02:53:01 cgd Exp $";
 #endif /* not lint */
 
+#include <stdlib.h>
+
 static char *area;
 
 /*ARGSUSED*/
--- src/lib/libtelnet/ORGmisc.c	Sat May  6 19:28:08 1995
+++ src/lib/libtelnet/misc.c	Sat May  6 19:28:49 1995
@@ -36,6 +36,9 @@
 static char *rcsid = "$Id: misc.c,v 1.3 1994/02/25 02:53:03 cgd Exp $";
 #endif /* not lint */
 
+#include <stdio.h>
+#include <stdlib.h>
+
 #include "misc.h"
 
 char *RemoteHostName;
--- src/lib/libutil/ORGlogin_tty.c	Sat May  6 19:29:51 1995
+++ src/lib/libutil/login_tty.c	Sat May  6 19:30:22 1995
@@ -36,6 +36,7 @@
 static char *rcsid = "$Id: login_tty.c,v 1.3 1994/05/04 10:56:01 cgd Exp $";
 #endif /* LIBC_SCCS and not lint */
 
+#include <unistd.h>
 #include <sys/param.h>
 #include <sys/ioctl.h>
 
--- src/lib/libkvm/ORGkvm_i386.c	Sat May  6 18:32:46 1995
+++ src/lib/libkvm/kvm_i386.c	Sat May  6 18:33:25 1995
@@ -49,6 +49,7 @@
 #include <sys/user.h>
 #include <sys/proc.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <nlist.h>
 #include <kvm.h>
--- src/lib/libkvm/ORGkvm_m68k.c	Sat May  6 18:35:03 1995
+++ src/lib/libkvm/kvm_m68k.c	Sat May  6 18:35:41 1995
@@ -49,6 +49,7 @@
 #include <sys/user.h>
 #include <sys/proc.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <nlist.h>
 #include <kvm.h>
--- src/lib/libkvm/ORGkvm_mips.c	Sat May  6 18:35:59 1995
+++ src/lib/libkvm/kvm_mips.c	Sat May  6 18:36:33 1995
@@ -47,6 +47,7 @@
 #include <sys/user.h>
 #include <sys/proc.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <nlist.h>
 #include <kvm.h>
--- src/lib/libkvm/ORGkvm_ns32k.c	Sat May  6 18:37:30 1995
+++ src/lib/libkvm/kvm_ns32k.c	Sat May  6 18:38:11 1995
@@ -49,6 +49,7 @@
 #include <sys/user.h>
 #include <sys/proc.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <nlist.h>
 #include <kvm.h>
--- src/lib/libkvm/ORGkvm_sparc.c	Sat May  6 18:38:45 1995
+++ src/lib/libkvm/kvm_sparc.c	Sat May  6 18:39:03 1995
@@ -49,6 +49,7 @@
 #include <sys/proc.h>
 #include <sys/stat.h>
 #include <sys/sysctl.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <nlist.h>
 #include <kvm.h>
--- src/lib/libkvm/ORGkvm_sun3.c	Sat May  6 18:39:26 1995
+++ src/lib/libkvm/kvm_sun3.c	Sat May  6 18:39:43 1995
@@ -45,6 +45,7 @@
 #include <sys/user.h>
 #include <sys/proc.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <nlist.h>
 #include <kvm.h>
--- src/lib/libkvm/ORGkvm_vax.c	Sat May  6 18:39:53 1995
+++ src/lib/libkvm/kvm_vax.c	Sat May  6 18:40:09 1995
@@ -47,6 +47,7 @@
 #include <sys/user.h>
 #include <sys/proc.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <nlist.h>
 #include <kvm.h>
--- src/lib/libkvm/ORGkvm_getloadavg.c	Sat May  6 18:41:45 1995
+++ src/lib/libkvm/kvm_getloadavg.c	Sat May  6 18:42:16 1995
@@ -46,6 +46,7 @@
 #include <fcntl.h>
 #include <limits.h>
 #include <nlist.h>
+#include <stdlib.h>
 #include <kvm.h>
 
 #include "kvm_private.h"
--- src/lib/libkvm/ORGkvm_proc.c	Sat May  6 18:52:17 1995
+++ src/lib/libkvm/kvm_proc.c	Sat May  6 18:52:47 1995
@@ -54,7 +54,9 @@
 #include <sys/stat.h>
 #include <sys/ioctl.h>
 #include <sys/tty.h>
+#include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include <nlist.h>
 #include <kvm.h>
--- src/lib/libedit/ORGterm.c	Sat May  6 18:27:30 1995
+++ src/lib/libedit/term.c	Sat May  6 18:28:07 1995
@@ -50,6 +50,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include "termcap.h"	/* XXX: should be <termcap.h> */
+#include <sys/ioctl.h>
 #include <sys/types.h>
 
 #include "el.h"
--- src/lib/libskey/ORGskeylogin.c	Sat May  6 19:25:27 1995
+++ src/lib/libskey/skeylogin.c	Sat May  6 19:25:41 1995
@@ -22,6 +22,7 @@
 
  
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
--- src/lib/libpcap/ORGpcap.c	Sat May  6 18:57:04 1995
+++ src/lib/libpcap/pcap.c	Sat May  6 18:57:36 1995
@@ -40,6 +40,7 @@
 
 #include <sys/types.h>
 
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
--- src/lib/libpcap/ORGpcap-bpf.c	Sat May  6 18:58:07 1995
+++ src/lib/libpcap/pcap-bpf.c	Sat May  6 18:58:30 1995
@@ -29,6 +29,7 @@
 #include <netdb.h>
 #include <ctype.h>
 #include <signal.h>
+#include <unistd.h>
 #include <errno.h>
 #include <sys/param.h>			/* optionally get BSD define */
 #include <sys/time.h>

>Audit-Trail:
>Unformatted: