From 1fac2f5107e94102ca643ab9b031030bbcb1daa1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 Jul 2008 17:05:43 +0000 Subject: 2008-07-20 Samuel Thibault * linux/pcmcia-cs/glue/wireless_glue.h (schedule_task): Add parameter to Debugger() call. * kern/lock_mon.c (retry_simple_lock, retry_bit_lock): Likewise. * kern/machine.c (Debugger): Remove declaration. 2008-07-19 Barry deFreese * device/dev_hdr.h (dev_name_lookup, dev_set_indirection): Add prototypes. * device/dev_pager.c: Include . * device/ds_routines.c: Likewise. * device/subrs.c: Likewise. * device/device_init.c: Include . * device/ds_routines.h (iowait): Add prototype. * device/net_io.h (net_kmsg_collect): Add prototype. * device/net_io.c (hash_ent_remove, net_free_dead_infp, net_free_dead_entp, bpf_validate, bpf_eq, net_add_q_info, bpf_match): Add forward declarations. * device/subrs.h: New header. * i386/i386/fpu.h: Include . Change include to . (fp_save, fp_load, fp_free, fpu_module_init, fpu_set_state, fpu_get_state, fpnoextflt, fpextovrflt, fpexterrflt, init_fpu): Add prototypes. * i386/i386/gdt.h (gdt_init): Add prototype. * i386/i386/io_map.c: Include . * vm/vm_kern.c: Likewise. * i386/i386/ktss.h (ktss_init): Add prototype. * i386/i386/ldt.h (ldt_init): Add prototype. * i386/i386/loose_ends.h: New header. * i386/i386/loose_ends.c (delay): Complete prototype. * i386/i386/model_dep.h (startrtclock): Add prototype. * i386/i386/pcb.h (load_context, stack_attach, stack_detach, switch_ktss): Add prototypes. * i386/i386/pic.h (form_pic_mask, picinit): Add prototypes. * i386/i386/pit.c: Include . * i386/i386at/kd_mouse.c: Likewise. * i386/i386/pit.h (clkstart): Add prototype. * i386/i386/trap.c: Include , , . * i386/i386/trap.h (interrupted_pc): Add prototype. * i386/i386/user_ldt.c: Include . * i386/i386at/autoconf.h: New header. * i386/i386at/com.h: New header. * i386/i386at/com.c: Include , . * i386/i386at/idt.h (idt_init): Add prototype. * i386/i386at/int_init.h: New header. * i386/i386at/kd.c: Include . * kern/debug.c: Likewise. * i386/i386at/kd_event.c: Include . * i386/i386at/kd_mouse.c: Likewise. * i386/i386at/kd_mouse.c: Include , . * i386/i386at/lpr.c: Include * i386/i386at/model_dep.c: Include: , , , , , , , , , , . * i386/i386at/rtc.h (readtodc, writetodc): Add prototypes. * i386/intel/pmap.h: Include . (pmap_bootstrap, pmap_unmap_page_zero, pmap_zero_page, pmap_copy_page, kvtophys): Add prototypes. * i386/intel/read_fault.h: New header. * kern/ast.h (ast_init, ast_check): Add prototypes. * kern/debug.c (Debugger): Move prototype to... * kern/debug.h (Debugger): ... here. * kern/eventcount.h (evc_notify_abort): Add prototype. * kern/ipc_mig.c: Include , , * kern/ipc_mig.h: New header. * kern/ipc_tt.h (mach_reply_port): Add prototype. * kern/machine.h: New header. * kern/processor.h (pset_sys_bootstrap): Move prototype outside of MACH_HOST check. * kern/sched_prim.h (thread_bind, compute_priority, thread_timeout_setup): Add prototypes. * kern/startup.c: Include , . * kern/syscall_subr.c: Include . (thread_depress_abort): Remove prototype. * kern/syscall_subr.h: Include , (thread_depress_abort): Add prototype. * kern/syscall_sw.c: Include: . * kern/task.h (consider_task_collect): Add prototype. * kern/thread.c: Include , , . * kern/thread.h (stack_collect): Add prototype. * linux/pcmcia-cs/glue/pcmcia_glue.h (Debugger): Remove prototype. * util/putchar.c: Include . * util/putchar.h: New header. * util/puts.c: Include , . * vm/memory_object.c: Include . (memory_object_data_provided): Move function below memory_object_data_supply definition. * vm/vm_init.c: Include . * vm/vm_kern.h (projected_buffer_in_range): Add prototype. * vm/vm_map.c: Include , . (vm_map_delete, vm_map_copyout_page_list, vm_map_copy_page_discard): Add forward declaration. * vm/vm_map.h (vm_map_copyin_object, vm_map_submap, _vm_map_clip_start, _vm_map_clip_end): Add prototypes. * vm/vm_pageout.c: Include , , . * vm/vm_resident.h: New header. * vm/vm_user.c: Include . * vm/pmap.h (pmap_pageable, pmap_map_bd): Add prototype. --- util/putchar.c | 2 ++ util/putchar.h | 32 ++++++++++++++++++++++++++++++++ util/puts.c | 3 +++ 3 files changed, 37 insertions(+) create mode 100644 util/putchar.h (limited to 'util') diff --git a/util/putchar.c b/util/putchar.c index e349d208..6f8e18ea 100644 --- a/util/putchar.c +++ b/util/putchar.c @@ -21,6 +21,8 @@ * Author: Bryan Ford, University of Utah CSL */ +#include + int putchar(int c) { cnputc(c); diff --git a/util/putchar.h b/util/putchar.h new file mode 100644 index 00000000..2e65bd56 --- /dev/null +++ b/util/putchar.h @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2008 Free Software Foundation, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Author: Barry deFreese. + */ +/* + * Simple putchar implementation header. + * + */ + +#ifndef _PUTCHAR_H_ +#define _PUTCHAR_H_ + +#include + +extern int putchar(int c); + +#endif /* _PUTCHAR_H_ */ diff --git a/util/puts.c b/util/puts.c index c0eec03e..0bd72e98 100644 --- a/util/puts.c +++ b/util/puts.c @@ -21,6 +21,9 @@ * Author: Bryan Ford, University of Utah CSL */ +#include +#include + /* Simple puts() implementation that just uses putchar(). Note that our libc's printf() is implemented in terms of only puts() and putchar(), so that's all we need. */ -- cgit v1.2.3