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 /device | |
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 'device')
-rw-r--r-- | device/dev_name.c | 2 | ||||
-rw-r--r-- | device/dev_pager.c | 1 | ||||
-rw-r--r-- | device/dk_label.c | 1 | ||||
-rw-r--r-- | device/ds_routines.c | 1 | ||||
-rw-r--r-- | device/net_io.c | 1 | ||||
-rw-r--r-- | device/subrs.c | 1 |
6 files changed, 7 insertions, 0 deletions
diff --git a/device/dev_name.c b/device/dev_name.c index 29a144b..1f41335 100644 --- a/device/dev_name.c +++ b/device/dev_name.c @@ -28,6 +28,8 @@ * Date: 8/89 */ +#include <printf.h> +#include <string.h> #include <device/device_types.h> #include <device/dev_hdr.h> #include <device/conf.h> diff --git a/device/dev_pager.c b/device/dev_pager.c index 75b7451..be2daa4 100644 --- a/device/dev_pager.c +++ b/device/dev_pager.c @@ -30,6 +30,7 @@ * Device pager. */ +#include <printf.h> #include <string.h> #include <mach/boolean.h> diff --git a/device/dk_label.c b/device/dk_label.c index 8639e33..c3400ef 100644 --- a/device/dk_label.c +++ b/device/dk_label.c @@ -31,6 +31,7 @@ */ #include <sys/types.h> +#include <printf.h> #include <sys/ioctl.h> #include <device/device_types.h> #include <device/disk_status.h> diff --git a/device/ds_routines.c b/device/ds_routines.c index f7ca4e6..d1fbd4b 100644 --- a/device/ds_routines.c +++ b/device/ds_routines.c @@ -28,6 +28,7 @@ * Date: 3/89 */ +#include <printf.h> #include <string.h> #include <mach/boolean.h> diff --git a/device/net_io.c b/device/net_io.c index 6a08235..7091ffa 100644 --- a/device/net_io.c +++ b/device/net_io.c @@ -39,6 +39,7 @@ */ #include <sys/types.h> +#include <printf.h> #include <string.h> #include <device/net_status.h> diff --git a/device/subrs.c b/device/subrs.c index e6e8b6b..4aa0688 100644 --- a/device/subrs.c +++ b/device/subrs.c @@ -27,6 +27,7 @@ * Random device subroutines and stubs. */ +#include <printf.h> #include <vm/vm_kern.h> #include <device/buf.h> #include <device/if_hdr.h> |