summaryrefslogtreecommitdiff
path: root/i386/i386at
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/i386at
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/i386at')
-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
8 files changed, 11 insertions, 0 deletions
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>