diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2006-11-08 01:45:44 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:26:51 +0200 |
commit | d5e26a0d71996764e78b351d4b8ece4857e7265b (patch) | |
tree | de75036e989810a678f0a7432c3245f16f696290 /ipc | |
parent | f65186d6363e0e16a5898e6391c7c967b34aa931 (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 'ipc')
-rw-r--r-- | ipc/ipc_entry.c | 3 | ||||
-rw-r--r-- | ipc/ipc_hash.c | 1 | ||||
-rw-r--r-- | ipc/ipc_kmsg.c | 1 | ||||
-rw-r--r-- | ipc/ipc_notify.c | 1 | ||||
-rw-r--r-- | ipc/ipc_object.c | 1 | ||||
-rw-r--r-- | ipc/ipc_port.c | 3 | ||||
-rw-r--r-- | ipc/ipc_pset.c | 3 | ||||
-rw-r--r-- | ipc/mach_msg.c | 1 | ||||
-rw-r--r-- | ipc/mach_port.c | 1 | ||||
-rw-r--r-- | ipc/mach_rpc.c | 1 |
10 files changed, 11 insertions, 5 deletions
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 <printf.h> #include <string.h> #include <mach/kern_return.h> 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 <printf.h> #include <mach/boolean.h> #include <mach/port.h> #include <kern/lock.h> 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 <printf.h> #include <string.h> #include <mach/boolean.h> 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 <printf.h> #include <mach/port.h> #include <mach/message.h> #include <mach/notify.h> 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 <printf.h> #include <string.h> #include <mach/boolean.h> 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 <printf.h> #include <string.h> #include <mach/port.h> @@ -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 <printf.h> #include <mach/port.h> #include <mach/kern_return.h> #include <mach/message.h> @@ -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 <printf.h> #include <mach/kern_return.h> #include <mach/port.h> #include <mach/message.h> 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 <printf.h> #include <mach/port.h> #include <mach/kern_return.h> #include <mach/notify.h> 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 <printf.h> #include <mach/kern_return.h> #include <mach/port.h> #include <mach/rpc.h> |