freebsd-dev/sys
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
..
alpha First incarnation of our Linux emulator or rather compatibility code. 1995-06-25 17:32:43 +00:00
amd64 Go back to separate tests for configuration mechanism 1 and mechanism 2. 1995-10-15 23:43:08 +00:00
compat/linux Fix the getdirentries of ibcs2 to handle uneven DIRBLKSIZ offsets. 1995-10-10 23:13:27 +00:00
compile Stop cvs up -P from removing empty compile directories. 1994-08-25 16:20:16 +00:00
conf An even better idea: The default will be that on _${KMOD} (_nfs_mod...) will 1995-10-15 16:56:56 +00:00
ddb Change db_ps() to have the correct number and type of args for a ddb 1995-08-27 02:40:39 +00:00
dev Don't allow i/o operations for non-root users. 1995-10-14 07:08:09 +00:00
fs Add #include <sys/sysproto.h> to get struct close_args and close 1995-10-08 00:09:00 +00:00
gnu Fix select(). 1995-10-12 23:28:41 +00:00
i386 Add a hack to emulator to emulat spx device for local X connections. 1995-10-16 05:52:55 +00:00
isa Don't allow i/o operations for non-root users. 1995-10-14 07:08:09 +00:00
isofs/cd9660 Added VOP_GETPAGES/VOP_PUTPAGES and also the "backwards" block count 1995-09-04 00:21:16 +00:00
kern Improve clock accuracy by accounting for late/missed clock interrupts 1995-10-12 20:35:01 +00:00
libkern Comment out, but don't delete stuff we don't use. 1995-10-05 14:46:07 +00:00
miscfs almost entirely cosmetic changes 1995-10-10 07:12:27 +00:00
modules Revert to default entry point. 1995-10-15 17:00:49 +00:00
msdosfs Return EINVAL instead of panicing for rename("dir1", "dir2/.."). 1995-10-07 10:14:12 +00:00
net Say goodbye to IFF_NOTRAILERS. Support for trailers was officially 1995-10-13 19:48:06 +00:00
netccitt Eliminate sloppy common-style declarations. There should be none left for 1995-07-29 11:44:31 +00:00
netinet Routes can be asymmetric. Always offer to /accept/ an MSS of up to the 1995-10-13 16:00:25 +00:00
netiso Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
netns Fix TCP_DEBUG support so that LINT compiles again (deReiserize). 1995-10-10 05:23:17 +00:00
nfs Added VOP_GETPAGES/VOP_PUTPAGES and also the "backwards" block count 1995-09-04 00:21:16 +00:00
nfsclient Added VOP_GETPAGES/VOP_PUTPAGES and also the "backwards" block count 1995-09-04 00:21:16 +00:00
nfsserver Added NFS_ASYNC kernel option. It only has an effect for NFSv2. 1995-08-24 11:39:31 +00:00
pc98/pc98 Latest fixes from Serge: 1995-10-14 15:41:10 +00:00
pccard Make LKM entry consisten with tradition: pcic_mod(). 1995-10-15 16:59:36 +00:00
pci Say goodbye to IFF_NOTRAILERS. Support for trailers was officially 1995-10-13 19:48:06 +00:00
powerpc/include Don't define CLK_TCK here. 1995-02-03 21:49:18 +00:00
rpc Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
scsi oops currupted a line by hitting the wrong key.. 1995-10-12 02:05:47 +00:00
sys Remove prototype definitions from <sys/systm.h>. 1995-10-08 00:06:22 +00:00
tools Generate prototypes for VOP functions. I decided to keep the old-style 1995-09-11 16:05:16 +00:00
ufs Return EINVAL instead of panicing for rename("dir1", "dir2/.."). 1995-10-07 10:14:12 +00:00
vm Remove an unnecessary tsleep in the swapin code. This tsleep 1995-10-16 05:45:49 +00:00
Makefile Added ${MACHINE}/boot to build bootblocks. 1994-08-25 13:54:28 +00:00