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. --- vm/vm_fault.c | 1 + vm/vm_map.c | 3 +-- vm/vm_object.c | 2 +- vm/vm_resident.c | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) (limited to 'vm') diff --git a/vm/vm_fault.c b/vm/vm_fault.c index b757208..0506e0a 100644 --- a/vm/vm_fault.c +++ b/vm/vm_fault.c @@ -33,6 +33,7 @@ * Page fault handling module. */ +#include #include #include #include /* for error codes */ diff --git a/vm/vm_map.c b/vm/vm_map.c index 193146c..71de048 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -34,6 +34,7 @@ * Virtual memory mapping module. */ +#include #include #include #include @@ -4688,7 +4689,6 @@ void vm_map_print(map) register vm_map_t map; { register vm_map_entry_t entry; - extern int indent; iprintf("Task map 0x%X: pmap=0x%X,", (vm_offset_t) map, (vm_offset_t) (map->pmap)); @@ -4756,7 +4756,6 @@ void vm_map_print(map) void vm_map_copy_print(copy) vm_map_copy_t copy; { - extern int indent; int i, npages; printf("copy object 0x%x\n", copy); diff --git a/vm/vm_object.c b/vm/vm_object.c index 7d00fbe..0e8a514 100644 --- a/vm/vm_object.c +++ b/vm/vm_object.c @@ -33,6 +33,7 @@ * Virtual memory object module. */ +#include #include #include @@ -2969,7 +2970,6 @@ void vm_object_print( vm_object_t object) { register vm_page_t p; - extern indent; register int count; diff --git a/vm/vm_resident.c b/vm/vm_resident.c index 2c99ab5..2b5ecee 100644 --- a/vm/vm_resident.c +++ b/vm/vm_resident.c @@ -33,6 +33,7 @@ * Resident memory management module. */ +#include #include #include -- cgit v1.2.3