summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorkleink <kleink@NetBSD.org>1999-01-11 22:39:59 +0000
committerkleink <kleink@NetBSD.org>1999-01-11 22:39:59 +0000
commit3ed4fcf61e1aef0cdae01dd587cf8def01630949 (patch)
tree15f8e5c78e49c6e1206ba78929505d7d2cc43d5b /usr.bin
parent555784ccd5e9c774ff846f2868027bf90bc30e55 (diff)
In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
of errno.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/crunch/crunchide/crunchide.c6
-rw-r--r--usr.bin/crunch/crunchide/exec_aout.c6
-rw-r--r--usr.bin/elf2ecoff/elf2ecoff.c5
-rw-r--r--usr.bin/ktrace/ktrace.c6
4 files changed, 11 insertions, 12 deletions
diff --git a/usr.bin/crunch/crunchide/crunchide.c b/usr.bin/crunch/crunchide/crunchide.c
index 04bec03d07c..76f6a7d8e96 100644
--- a/usr.bin/crunch/crunchide/crunchide.c
+++ b/usr.bin/crunch/crunchide/crunchide.c
@@ -1,4 +1,4 @@
-/* $NetBSD: crunchide.c,v 1.8 1997/11/01 06:51:45 lukem Exp $ */
+/* $NetBSD: crunchide.c,v 1.9 1999/01/11 22:40:00 kleink Exp $ */
/*
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
* Copyright (c) 1994 University of Maryland
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: crunchide.c,v 1.8 1997/11/01 06:51:45 lukem Exp $");
+__RCSID("$NetBSD: crunchide.c,v 1.9 1999/01/11 22:40:00 kleink Exp $");
#endif
#include <unistd.h>
@@ -68,10 +68,10 @@ __RCSID("$NetBSD: crunchide.c,v 1.8 1997/11/01 06:51:45 lukem Exp $");
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
+#include <errno.h>
#include <a.out.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/errno.h>
#include "extern.h"
diff --git a/usr.bin/crunch/crunchide/exec_aout.c b/usr.bin/crunch/crunchide/exec_aout.c
index 9f681156012..607835f8d53 100644
--- a/usr.bin/crunch/crunchide/exec_aout.c
+++ b/usr.bin/crunch/crunchide/exec_aout.c
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_aout.c,v 1.6 1997/08/02 21:30:17 perry Exp $ */
+/* $NetBSD: exec_aout.c,v 1.7 1999/01/11 22:40:00 kleink Exp $ */
/*
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
* Copyright (c) 1994 University of Maryland
@@ -27,17 +27,17 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: exec_aout.c,v 1.6 1997/08/02 21:30:17 perry Exp $");
+__RCSID("$NetBSD: exec_aout.c,v 1.7 1999/01/11 22:40:00 kleink Exp $");
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <errno.h>
#include <a.out.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/errno.h>
#include "extern.h"
diff --git a/usr.bin/elf2ecoff/elf2ecoff.c b/usr.bin/elf2ecoff/elf2ecoff.c
index 3758a246056..505dc62f6a1 100644
--- a/usr.bin/elf2ecoff/elf2ecoff.c
+++ b/usr.bin/elf2ecoff/elf2ecoff.c
@@ -1,4 +1,4 @@
-/* $NetBSD: elf2ecoff.c,v 1.11 1998/11/27 05:09:50 simonb Exp $ */
+/* $NetBSD: elf2ecoff.c,v 1.12 1999/01/11 22:40:00 kleink Exp $ */
/*
* Copyright (c) 1997 Jonathan Stone
@@ -39,6 +39,7 @@
#include <sys/types.h>
#include <err.h>
+#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/exec.h>
@@ -46,7 +47,6 @@
#include <sys/exec_aout.h>
#include <stdio.h>
#include <sys/exec_ecoff.h>
-#include <sys/errno.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
@@ -110,7 +110,6 @@ write_ecoff_symhdr(int outfile, struct ecoff_exechdr * ep,
void pad16(int fd, int size, const char *msg);
-extern int errno;
int *symTypeTable;
diff --git a/usr.bin/ktrace/ktrace.c b/usr.bin/ktrace/ktrace.c
index e97f44e33cc..3ee1c290d80 100644
--- a/usr.bin/ktrace/ktrace.c
+++ b/usr.bin/ktrace/ktrace.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ktrace.c,v 1.9 1998/07/14 01:39:59 nathanw Exp $ */
+/* $NetBSD: ktrace.c,v 1.10 1999/01/11 22:40:01 kleink Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\
#if 0
static char sccsid[] = "@(#)ktrace.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: ktrace.c,v 1.9 1998/07/14 01:39:59 nathanw Exp $");
+__RCSID("$NetBSD: ktrace.c,v 1.10 1999/01/11 22:40:01 kleink Exp $");
#endif
#endif /* not lint */
@@ -51,11 +51,11 @@ __RCSID("$NetBSD: ktrace.c,v 1.9 1998/07/14 01:39:59 nathanw Exp $");
#include <sys/stat.h>
#include <sys/file.h>
#include <sys/time.h>
-#include <sys/errno.h>
#include <sys/uio.h>
#include <sys/ktrace.h>
#include <err.h>
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>