Removed a number of useless #includes
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
/* Author: J.W. Stevenson */
|
||||
|
||||
#include <pc_file.h>
|
||||
#include <pc_err.h>
|
||||
|
||||
extern (*_sig())();
|
||||
extern _catch();
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
/* $Header$ */
|
||||
#define __NO_DEFS
|
||||
#include <math.h>
|
||||
#include <pc_err.h>
|
||||
extern _trp();
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
*/
|
||||
/* $Header$ */
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
static const char unknown[] = "Unknown error";
|
||||
|
||||
const char *_sys_errlist[] = {
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
/* $Header$ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
|
||||
#define CHAR_SHIFT 8
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
/* $Header$ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
|
||||
int
|
||||
mbtowc(wchar_t *pwc, register const char *s, size_t n)
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
/* $Header$ */
|
||||
|
||||
#include <string.h>
|
||||
#include <locale.h>
|
||||
|
||||
int
|
||||
strcoll(register const char *s1, register const char *s2)
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <locale.h>
|
||||
#include <limits.h>
|
||||
|
||||
size_t
|
||||
wcstombs(register char *s, register const wchar_t *pwcs, size_t n)
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
/* $Header$ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
|
||||
int
|
||||
/* was: wctomb(char *s, wchar_t wchar)
|
||||
|
||||
@@ -9,7 +9,6 @@ Implementation of isnan that directly tests the bits in an ieee float
|
||||
#define _MINIX_SOURCE
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "ieee_float.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include <errno.h>
|
||||
#include <fenv.h>
|
||||
|
||||
#include "fpu_cw.h"
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include <net/netlib.h>
|
||||
#include <net/gen/in.h>
|
||||
|
||||
@@ -5,7 +5,6 @@ domainname.c
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <net/netlib.h>
|
||||
|
||||
int getdomainname(domain, size)
|
||||
char *domain;
|
||||
|
||||
@@ -8,7 +8,6 @@ Created: Nov 17, 1992 by Philip Homburg
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <net/netlib.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/if_ether.h>
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
*/
|
||||
#define nil 0
|
||||
#include <sys/types.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ static char sccsid[] = "@(#)gethostnamadr.c 6.41 (Berkeley) 6/1/90";
|
||||
#ifdef _MINIX
|
||||
#include <sys/types.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -42,7 +41,6 @@ static char sccsid[] = "@(#)gethostnamadr.c 6.41 (Berkeley) 6/1/90";
|
||||
#include <ctype.h>
|
||||
#include <netdb.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <arpa/nameser.h>
|
||||
#include <resolv.h>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@@ -12,9 +11,7 @@
|
||||
#include <net/gen/in.h>
|
||||
#include <net/gen/ip_io.h>
|
||||
#include <net/gen/tcp.h>
|
||||
#include <net/gen/tcp_io.h>
|
||||
#include <net/gen/udp.h>
|
||||
#include <net/gen/udp_io.h>
|
||||
|
||||
int
|
||||
getifaddrs(struct ifaddrs **ifap)
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <net/gen/tcp.h>
|
||||
#include <net/gen/tcp_io.h>
|
||||
#include <net/gen/udp.h>
|
||||
#include <net/gen/udp_io.h>
|
||||
|
||||
#define DEBUG 0
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ static char sccsid[] = "@(#)getservent.c 5.8 (Berkeley) 6/1/90";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include <net/gen/tcp.h>
|
||||
#include <net/gen/tcp_io.h>
|
||||
#include <net/gen/udp.h>
|
||||
#include <net/gen/udp_io.h>
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
#include <lib.h>
|
||||
#define nanosleep _nanosleep
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
|
||||
@@ -5,13 +5,10 @@
|
||||
#define readdir _readdir
|
||||
#define getdents _getdents
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <lib.h>
|
||||
#define sigaction _sigaction
|
||||
#include <sys/sigcontext.h>
|
||||
#include <signal.h>
|
||||
|
||||
_PROTOTYPE(int __sigreturn, (void));
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
#include <lib.h>
|
||||
#define sleep _sleep
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <lib.h>
|
||||
#define stime _stime
|
||||
#include <minix/minlib.h>
|
||||
#include <time.h>
|
||||
|
||||
PUBLIC int stime(top)
|
||||
|
||||
@@ -9,7 +9,6 @@ Created: June 11, 1993 by Philip Homburg
|
||||
#include <errno.h>
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
int tcsetattr(fd, opt_actions, termios_p)
|
||||
int fd;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include <lib.h>
|
||||
#define times _times
|
||||
#include <sys/times.h>
|
||||
#include <time.h>
|
||||
|
||||
PUBLIC clock_t times(buf)
|
||||
struct tms *buf;
|
||||
|
||||
@@ -4,7 +4,6 @@ gettimeofday.c
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <lib.h>
|
||||
#include <time.h>
|
||||
|
||||
int gettimeofday(struct timeval *_RESTRICT tp, void *_RESTRICT tzp)
|
||||
{
|
||||
|
||||
@@ -55,10 +55,8 @@
|
||||
* Number of matches in the current invocation of glob.
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <glob.h>
|
||||
|
||||
@@ -49,7 +49,6 @@ static char sccsid[] = "@(#)regerror.c 8.4 (Berkeley) 3/20/94";
|
||||
#else
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
#include <regex.h>
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ pci_init.c
|
||||
*/
|
||||
|
||||
#include "syslib.h"
|
||||
#include <minix/sysutil.h>
|
||||
|
||||
/*===========================================================================*
|
||||
* pci_init *
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include "syslib.h"
|
||||
|
||||
#include <minix/config.h>
|
||||
|
||||
/*===========================================================================*
|
||||
* sys_profbuf *
|
||||
*===========================================================================*/
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <minix/const.h>
|
||||
#include <minix/type.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <minix/syslib.h>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "sysutil.h"
|
||||
#include <minix/config.h>
|
||||
#include <string.h>
|
||||
|
||||
PUBLIC int env_argc = 0;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <lib.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <minix/profile.h>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "sysutil.h"
|
||||
#include <timers.h>
|
||||
|
||||
#define COM1_BASE 0x3F8
|
||||
#define COM1_THR (COM1_BASE + 0)
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/times.h>
|
||||
#include <sys/types.h>
|
||||
#include <minix/u64.h>
|
||||
#include <minix/config.h>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/times.h>
|
||||
#include <sys/types.h>
|
||||
#include <minix/u64.h>
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/sem.h>
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <errno.h>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#define _SYSTEM 1
|
||||
#define _MINIX 1
|
||||
|
||||
#include <minix/callnr.h>
|
||||
#include <minix/com.h>
|
||||
#include <minix/config.h>
|
||||
#include <minix/ipc.h>
|
||||
@@ -15,8 +14,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user