freebsd-skq/sys/i386/include
peter 8465726bda Mega-commit for Linux emulator update.. This has been stress tested under
netscape-2.0 for Linux running all the Java stuff.  The scrollbars are now
working, at least on my machine. (whew! :-)

I'm uncomfortable with the size of this commit, but it's too
inter-dependant to easily seperate out.

The main changes:

COMPAT_LINUX is *GONE*.  Most of the code has been moved out of the i386
machine dependent section into the linux emulator itself.  The int 0x80
syscall code was almost identical to the lcall 7,0 code and a minor tweak
allows them to both be used with the same C code.  All kernels can now
just modload the lkm and it'll DTRT without having to rebuild the kernel
first.  Like IBCS2, you can statically compile it in with "options LINUX".

A pile of new syscalls implemented, including getdents(), llseek(),
readv(), writev(), msync(), personality().  The Linux-ELF libraries want
to use some of these.

linux_select() now obeys Linux semantics, ie: returns the time remaining
of the timeout value rather than leaving it the original value.

Quite a few bugs removed, including incorrect arguments being used in
syscalls..  eg:  mixups between passing the sigset as an int, vs passing
it as a pointer and doing a copyin(), missing return values, unhandled
cases, SIOC* ioctls, etc.

The build for the code has changed.  i386/conf/files now knows how
to build linux_genassym and generate linux_assym.h on the fly.

Supporting changes elsewhere in the kernel:

The user-mode signal trampoline has moved from the U area to immediately
below the top of the stack (below PS_STRINGS).  This allows the different
binary emulations to have their own signal trampoline code (which gets rid
of the hardwired syscall 103 (sigreturn on BSD, syslog on Linux)) and so
that the emulator can provide the exact "struct sigcontext *" argument to
the program's signal handlers.

The sigstack's "ss_flags" now uses SS_DISABLE and SS_ONSTACK flags, which
have the same values as the re-used SA_DISABLE and SA_ONSTACK which are
intended for sigaction only.  This enables the support of a SA_RESETHAND
flag to sigaction to implement the gross SYSV and Linux SA_ONESHOT signal
semantics where the signal handler is reset when it's triggered.

makesyscalls.sh no longer appends the struct sysentvec on the end of the
generated init_sysent.c code.  It's a lot saner to have it in a seperate
file rather than trying to update the structure inside the awk script. :-)

At exec time, the dozen bytes or so of signal trampoline code are copied
to the top of the user's stack, rather than obtaining the trampoline code
the old way by getting a clone of the parent's user area.  This allows
Linux and native binaries to freely exec each other without getting
trampolines mixed up.
1996-03-02 19:38:20 +00:00
..
pc Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some 1993-10-16 14:40:57 +00:00
_limits.h Don't define CLK_TCK here. 1995-02-03 21:49:18 +00:00
ansi.h Define macros _BSD_OFF_T_ and _BSD_PID_T_ suitable for use instead 1995-06-28 01:39:26 +00:00
apm_bios.h Fixed staticizing. Some functions aren't static but depend on 1995-12-25 07:38:47 +00:00
apm_segments.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
asc_ioctl.h Submitted by: Luigi Rizzo 1995-09-08 03:22:00 +00:00
asmacros.h Implemented non-statistical kernel profiling. This is based on 1995-12-29 15:30:05 +00:00
bootinfo.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
clock.h No longer use the cyclecounter to attempt to correct for late or missed 1996-01-30 18:56:47 +00:00
conf.h Pass 3 of the great devsw changes 1995-12-08 11:19:42 +00:00
cons.h Added $Id$ 1994-08-02 07:55:43 +00:00
console.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
cpu.h Make the bootinfo structure visible from sysctl. 1995-07-16 10:33:38 +00:00
cpufunc.h Removed declarations of nonexistent functions. 1996-01-16 07:42:08 +00:00
cputypes.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
cronyx.h Clean up Ethernet drivers: 1996-02-06 18:51:28 +00:00
db_machdep.h Removed unused thread support (partly to get rid of its incomplete 1995-12-03 10:40:16 +00:00
devconf.h Mega commit for sysctl. 1995-11-20 12:42:39 +00:00
endian.h Rename the local variable used by various macros outside the user's 1995-02-12 08:31:31 +00:00
exec.h Shuffled macros and definitions around to facilitate architecture 1994-09-24 21:37:01 +00:00
float.h Made all header files idempotent and moved incorrect common data from 1993-11-07 17:43:17 +00:00
floatingpoint.h Don't provide bogus source operands in some asms. This probably shouldn't 1994-09-20 22:26:37 +00:00
frame.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
gsc.h Gunther Schadow <gusw@fub46.zedat.fu-berlin.de>'s 1995-01-07 14:52:08 +00:00
ieeefp.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
ioctl_ctx.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
ioctl_fd.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
ioctl_meteor.h Hopefully, this will fix the problems that some people have been having with 1996-03-02 06:08:53 +00:00
ipl.h Added $Id$ 1994-08-02 07:55:43 +00:00
joystick.h Put the joystick status in a struct {int x, y, b1, b2;} rather than in a 1995-02-22 23:34:58 +00:00
laptops.h Updated PC-CARD support to contain most of the code from the latest 1996-02-21 23:22:27 +00:00
limits.h Don't define CLK_TCK here. 1995-02-03 21:49:18 +00:00
lpt.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
md_var.h Mega-commit for Linux emulator update.. This has been stress tested under 1996-03-02 19:38:20 +00:00
mouse.h Added the psm driver from 1.1.5. 1994-09-09 11:27:50 +00:00
mtpr.h Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some 1993-10-16 14:40:57 +00:00
npx.h Added `#include "ioconf.h"' to <machine/conf.h> and cleaned up the 1995-11-04 17:08:13 +00:00
param.h Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS" 1995-05-25 07:41:28 +00:00
pcaudioio.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
pcb.h Mega-commit for Linux emulator update.. This has been stress tested under 1996-03-02 19:38:20 +00:00
pcvt_ioctl.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
pmap.h Fix a problem with tracking the modified bit. Eliminate the 1996-02-25 03:02:53 +00:00
proc.h The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch. 1994-05-25 09:21:21 +00:00
profile.h Fixed user-mode mcount which I broke in the previous revision. 1996-01-01 17:11:21 +00:00
psl.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
pte.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
ptrace.h Add commands for ptrace get/set registers.. (Same numbers as NetBSD) 1996-01-24 18:51:48 +00:00
qcam.h Remove the ability for the user mode programs to specify bidirectional 1996-02-02 20:37:51 +00:00
random.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
reg.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
reloc.h Made idempotent. 1994-08-21 04:55:31 +00:00
segments.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
si.h Mainly cosmetic cleanups... It now uses more consistant message reporting 1995-11-28 02:07:36 +00:00
signal.h Fix standards conformance bugs in <signal.h>: 1995-06-28 02:14:13 +00:00
soundcard.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
speaker.h Added $Id$ 1994-08-02 07:55:43 +00:00
specialreg.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
spigot.h Jim's latest fixes. 1995-09-01 00:25:18 +00:00
spl.h Add a couple of macros I expect to need. 1996-02-07 21:52:57 +00:00
stdarg.h Fix stdarg.h for GNU C using builtin_next_arg 1995-01-24 16:22:52 +00:00
sysarch.h Added $Id$ 1994-08-02 07:55:43 +00:00
trap.h Fix security holes in sigreturn(), ptrace() and procfs. sigreturn() 1995-01-14 13:20:26 +00:00
tss.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
types.h Changes to support 1Tb filesizes. Pages are now named by an 1995-12-11 04:58:34 +00:00
ultrasound.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
varargs.h Added $Id$ 1994-08-02 07:55:43 +00:00
vmparam.h Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS" 1995-05-25 07:41:28 +00:00
wtio.h . move out the error and status register def's for wt into 1996-02-22 00:31:49 +00:00