Commit Graph

10334 Commits

Author SHA1 Message Date
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
John Dyson
0bc3a91127 Remove an unnecessary tsleep in the swapin code. This tsleep
can defer swapping in processes and is just not the right thing to do.
1995-10-16 05:45:49 +00:00
Steven Wallace
30f4c3423d Do a better fake for uname information returned in utssys() call.
Currently, the emulator defaults to returning "FreeBSD" as the system
name, release "3.2", and version "2.0".  Some programs want to make
sure they are on a SYSV 3.2 system and check for 3.X release number.

Use the following defines to override the defaults:
	IBCS2_UNAME_SYSNAME
	IBCS2_UNAME_RELEASE
	IBCS2_UNAME_VERSION
(should be string)
for system name, release, and version, respectively.  This allows
someone to compile the emulator into the kernel so it can pretend
to be a specific system if needed.
1995-10-16 05:32:20 +00:00
Stefan Eßer
287911bd50 Go back to separate tests for configuration mechanism 1 and mechanism 2.
Require the state of the configuration enable bits to be OFF assuming
that the BIOS left them that way, as it should anyway to avoid bad things
to happen.

The tests themselves are copied from the previous release, with the
exception of CONF1_ENABLE_MSK1 having the LSB set. This bit should be
read back as '0', since only DWORD addresses are legal.
1995-10-15 23:43:08 +00:00
Poul-Henning Kamp
fa356aa0c0 Pull all of libkern.a in (though not mcount) so the LKM's don't come
out shorthanded.  Makes the idea of libkern pretty void now...
1995-10-15 18:03:42 +00:00
Poul-Henning Kamp
eba2673a3f Add moncontrol.3 -> monstartup.3 link here. 1995-10-15 17:40:20 +00:00
Poul-Henning Kamp
bc0ec9cabb the man-link for moncontrol soesn't belong here... 1995-10-15 17:39:21 +00:00
Jordan K. Hubbard
551cde2d52 Fix the selection routine. 1995-10-15 17:22:24 +00:00
Poul-Henning Kamp
3cad1ca223 Revert to default entry point. 1995-10-15 17:00:49 +00:00
Poul-Henning Kamp
d19e0556a0 Make LKM entry consisten with tradition: pcic_mod(). 1995-10-15 16:59:36 +00:00
Poul-Henning Kamp
e9dcb6be2d An even better idea: The default will be that on _${KMOD} (_nfs_mod...) will
be exported.  This breaks the compilation of some lkms, the owners of which
is kindly requested to consider what should be exported.
1995-10-15 16:56:56 +00:00
Andrey A. Chernov
7ff83380e0 Fix ALPHA range 1995-10-15 16:53:43 +00:00
John Fieber
3c0c840ea1 Remove hacks that go over the doc tree multiple times.
If you need docs in a non-default format, do `make PRINTER=myformat'.
1995-10-15 16:51:16 +00:00
Andrey A. Chernov
283f4b8de4 Various fixes mostly for letters range
Obtained from: partially from Kaleb S. Keithley <kaleb@x.org> patch
1995-10-15 16:49:16 +00:00
Poul-Henning Kamp
aa9134f375 Automatically DTRT for VFS_LKM 1995-10-15 16:46:00 +00:00
John Fieber
4a00ac792d Change the default PRINTER from ps to ascii. 1995-10-15 16:14:42 +00:00
Andrey A. Chernov
d70b2d75d4 XDIGIT range fixed. This change is cosmetique and not affect anyone,
because ASCII locale used for isdigit and isxdigit in any case.
1995-10-15 15:50:19 +00:00
Poul-Henning Kamp
5336fc25b1 Only export our 'init' symbol. 1995-10-15 14:33:17 +00:00
Poul-Henning Kamp
a304bf73a0 Make a rule for cleaning the namelist of lkms.
TXT & DATA symbols not explicitly mentioned will be made local.
1995-10-15 14:32:26 +00:00
Poul-Henning Kamp
65f29761ba Add a '-c' option for cleaning namelists of various things. 1995-10-15 14:31:10 +00:00
Jordan K. Hubbard
e0e95a6911 Sync. Split into more rational package support functions and clients
of those functions.
1995-10-15 12:41:09 +00:00
Poul-Henning Kamp
953a3198a3 malloc.c A program to benchmark and test malloc. 1995-10-15 12:29:12 +00:00
Poul-Henning Kamp
ec6708b450 Add kernxref, a shellscript to crossreference the symbols of the LINT kernel. 1995-10-15 11:33:42 +00:00
Poul-Henning Kamp
7785b56d83 README reads:
This directory is for tools.

A tool is something which is sometimes useful, and doesn't fit any of the
other categories.

Please make a subdir per program, and add a brief description to this file.
1995-10-15 11:28:03 +00:00
Poul-Henning Kamp
fbbdcf6a4a README reads:
This directory is for test programs.

A test program is one that will excercise a particular bit of the system
and try to break it and/or measuring performance on it.

Please make a subdir per program, and add a brief description to this file.
1995-10-15 11:27:49 +00:00
Poul-Henning Kamp
9e9d8a4677 README reads:
This directory is for regression test programs.

A regression test program is one that will excercise a particular bit of the
system to check that we have not reintroduced an old bug.

Please make a subdir per program, and add a brief description to this file.
1995-10-15 11:27:40 +00:00
Poul-Henning Kamp
04022b1194 README reads:
This directory is for diagnostic programs.

A diagnostic program is one that will inform you that something is wrong
somewhere, for instance by traversing a kernel-structure and verifying
the integrity.

Please make a subdir per program, and add a brief description to this file.
1995-10-15 11:27:15 +00:00
Poul-Henning Kamp
d46b04a5f9 README reads:
This directory tree contains tools used for the maintenance of FreeBSD.
There are no Makefile structure, but possibly Makefiles in some of the
subdirs.
Nothing show be installed from here and into the running system.
This directory should contain only subdirs and this file.
1995-10-15 11:26:49 +00:00
Jordan K. Hubbard
5ebaccdf62 Substantially simplify the package install code by running pkg_add in
slave mode.
1995-10-15 04:37:07 +00:00
David Greenman
dfd651579c Added a -D option to set the TCP_NODELAY socket option. This improves
responsiveness at the expense of some additional network traffic.
1995-10-15 03:40:57 +00:00
Jordan K. Hubbard
e898e17646 Add Michael Elbel to contributors list for his work with the ports
collection.  I'm going to run a search of maintainers against the contrib
list now! :)
1995-10-15 02:46:36 +00:00
John Fieber
af679115df Migration from src/share/FAQ/Text. 1995-10-15 01:41:51 +00:00
John Fieber
9397282f64 New section: firewalls.
Submitted by:	Gary Palmer <gary@palmer.demon.co.uk>
1995-10-14 21:49:54 +00:00
Jordan K. Hubbard
f1de0e9196 Sync up to today's cleanup work. 1995-10-14 19:13:35 +00:00
David Greenman
ad7823eaf1 atapi and wcd LKMs.
Submitted by:	Serge Vakulenko, <vak@cronyx.ru>
1995-10-14 15:47:29 +00:00
David Greenman
9b3e7ec49d Latest fixes from Serge:
I tried to solve the problem of IDE probing compatibility in this version.
When compiled without an ATAPI option, the wd driver is
fully backward compatible with 2.0.5.  With ATAPI option,
the wdprobe becomes strictly weaker.  That is, if wdprobe works
without ATAPI option, it will always work with it too.

Another problem was with the CD-ROM drive attached as a slave
in the IDE bus, where there is no master.  All IDE CD-ROM
drives are shipped in slave configuration, and most users
just plug them in, never thinking about jumpers.
It works fine with ms-dos and ms-windows, and this
version of the driver supports it as well.

The eject op can now load disks.  Just repeat it twice,
and the disk will be ejected and then loaded back.

The disc cannot be ejected if it is mounted.

Submitted by:	Serge Vakulenko, <vak@cronyx.ru>
1995-10-14 15:41:10 +00:00
Jordan K. Hubbard
0722017731 Coerce the exit message into making more sense. 1995-10-14 12:57:01 +00:00
Jordan K. Hubbard
9447b0e107 Sync with my development sources, smashing an annoying bug and making
the options editor a little less pathological.
1995-10-14 09:30:53 +00:00
Bruce Evans
e8f9a07320 Fix the support for MANSRC (it was broken by the compression changes):
use .PATH.n to get the dependencies right and to avoid some shell tests.

Remove bogus dependency of individual compressed man pages on MANDEPEND.

Use for loops to avoid duplicated code.

Combine some rm steps in installation of links.  Linking still takes too
long.
1995-10-14 08:16:04 +00:00
Bruce Evans
f2b0c6b282 Don't allow i/o operations for non-root users. 1995-10-14 07:09:58 +00:00
Bruce Evans
21e00296ec Don't allow i/o operations for non-root users.
Add prototypes.
1995-10-14 07:08:09 +00:00
Bruce Evans
278b94817a Don't allow mmapping the page after last video page.
Obtained from:	syscons.c (bug obtained from original pccons.c)
1995-10-14 05:54:47 +00:00
Bruce Evans
cb759a257f Don't allow mmapping of physical page 6 (ENXIO).
nxmmap() returned a bogus value as well as having a bogus type.  Some
drivers use nxmmap() for configured devices (`nx' functions should
only be used for unconfigured devices).  These drivers allowed mmapping
physical page 6, which may have interesting contents.  vm has kludges
to avoid the same bug with nullop() returning page 0 and enodev()
returning page 19 (ENODEV), but didn't handle enxio() returning page 6.
vm is the wrong place to handle these bugs.
1995-10-14 05:25:45 +00:00
Bruce Evans
f7faedb40d Restore initialization of %ecx for the !I586_CPU case.
Don't declare _i586_ctr_bias.  The usual style, which was
followed in microtime.s, is to omit extern declarations.
1995-10-14 04:53:49 +00:00
Garrett Wollman
231bfb095d In TCP statistics, display new statistic about how many resends were
initiated as a result of the Path MTU discovery process.
1995-10-13 20:01:48 +00:00
Garrett Wollman
42dda55083 Only compile Pentium microtime in Pentium kernels.
Submitted by:	Michael Butler <imb@scgt.oz.au>
1995-10-13 19:53:25 +00:00
Garrett Wollman
233b60cec4 Say goodbye to IFF_NOTRAILERS. Support for trailers was officially
dropped for 4.4, but for some reason this flag lived on.  (Until
today, that is.)
1995-10-13 19:48:06 +00:00
Garrett Wollman
ed07cc7f09 Protect against routing socket messages with way-too-big address families.
Submitted by:	Keith Sklower by way of Paul Traina
1995-10-13 16:01:59 +00:00
Garrett Wollman
91badc866f Routes can be asymmetric. Always offer to /accept/ an MSS of up to the
capacity of the link, even if the route's MTU indicates that we cannot
send that much in their direction.  (This might actually make it possible
to test Path MTU discovery in a useful variety of cases.)
1995-10-13 16:00:25 +00:00
Andrey A. Chernov
7c2aa513e6 Document ENABLE_STARTUP_LOCALE env. variable 1995-10-12 23:54:35 +00:00