From d5e26a0d71996764e78b351d4b8ece4857e7265b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 8 Nov 2006 01:45:44 +0000 Subject: 2006-11-07 Barry deFreese [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. --- ipc/ipc_entry.c | 3 ++- ipc/ipc_hash.c | 1 + ipc/ipc_kmsg.c | 1 + ipc/ipc_notify.c | 1 + ipc/ipc_object.c | 1 + ipc/ipc_port.c | 3 +-- ipc/ipc_pset.c | 3 +-- ipc/mach_msg.c | 1 + ipc/mach_port.c | 1 + ipc/mach_rpc.c | 1 + 10 files changed, 11 insertions(+), 5 deletions(-) (limited to 'ipc') diff --git a/ipc/ipc_entry.c b/ipc/ipc_entry.c index 85404b6..705638d 100644 --- a/ipc/ipc_entry.c +++ b/ipc/ipc_entry.c @@ -25,7 +25,7 @@ * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. - * + */ /* * File: ipc/ipc_entry.c * Author: Rich Draves @@ -34,6 +34,7 @@ * Primitive functions to manipulate translation entries. */ +#include #include #include diff --git a/ipc/ipc_hash.c b/ipc/ipc_hash.c index 1c5bfa9..4f21073 100644 --- a/ipc/ipc_hash.c +++ b/ipc/ipc_hash.c @@ -31,6 +31,7 @@ * Entry hash table operations. */ +#include #include #include #include diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c index 100cc93..1c9ef87 100644 --- a/ipc/ipc_kmsg.c +++ b/ipc/ipc_kmsg.c @@ -34,6 +34,7 @@ * Operations on kernel messages. */ +#include #include #include diff --git a/ipc/ipc_notify.c b/ipc/ipc_notify.c index c90796f..30cfac4 100644 --- a/ipc/ipc_notify.c +++ b/ipc/ipc_notify.c @@ -31,6 +31,7 @@ * Notification-sending functions. */ +#include #include #include #include diff --git a/ipc/ipc_object.c b/ipc/ipc_object.c index 713a581..53f7793 100644 --- a/ipc/ipc_object.c +++ b/ipc/ipc_object.c @@ -31,6 +31,7 @@ * Functions to manipulate IPC objects. */ +#include #include #include diff --git a/ipc/ipc_port.c b/ipc/ipc_port.c index a23375c..fa8ed3a 100644 --- a/ipc/ipc_port.c +++ b/ipc/ipc_port.c @@ -34,6 +34,7 @@ * Functions to manipulate IPC ports. */ +#include #include #include @@ -1448,8 +1449,6 @@ void ipc_port_print(port) ipc_port_t port; { - extern int indent; - printf("port 0x%x\n", port); indent += 2; diff --git a/ipc/ipc_pset.c b/ipc/ipc_pset.c index b535e3f..049c66d 100644 --- a/ipc/ipc_pset.c +++ b/ipc/ipc_pset.c @@ -36,6 +36,7 @@ * Functions to manipulate IPC port sets. */ +#include #include #include #include @@ -330,8 +331,6 @@ void ipc_pset_print( ipc_pset_t pset) { - extern int indent; - printf("pset 0x%x\n", pset); indent += 2; diff --git a/ipc/mach_msg.c b/ipc/mach_msg.c index cdb406e..a02462d 100644 --- a/ipc/mach_msg.c +++ b/ipc/mach_msg.c @@ -36,6 +36,7 @@ * Exported message traps. See mach/message.h. */ +#include #include #include #include diff --git a/ipc/mach_port.c b/ipc/mach_port.c index 0ddad53..b78ab25 100644 --- a/ipc/mach_port.c +++ b/ipc/mach_port.c @@ -36,6 +36,7 @@ * Exported kernel calls. See mach/mach_port.defs. */ +#include #include #include #include diff --git a/ipc/mach_rpc.c b/ipc/mach_rpc.c index 0ceeeb4..dae097a 100644 --- a/ipc/mach_rpc.c +++ b/ipc/mach_rpc.c @@ -21,6 +21,7 @@ #ifdef MIGRATING_THREADS +#include #include #include #include -- cgit v1.2.3