freebsd-skq/sys/i386
Steven Wallace 473fbdbe96 Add a hack to emulator to emulat spx device for local X connections.
This is truly a hack.  The idea is taken from the Linux ibcs2 emulator.

To use this feature, you must use the option,
	options		SPX_HACK
in your config.

Also, in /compat/ibcs2/dev, you must do:

lrwxr-xr-x  1 root  wheel         9 Oct 15 22:20 X0R@ -> /dev/null
lrwxr-xr-x  1 root  wheel         7 Oct 15 22:20 nfsd@ -> socksys
lrwxr-xr-x  1 root  wheel         9 Oct 15 22:20 socksys@ -> /dev/null
crw-rw-rw-  1 root  wheel   41,   1 Oct 15 22:14 spx

Do NOT use old socksys driver as that has been removed.
This hack needs /compat/ibcs2/dev/spx to be any device that does NOT
exist/configured (so the now non-existant spx major/minor works fine).
When an open() is called, the error ENXIO is checked and then the
path is checked.  If spx open detected, then a unix socket is opened
to the hardcoded path "/tmp/.X11-unix/X0".

As the Linux hacker author mentioned, the real way would be to detect
the getmsg/putmsg through /dev/X0R and /dev/spx.  Until this true
solution is implemented (if ever), I think this hack is important
enough to be put into the tree, even though I don't like it dirtying
up my clean code (which is what #ifdef SPX_HACK is for).
1995-10-16 05:52:55 +00:00
..
apm Don't include <sys/tty.h> in drivers that aren't tty drivers or in general 1995-07-16 10:13:08 +00:00
bios Don't include <sys/tty.h> in drivers that aren't tty drivers or in general 1995-07-16 10:13:08 +00:00
boot Add -fno-strength-reduce to neutralize possible bad effect of -O2 1995-10-10 21:11:22 +00:00
conf Update files list to include new ibcs2 files needed to compile. 1995-10-10 08:04:10 +00:00
eisa Fix benign type mismatches in isa interrupt handlers. Many returned int 1995-09-19 18:55:37 +00:00
i386 Pull all of libkern.a in (though not mcount) so the LKM's don't come 1995-10-15 18:03:42 +00:00
ibcs2 Add a hack to emulator to emulat spx device for local X connections. 1995-10-16 05:52:55 +00:00
include Reduce jitter of Pentium microtime() implementation by letting the counter 1995-10-12 20:39:49 +00:00
isa Go back to separate tests for configuration mechanism 1 and mechanism 2. 1995-10-15 23:43:08 +00:00
linux Fix the getdirentries of ibcs2 to handle uneven DIRBLKSIZ offsets. 1995-10-10 23:13:27 +00:00
pci Go back to separate tests for configuration mechanism 1 and mechanism 2. 1995-10-15 23:43:08 +00:00
scsi Clean up a few nits in the aic7xxx driver: 1995-09-05 23:52:03 +00:00
Makefile Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some 1993-10-16 19:17:18 +00:00