freebsd-dev/sys/kern
Bruce Evans 725db531b8 Start including <sys/sysproto.h> to get the correct args structs and
prototypes for all syscalls.  The args structs are still declared in
comments as in VOP implementation functions.  I don't like the
duplication for this, but several more layers of changes are required
to get it right.  First we need to catch up with 4.4lite2, which uses
macros to handle struct padding.  Then we need to catch up with NetBSD,
which passes the args correctly (as void *).  Then we need to handle
varargs functions and struct padding better.  I think all the details
can be hidden in machine-generated functions so that the args structs
and verbose macros to reference them don't have to appear in the core
sources.

Add prototypes.

Add bogus casts to hide the evil type puns exposed by the previous
steps.  &uap[1] was used to get at the args after the first.  This
worked because only the first arg in *uap was declared.  This broke
when the machine- genenerated args struct declared all the args
(actually it declares extra args in some cases and depends on the
user stack having some accessible junk after the last arg, not to
mention the user args being on the stack.  It isn't possible to
declare a correct args struct for a varargs syscall).  The msgsys(),
semsys() and shmsys() syscall interfaces are BAD because they
multiplex several syscalls that have different types of args.
There was no reason to duplicate this sysv braindamage but now
we're stuck with it.  NetBSD has reimplemented the syscalls properly
as separate syscalls #220-231.

Declare static functions as static in both their prototype and their
implementation (the latter is optional, and this misfeature was used).

Remove gratuitous #includes.

Continue cleaning up new init stuff.
1995-10-21 19:50:00 +00:00
..
imgact_aout.c Fix my copyright. 1995-09-08 13:24:33 +00:00
imgact_gzip.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
imgact_shell.c Remove prototype definitions from <sys/systm.h>. 1995-10-08 00:06:22 +00:00
inflate.c Changes needed for kzip to work. 1995-04-15 06:54:13 +00:00
init_main.c Remove prototype definitions from <sys/systm.h>. 1995-10-08 00:06:22 +00:00
init_sysent.c Remake generated files to reflect makesyscalls.sh changes 1995-10-07 06:29:30 +00:00
kern_acct.c Use the same method to determine the time that the process 1995-07-23 23:02:20 +00:00
kern_clock.c Improve clock accuracy by accounting for late/missed clock interrupts 1995-10-12 20:35:01 +00:00
kern_conf.c fix REALLY STUPID bug/typo 1995-10-04 08:58:00 +00:00
kern_descrip.c Killed a few gratuitous #include's. 1995-10-21 08:38:13 +00:00
kern_devconf.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
kern_exec.c Killed a few gratuitous #include's. 1995-10-21 08:38:13 +00:00
kern_exit.c Remove prototype definitions from <sys/systm.h>. 1995-10-08 00:06:22 +00:00
kern_fork.c Remove prototype definitions from <sys/systm.h>. 1995-10-08 00:06:22 +00:00
kern_ktrace.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
kern_lkm.c add the file kern_conf.c so it can be compiled in when needed 1995-10-04 03:42:39 +00:00
kern_lockf.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
kern_malloc.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
kern_ntptime.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
kern_physio.c Fix benign type mismatches in devsw functions. 82 out of 299 devsw 1995-09-08 11:09:15 +00:00
kern_proc.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
kern_prot.c Remove prototype definitions from <sys/systm.h>. 1995-10-08 00:06:22 +00:00
kern_resource.c Avoid overflow in calcru(). Fixes PR 788. 1995-10-21 09:18:45 +00:00
kern_sig.c Implement SA_NODEFER sa_flag for sigaction(): 1995-10-19 19:16:01 +00:00
kern_subr.c Improved hashinit panic strings. 1995-05-08 23:11:12 +00:00
kern_synch.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
kern_sysctl.c Fix the sysctl string routines to return as much of the 1995-07-31 10:07:31 +00:00
kern_tc.c Improve clock accuracy by accounting for late/missed clock interrupts 1995-10-12 20:35:01 +00:00
kern_time.c Killed "TIMEZONE" and "DST" options. They have been forced to 0 by config 1995-06-29 07:07:00 +00:00
kern_timeout.c Improve clock accuracy by accounting for late/missed clock interrupts 1995-10-12 20:35:01 +00:00
kern_xxx.c Removed unused local variable from shutdown_nice() 1995-09-06 15:23:20 +00:00
Make.tags.inc Added $Id$ 1994-08-02 07:55:43 +00:00
Makefile Generate prototypes for syscall-implementing functions. Put them in 1995-09-19 13:31:04 +00:00
makesyscalls.sh Fix misc formatting errors in makesyscalls.sh. 1995-10-07 23:56:20 +00:00
md5c.c Clean a bunch of -Wall warnings. 1995-02-24 08:51:34 +00:00
subr_autoconf.c Added $Id$ 1994-08-02 07:55:43 +00:00
subr_clist.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
subr_disklabel.c Remove transitory labelling code. Labels are now handled by essentially 1995-09-16 17:04:06 +00:00
subr_diskmbr.c Don't clip d_ncylinders to value used by partitions. 1995-08-23 11:43:45 +00:00
subr_diskslice.c Remove transitory labelling code. Labels are now handled by essentially 1995-09-16 17:04:06 +00:00
subr_dkbad.c subr_diskslice.c implements everything related to slices and labels except 1994-12-12 00:20:34 +00:00
subr_log.c Made msgbuf range checking more robust and clean. 1995-08-07 07:58:23 +00:00
subr_param.c Eliminate sloppy common-style declarations. There should be none left for 1995-07-29 11:44:31 +00:00
subr_prf.c Killed some gratuitous #include's. 1995-08-24 12:54:11 +00:00
subr_prof.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
subr_rlist.c Killed a few gratuitous #include's. 1995-10-21 08:38:13 +00:00
subr_rmap.c Added $Id$ 1994-08-02 07:55:43 +00:00
subr_trap.c Fix tracing of syscalls. The previous fix required the undocumented 1995-10-09 04:36:01 +00:00
subr_xxx.c Make pcvt and syscons live in the same kernel. If both are enabled, then 1995-09-10 21:36:12 +00:00
sys_generic.c Remove the ugly COMPAT_IBCS2 hack to hide a return value through 1995-10-10 08:08:54 +00:00
sys_process.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
sys_socket.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
syscalls.c Remake generated files to reflect makesyscalls.sh changes 1995-10-07 06:29:30 +00:00
syscalls.master Fix misc formatting errors in makesyscalls.sh. 1995-10-07 23:56:20 +00:00
sysv_ipc.c Added SYSV ipcs. 1994-09-13 14:47:38 +00:00
sysv_msg.c Start including <sys/sysproto.h> to get the correct args structs and 1995-10-21 19:50:00 +00:00
sysv_sem.c Start including <sys/sysproto.h> to get the correct args structs and 1995-10-21 19:50:00 +00:00
sysv_shm.c Start including <sys/sysproto.h> to get the correct args structs and 1995-10-21 19:50:00 +00:00
tty_compat.c Preserve current termios speed for TIOCSET*, if it matched with 1995-08-02 12:53:14 +00:00
tty_conf.c Obtained from: partly from ancient patches by ache and me via 1.1.5 1995-07-29 13:40:13 +00:00
tty_cons.c Make pcvt and syscons live in the same kernel. If both are enabled, then 1995-09-10 21:36:12 +00:00
tty_pty.c Don't clear the session pointer in ptcclose(). It must be left alone 1995-09-19 12:26:47 +00:00
tty_snoop.c Fix benign type mismatches in devsw functions. 82 out of 299 devsw 1995-09-08 11:09:15 +00:00
tty_subr.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
tty_tb.c Added $Id$ 1994-08-02 07:55:43 +00:00
tty_tty.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
tty.c Fix wakeups for TIOCDRAINWAIT. The conditional wakeups introduced in rev 1995-09-10 11:48:13 +00:00
uipc_domain.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
uipc_mbuf.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
uipc_proto.c Make everything except the unsupported network sources compile cleanly 1995-08-16 16:14:28 +00:00
uipc_sockbuf.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
uipc_socket2.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
uipc_socket.c Remove extra arg from one of the calls to (*pr_usrreq)(). 1995-08-25 20:27:46 +00:00
uipc_syscalls.c Remove the '1' from getpeername1 and getsockname1 when NOT COMPAT_OLDSOCK. 1995-10-11 06:09:45 +00:00
uipc_usrreq.c Increase the size of the pipe buffer as denoted by PIPSIZ from 1995-08-31 01:39:31 +00:00
vfs_bio.c If we clear the B_CACHE flag because a buffer isn't composed fully of 1995-10-19 23:48:25 +00:00
vfs_cache.c Eliminate sloppy common-style declarations. There should be none left for 1995-07-29 11:44:31 +00:00
vfs_cluster.c Work-around a problem in the clustering code on non-VMIO buffers. The 1995-10-09 03:19:49 +00:00
vfs_conf.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
vfs_export.c Don't compile the diagnostic functions vhold() and holdrele() unless 1995-08-25 20:49:44 +00:00
vfs_extattr.c Remove prototype definitions from <sys/systm.h>. 1995-10-08 00:06:22 +00:00
vfs_init.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
vfs_lookup.c Add support for amd direct maps. 1995-08-24 10:17:39 +00:00
vfs_mount.c Fixed init functions argument type - caddr_t -> void *. Fixed a couple of 1995-09-09 18:10:37 +00:00
vfs_subr.c Don't compile the diagnostic functions vhold() and holdrele() unless 1995-08-25 20:49:44 +00:00
vfs_syscalls.c Remove prototype definitions from <sys/systm.h>. 1995-10-08 00:06:22 +00:00
vfs_vnops.c A little hack to avoid a 64bit divide. Can go away if Gcc ever learns to 1995-10-06 09:43:32 +00:00
vnode_if.pl Generate prototypes for VOP functions. I decided to keep the old-style 1995-09-11 16:05:16 +00:00
vnode_if.sh Generate prototypes for VOP functions. I decided to keep the old-style 1995-09-11 16:05:16 +00:00
vnode_if.src Added VOP_GETPAGES/VOP_PUTPAGES and also the "backwards" block count 1995-09-04 00:21:16 +00:00