summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2006-11-08 01:45:44 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:51 +0200
commitd5e26a0d71996764e78b351d4b8ece4857e7265b (patch)
treede75036e989810a678f0a7432c3245f16f696290 /i386
parentf65186d6363e0e16a5898e6391c7c967b34aa931 (diff)
2006-11-07 Barry deFreese <bddebian@comcast.net>
[task #5726 --- ``GCC built-in functions''] * include/printf.h: New file. (printf_init, _doprnt, printnum, sprintf, printf, indent, iprint): New declarations. * include/string.h (strchr, strcmp, strcpy, strlen, strncmp, strncpy, strrchr, strsep): New extern declarations. * kern/strings.c: Don't include `kern/strings.h', include `string.h'. (strncmp, strncpy, strlen): Fix prototypes into using size_t. * kern/strings.h: Removed file. * kern/debug.c: Include `printf.h'. (do_cnputc): New function. (panic, log): Use do_cnputc instead of cnputc. * chips/busses.c: Don't include `kern/strings.h', include `printf.h' and `string.h'. (_doprnt): Remove extern declaration. (indent): Remove extern declaration. * chips/busses.c: Likewise. * ddb/db_aout.c: Likewise. * ddb/db_command.c: Likewise. * ddb/db_lex.c: Likewise. * ddb/db_macro.c: Likewise. * ddb/db_output.c: Likewise. * ddb/db_print.c: Likewise. * ddb/db_sym.c: Likewise. * device/dev_name.c: Likewise. * device/dev_pager.c: Likewise. * device/dk_label.c: Likewise. * device/ds_routines.c: Likewise. * device/net_io.c: Likewise. * device/subrs.c: Likewise. * i386/i386/db_trace.c: Likewise. * i386/i386/debug_i386.c: Likewise. * i386/i386/fpu.c: Likewise. * i386/i386/io_map.c: Likewise. * i386/i386/kttd_interface.c: Likewise. * i386/i386/pic.c: Likewise. * i386/i386/trap.c: Likewise. * i386/i386at/autoconf.c: Likewise. * i386/i386at/com.c: Likewise. * i386/i386at/i386at_ds_routines.c: Likewise. * i386/i386at/kd.c: Likewise. * i386/i386at/kd_event.c: Likewise. * i386/i386at/kd_mouse.c: Likewise. * i386/i386at/lpr.c: Likewise. * i386/i386at/model_dep.c: Likewise. * i386/intel/pmap.c: Likewise. * ipc/ipc_entry.c: Likewise. * ipc/ipc_hash.c: Likewise. * ipc/ipc_kmsg.c: Likewise. * ipc/ipc_notify.c: Likewise. * ipc/ipc_object.c: Likewise. * ipc/ipc_port.c: Likewise. * ipc/ipc_pset.c: Likewise. * ipc/mach_msg.c: Likewise. * ipc/mach_port.c: Likewise. * ipc/mach_rpc.c: Likewise. * kern/bootstrap.c: Likewise. * kern/eventcount.c: Likewise. * kern/ipc_kobject.c: Likewise. * kern/pc_sample.c: Likewise. * kern/printf.c: Likewise. * kern/sched_prim.c: Likewise. * kern/thread.c: Likewise. * kern/zalloc.c: Likewise. * vm/vm_fault.c: Likewise. * vm/vm_map.c: Likewise. * vm/vm_object.c: Likewise. * vm/vm_resident.c: Likewise.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/db_trace.c2
-rw-r--r--i386/i386/debug_i386.c2
-rw-r--r--i386/i386/fpu.c1
-rw-r--r--i386/i386/io_map.c1
-rw-r--r--i386/i386/kttd_interface.c4
-rw-r--r--i386/i386/pic.c1
-rw-r--r--i386/i386/trap.c1
-rw-r--r--i386/i386at/autoconf.c1
-rw-r--r--i386/i386at/com.c1
-rw-r--r--i386/i386at/i386at_ds_routines.c2
-rw-r--r--i386/i386at/kd.c1
-rw-r--r--i386/i386at/kd_event.c1
-rw-r--r--i386/i386at/kd_mouse.c1
-rw-r--r--i386/i386at/lpr.c1
-rw-r--r--i386/i386at/model_dep.c3
-rw-r--r--i386/intel/pmap.c1
16 files changed, 23 insertions, 1 deletions
diff --git a/i386/i386/db_trace.c b/i386/i386/db_trace.c
index dec0ac1..4402161 100644
--- a/i386/i386/db_trace.c
+++ b/i386/i386/db_trace.c
@@ -26,6 +26,8 @@
#if MACH_KDB
+#include <string.h>
+
#include <mach/boolean.h>
#include <vm/vm_map.h>
#include <kern/thread.h>
diff --git a/i386/i386/debug_i386.c b/i386/i386/debug_i386.c
index ae77779..d758e43 100644
--- a/i386/i386/debug_i386.c
+++ b/i386/i386/debug_i386.c
@@ -21,6 +21,8 @@
* Author: Bryan Ford, University of Utah CSL
*/
+#include <printf.h>
+
#include "thread.h"
#include "trap.h"
#include "debug.h"
diff --git a/i386/i386/fpu.c b/i386/i386/fpu.c
index c436cfe..c61b4a0 100644
--- a/i386/i386/fpu.c
+++ b/i386/i386/fpu.c
@@ -27,6 +27,7 @@
* Support for 80387 floating point or FP emulator.
*/
+#include <printf.h>
#include <string.h>
#include <mach/exception.h>
diff --git a/i386/i386/io_map.c b/i386/i386/io_map.c
index 256a9a0..00c9a7a 100644
--- a/i386/i386/io_map.c
+++ b/i386/i386/io_map.c
@@ -24,6 +24,7 @@
* the rights to redistribute these changes.
*/
+#include <printf.h>
#include <mach/vm_param.h>
#include <vm/vm_kern.h>
#include <vm/vm_map.h>
diff --git a/i386/i386/kttd_interface.c b/i386/i386/kttd_interface.c
index d0d7efd..016bd9c 100644
--- a/i386/i386/kttd_interface.c
+++ b/i386/i386/kttd_interface.c
@@ -26,6 +26,9 @@
#if MACH_TTD
+#include <sys/types.h>
+#include <printf.h>
+
#include <mach/machine/eflags.h>
#include <kern/thread.h>
@@ -33,7 +36,6 @@
#include <mach/thread_status.h>
#include <mach/vm_param.h>
#include <i386/seg.h>
-#include <sys/types.h>
#include <ttd/ttd_types.h>
#include <ttd/ttd_stub.h>
diff --git a/i386/i386/pic.c b/i386/i386/pic.c
index 4fa17f7..58953fc 100644
--- a/i386/i386/pic.c
+++ b/i386/i386/pic.c
@@ -50,6 +50,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <sys/types.h>
+#include <printf.h>
#include <i386/ipl.h>
#include <i386/pic.h>
#include <i386/machspl.h>
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index d57ce17..16a9405 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -28,6 +28,7 @@
*/
#include <sys/types.h>
+#include <printf.h>
#include <string.h>
#include <mach/machine/eflags.h>
diff --git a/i386/i386at/autoconf.c b/i386/i386at/autoconf.c
index 9426f44..d6cfe3d 100644
--- a/i386/i386at/autoconf.c
+++ b/i386/i386at/autoconf.c
@@ -24,6 +24,7 @@
* the rights to redistribute these changes.
*/
+#include <printf.h>
#ifdef MACH_KERNEL
#include <mach/std_types.h>
#else /* MACH_KERNEL */
diff --git a/i386/i386at/com.c b/i386/i386at/com.c
index 950ef95..7ff8815 100644
--- a/i386/i386at/com.c
+++ b/i386/i386at/com.c
@@ -28,6 +28,7 @@
#include <mach/std_types.h>
#include <sys/types.h>
+#include <printf.h>
#include <sys/time.h>
#include <device/conf.h>
#include <device/errno.h>
diff --git a/i386/i386at/i386at_ds_routines.c b/i386/i386at/i386at_ds_routines.c
index 48050ac..bc2a433 100644
--- a/i386/i386at/i386at_ds_routines.c
+++ b/i386/i386at/i386at_ds_routines.c
@@ -23,6 +23,8 @@
* Author: Shantanu Goel, University of Utah CSL
*/
+#include <printf.h>
+
#include <mach/boolean.h>
#include <mach/kern_return.h>
#include <mach/mig_errors.h>
diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c
index f7b3fc8..09ea902 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -77,6 +77,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* $ Header: $ */
#include <sys/types.h>
+#include <printf.h>
#include <kern/time_out.h>
#include <device/conf.h>
#include <device/tty.h>
diff --git a/i386/i386at/kd_event.c b/i386/i386at/kd_event.c
index 909f066..b10d7f3 100644
--- a/i386/i386at/kd_event.c
+++ b/i386/i386at/kd_event.c
@@ -56,6 +56,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <mach/boolean.h>
#include <sys/types.h>
+#include <printf.h>
#include <string.h>
#ifdef MACH_KERNEL
diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c
index 82fdd78..a89d6b2 100644
--- a/i386/i386at/kd_mouse.c
+++ b/i386/i386at/kd_mouse.c
@@ -66,6 +66,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <mach/boolean.h>
#include <sys/types.h>
+#include <printf.h>
#ifdef MACH_KERNEL
#include <device/errno.h>
#include <device/io_req.h>
diff --git a/i386/i386at/lpr.c b/i386/i386at/lpr.c
index f085265..f071d23 100644
--- a/i386/i386at/lpr.c
+++ b/i386/i386at/lpr.c
@@ -33,6 +33,7 @@
#ifdef MACH_KERNEL
#include <mach/std_types.h>
#include <sys/types.h>
+#include <printf.h>
#include <sys/time.h>
#include <device/conf.h>
#include <device/errno.h>
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 565f189..f31a8d7 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -32,6 +32,9 @@
* Basic initialization for I386 - ISA bus machines.
*/
+#include <printf.h>
+#include <string.h>
+
#include <mach/vm_param.h>
#include <mach/vm_prot.h>
#include <mach/machine.h>
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 58fc5d4..e75d054 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -55,6 +55,7 @@
* and to when physical maps must be made correct.
*/
+#include <printf.h>
#include <string.h>
#include <mach/machine/vm_types.h>