NetBSD/sys/kern
chuck 94fa91f862 import chris torek's vfprintf() from libc [renamed to kprintf and all
floating point stuff removed].

the new kprintf replaces the 3 different (and buggy) versions of
printf that were in the kernel before (kprintf, sprintf, and db_printf),
thus reducing duplicated code by 2/3's.   this fixes (or adds) several
printf formats.  examples:
 %#x   - previously only supported by db_printf [not printf/sprintf]
 %8.8s - printf would print "000chuck" for "chuck" before
 %5p   - printf would print "0x    1" for value 1 before

XXX: new kprintf still supports several non-standard '%' formats that
are supposed to eventually be removed:
  %: - passes an additional format string and argument list recursively
  %b - used to decode error registers
  %r - int, but print in radix "db_radix" [DDB only]
  %z - 'signed hex' [DDB only]
  %n - unsigned int, but print in radix "db_radix" [DDB only]

note that DDB's "%n" conflicts with standard "%n" which takes the
number of characters written so far and stores it into the integer
indicated by the "int *" pointer arg.  yuck!

while here, add comments for each function explaining what it is
supposed to do.
1997-10-24 18:14:25 +00:00
..
exec_aout.c
exec_conf.c
exec_ecoff.c
exec_elf32.c
exec_elf64.c
exec_elf_common.c
exec_script.c
exec_subr.c
genassym.awk more comments 1997-10-04 16:56:49 +00:00
genassym.sh replace gawk-specific C-style comments with generic AWK comments; from 1997-08-20 06:58:10 +00:00
init_main.c Add const where appropriate. 1997-10-19 02:00:19 +00:00
init_sysent.c Regen, syscalls.master changed. 1997-10-20 22:06:52 +00:00
kern_acct.c Add const where appropriate. 1997-10-19 02:00:19 +00:00
kern_clock.c
kern_descrip.c Fix the shared library versioning snafu caused by the recent changes 1997-10-20 22:05:06 +00:00
kern_exec.c Fix execve(2) and *setregs() interfaces so emulations can set registers in a 1997-09-11 23:01:44 +00:00
kern_exit.c
kern_fork.c
kern_ktrace.c Add const where appropriate. 1997-10-19 02:00:19 +00:00
kern_lkm.c
kern_lock.c Make wmesg arguments to various functions const. 1997-10-09 12:49:44 +00:00
kern_malloc.c Add another bit of const poisoning. 1997-10-09 13:05:59 +00:00
kern_ntptime.c
kern_physio.c
kern_proc.c
kern_prot.c
kern_resource.c Adjust u_int arguments of some system calls to int, to match user-level 1997-10-15 17:03:52 +00:00
kern_sig.c Disable an effectively no-op reference to u_kproc, with an explanation of what 1997-10-16 02:45:39 +00:00
kern_subr.c Copyright assigned to The NetBSD Foundation. 1997-10-05 18:37:01 +00:00
kern_synch.c GC pageproc and bclnlist. 1997-10-10 08:19:41 +00:00
kern_sysctl.c Fix PR4313: kern.maxvnodes setting was a psychotic placebo 1997-10-21 18:51:06 +00:00
kern_time.c Adjust u_int arguments of some system calls to int, to match user-level 1997-10-15 17:03:52 +00:00
kern_xxx.c Use the copied-in string to pass to cpu_reboot(), not a pointer into user space. 1997-09-20 19:32:15 +00:00
kgdb_stub.c Use the macro PC_ADVANCE(), if defined, to skip over a breakpoint. 1997-09-10 19:37:31 +00:00
Make.tags.inc
Makefile
makesyscalls.sh
subr_autoconf.c Call device_register() on i386 too. 1997-09-20 14:16:43 +00:00
subr_disk.c Copyright assigned to The NetBSD Foundation. 1997-10-05 18:37:01 +00:00
subr_extent.c Fix tipo inherited from old version of TNF copyright template. 1997-10-09 07:37:50 +00:00
subr_log.c Implement the kernel part of pr-1891. This allows for a more flexible sized 1997-09-19 13:52:37 +00:00
subr_prf.c import chris torek's vfprintf() from libc [renamed to kprintf and all 1997-10-24 18:14:25 +00:00
subr_prof.c Add #include <sys/sysctl.h>, which in turn needs #include <vm/vm.h>. 1997-10-17 22:37:38 +00:00
subr_rmap.c
subr_xxx.c
sys_generic.c Adjust u_int arguments of some system calls to int, to match user-level 1997-10-15 17:03:52 +00:00
sys_process.c
sys_socket.c
syscalls.c Regen, syscalls.master changed. 1997-10-20 22:06:52 +00:00
syscalls.conf
syscalls.master Fix the shared library versioning snafu caused by the recent changes 1997-10-20 22:05:06 +00:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c Fix error handling - call wakeup() in error case too. 1997-10-09 08:35:13 +00:00
tty_conf.c
tty_pty.c
tty_subr.c
tty_tb.c
tty_tty.c
tty.c Count characters even when !OPOST and FLUSHO. 1997-10-19 20:35:21 +00:00
uipc_domain.c
uipc_mbuf.c
uipc_proto.c
uipc_socket2.c Make various standard wmesg strings const. 1997-10-09 12:59:50 +00:00
uipc_socket.c Fix a mbuf leak in sosend() when we have a negative residual count. 1997-08-27 07:10:01 +00:00
uipc_syscalls.c
uipc_usrreq.c PR/4280: Chris Jones: Sending more than one fd over AF_UNIX sockets causes 1997-10-17 17:35:08 +00:00
vfs_bio.c
vfs_cache.c
vfs_cluster.c
vfs_conf.c Allow more than 4 (up to 16 now) virtual filesystems to be loaded. 1997-10-20 17:40:07 +00:00
vfs_init.c
vfs_lockf.c
vfs_lookup.c Check exec bit of symbolic link when traversing path and do it in vfs layer. 1997-10-11 00:08:08 +00:00
vfs_subr.c Separate assigments of tv_sec and tv_nsec since tv_sec is a time_t (int on 1997-10-18 16:34:17 +00:00
vfs_syscalls.c Fix the shared library versioning snafu caused by the recent changes 1997-10-20 22:05:06 +00:00
vfs_vnops.c Add vn_readdir function for use in both the old getdirentries and 1997-10-10 02:09:30 +00:00
vnode_if.c Regen. 1997-10-10 02:07:55 +00:00
vnode_if.sh
vnode_if.src Make last argument to VOP_READDIR off_t. 1997-10-10 02:07:00 +00:00