Commit Graph

51947 Commits

Author SHA1 Message Date
ache
758b65af24 Rewrite using stdio. It cause program speedup since eliminates lots of small
read() syscalls.  It not cause static binary size increasing because stdio
already picked via setlocale() called from catopen()
2000-09-03 21:05:10 +00:00
wilko
1f6f350e3d Tincup & Rawhide need their VGA cards in a slot connected to PCI0 for the
BIOS emulation to work.
2000-09-03 17:34:44 +00:00
wosch
c70e73db38 Added page http://perso.wanadoo.fr/levenez/unix/ to Bibliography.
This is the most comprehensive UNIX famility tree I know of.

Submitted by: Poul-Henning Kamp <phk@critter.freebsd.dk>
2000-09-03 17:11:26 +00:00
des
4ccc78e4b6 Use dirname(3). 2000-09-03 17:10:00 +00:00
des
0f74eb1ff5 Use basename(3). 2000-09-03 17:09:41 +00:00
wosch
5e07530d96 Added OpenBSD 2.7 2000-09-03 16:45:46 +00:00
wosch
ee57da15e7 Added FreeBSD 3.5.1 2000-09-03 16:38:47 +00:00
kato
c45f2bf631 Merged from sys/i386/i386/machdep.c revision 1.405. 2000-09-03 15:55:34 +00:00
kato
67354e34ef Merged from sys/conf/files.i386 revisions 1.325 and 1.326. 2000-09-03 14:47:00 +00:00
kato
7a93c3f457 Merged from sys/i386/i386/machdep.c rev. 1.404 just for keeping
similarity.  No PC-98 may have ACPI feature, but I'm not 100%
sure.
2000-09-03 14:11:03 +00:00
itojun
19b3360796 repair type 0 routing header support. it was caused by RFC2292/2292bis
difference.  from: jinmei@kame.net
2000-09-03 13:43:13 +00:00
ache
457dce1c80 Add:
The implementation will behave as if no library function calls strtok().
2000-09-03 13:24:28 +00:00
groudier
7dbe2805a2 PR: kern/20895
PR kern/20895:
- Add FE_DAC new feature flag to distinguish between
  64 bit PCI addressing (DAC cycles) and 64 bit PCI
  interface (64 bit Memory BARs).
- Properly deal with chips that have a 32 bit PCI
  interface but support and may generate DAC.
  (Only SYM53C895A for now).

PR misc/17584 (at least partially addressed):
- Try detecting hardware combinations that trigger
  spurious PCI master parity error detections by the
  PCI chip. This work-around is implemented in the
  `snooptest' routine and consists in retrying with
  PCI master parity checking disabled if such an
  error is reported by the PCI chip during this test.

Other:
- Fix a tiny bug in WIDE negotiation that was very
  unlikely to be triggerred. The BUS width was wrongly
  compared against chip's max. offset.
2000-09-03 12:36:21 +00:00
groudier
83e8bf778b Add device list supported by `sym' 2000-09-03 12:29:51 +00:00
peter
16fb45f301 sys/systm.h is incompatable with sys/types.h in userland.
(#define major() in sys/types.h for example.)

Reported by:	Nickolay Dudorov <nnd@mail.nsk.ru>
2000-09-03 11:32:07 +00:00
peter
365ba7aac8 Make libstand compile 2000-09-03 11:29:18 +00:00
peter
55f74ff69d Fix pci-pci bridges (I hope).
In the nexus case, there are no ivars for children of nexus devices,
and we were passing data in from before the device existed, hence ivars
are convenient as the softc doesn't really exist yet.
However, for pci->pci bridges, the pcib occupies a pci device itself,
which *does* already have ivars.  However, softc is available and stable
at this point since we've been identified and are locating the bus during
attach.  So, use softc for this version of pcib devices for storing the
physical bus number in.
2000-09-03 08:30:10 +00:00
kris
e82b86bebd bzero() the struct timeval for paranoia
Submitted by:	gshapiro
2000-09-03 07:58:35 +00:00
kato
ae149b3d3d Merged from sys/dev/syscons/syscons.c revision 1.346. 2000-09-03 07:05:30 +00:00
peter
a67cdf8827 I'm not sure what changed to cause this, but using 'dirname' as a variable
was colliding with dirname() in libc.a and causing a Sig 10/bus error.
Just change dirname to savedir and be done with it.
2000-09-03 07:02:00 +00:00
peter
234989014e kern_shutdown.c was more ANSI-C than K&R - remove the remnants of K&R
support with extreme prejudice.
2000-09-03 06:44:53 +00:00
peter
d2cef67f8f gcc knows that savectx() is potentially a setjmp style dual-return
function which may lead to stack lossage and clobbered variables.
This isn't the case here, but there is no way to tell gcc that.

Work around this in a kinda bizzare way, but it shuts gcc up.
2000-09-03 06:35:04 +00:00
peter
86b929d0e2 libkern.h now internally uses the bzero() definition from sys/systm.h.
This is kinda important since the bzero symbol on i386 is not a function
but a function pointer..  If memset() tried to call it as though it were
a function, things would be less than satisfactory.  In reality though
this was not an actual problem and just caused compile warnings.
2000-09-03 06:04:16 +00:00
peter
2b94fd8fe0 Replace previous change by a move of a #include since something else
#includes "smbus.h".    There is still some bogus (but harmless) stuff
here surrounding the #include <sys/bus.h> includes here and elsewhere in
the bktr code.
2000-09-03 05:54:40 +00:00
peter
dacf2d8812 If we are going to test NSMBUS, we had better #include the file that
defines it.  This creates more warnings rather than less though. These
had gone undetected until now. :-(
2000-09-03 05:44:33 +00:00
peter
0826c47d02 Fix warnings by moving static functions before they are used. 2000-09-03 05:32:09 +00:00
peter
690989c690 Complain if we cannot find loader(8) metadata. 2000-09-03 04:13:03 +00:00
peter
4a87387b0f Find the module metadata before the console init rather than after.
This should repair consoles on the Alpha when using dynamic hints.
2000-09-03 04:07:41 +00:00
obrien
c222dee510 Allow one to specify what the installed kernel's name is by setting
"INSTKERNNAME".

Reviewed by:	marcel
2000-09-03 02:58:39 +00:00
obrien
25a7f14c35 This is real released software, let people think that. 2000-09-03 02:46:17 +00:00
grog
5c4cba9013 Clean up now that setproctitle() is in libc.
Submitted by: 	brian
2000-09-03 01:29:29 +00:00
cg
f9d07352e0 remove opt_devfs.h 2000-09-02 23:19:47 +00:00
cg
b849c00871 update for phk's last devfs commit 2000-09-02 23:14:46 +00:00
obrien
95020e1f6c Move NOPROFILE' and NOPERL' to be with the reset of their "NO" brethren. 2000-09-02 22:46:04 +00:00
obrien
483621aee8 Move the kernel's "cflags" to be next to the world ones. 2000-09-02 22:43:18 +00:00
brian
49c8686158 Don't use libutil now that setproctitle() is in libc 2000-09-02 20:52:15 +00:00
brian
32e7e3a6f4 Remove libutil - setproctitle() is now in libc 2000-09-02 20:42:19 +00:00
rwatson
265307e18b Modify extended attribute protection model to authorize based on
attribute namespace and DAC protection on file:
	- Attribute names beginning with '$' are in the system namespace
	- The attribute name "$" is reserved
	- System namespace attributes may only be read/set by suser()
	  or by kernel (cred == NULL)
	- Other attribute names are in the application namespace
	- The attribute name "" is reserved
	- Application namespace attributes are protected in the manner
	  of the target file permission

o Kernel changes
	- Add ufs_extattr_valid_attrname() to check whether the requested
	  attribute "set" or "enable" is appropriate (i.e., non-reserved)
	- Modify ufs_extattr_credcheck() to accept target file vnode, not
	  to take inode uid
	- Modify ufs_extattr_credcheck() to check namespace, then enforce
	  either kernel/suser for system namespace, or vaccess() for
	  application namespace
o EA backing file format changes
	- Remove permission fields from extended attribute backing file
	  header
	- Bump extended attribute backing file header version to 3
o Update extattrctl.c and extattrctl.8
	- Remove now deprecated -r and -w arguments to initattr, as
	  permissions are now implicit
	- (unrelated) fix error reporting and unlinking during failed
	  initattr to remove duplicate/inaccurate error messages, and to
	  only unlink if the failure wasn't in the backing file open()

Obtained from:	TrustedBSD Project
2000-09-02 20:31:26 +00:00
wilko
6388ba8e45 Fix wording
Submitted by:	obrien
2000-09-02 20:30:02 +00:00
phk
4e6fcf2beb Avoid the modules madness I inadvertently introduced by making the
cloning infrastructure standard in kern_conf.  Modules are now
the same with or without devfs support.

If you need to detect if devfs is present, in modules or elsewhere,
check the integer variable "devfs_present".

This happily removes an ugly hack from kern/vfs_conf.c.

This forces a rename of the eventhandler and the standard clone
helper function.

Include <sys/eventhandler.h> in <sys/conf.h>: it's a helper #include
like <sys/queue.h>

Remove all #includes of opt_devfs.h they no longer matter.
2000-09-02 19:17:34 +00:00
cg
02898bd13f add a missing return statement, doh. 2000-09-02 18:55:01 +00:00
iwasaki
4624fcd784 Add ACPI_BUS_SPACE stuff definitions in acpi_machdep.h.
Change to include this file rather than acpica_osd.h to use
only ACPI_BUS_SPACE stuff.
2000-09-02 15:06:54 +00:00
phk
8d21956096 Bite the bullet and provde memcmp() and memset(), this will be cheaper
than all the copy&paste versions we already have :-(
2000-09-02 13:34:52 +00:00
phk
71eeb863d0 Oops, only memset() is unsupported. 2000-09-02 12:57:40 +00:00
phk
52b319fb6c Purposely break kernel code which uses memset and memcpy to prevent people
from not noticing this is wrong just because they can't be bothered to
testcompile LINT.
2000-09-02 12:51:56 +00:00
phk
b23fec1654 Move svr4 here as well... 2000-09-02 12:43:43 +00:00
truckman
c548251457 access() shouldn't diddle with the contents of a potentially shared
credential.  Create a temporary copy of the current credential and
modify the copy.

Submitted by:	tegge
2000-09-02 12:31:55 +00:00
wilko
a383d60118 - Add AS1200/Tincup description
- Add a bunch of new machine codenames
- Cleanup Miata a bit
- Update AS[56]00 description
- fix typos
2000-09-02 10:19:32 +00:00
n_hibma
05f99012f7 Don't check for ohci/uhci to be loaded, check for the usb module. 2000-09-02 10:17:58 +00:00
wilko
3f10a2b3e8 Document AS1200 ("Tincup") as tested successfully. 2000-09-02 10:14:05 +00:00