Commit Graph

22407 Commits

Author SHA1 Message Date
bde
551134d4e8 Removed unused #includes. 1997-06-14 11:38:46 +00:00
bde
672c312961 Don't require superuser privileges for creating fifos. The v2 case was
broken when support for v3 was introduced in rev.1.16.  The v3 case has
always been broken in FreeBSD.

Should be in 2.2.

PR:		3838
1997-06-14 11:19:35 +00:00
ache
f9302eec85 Move machine/types.h to non-standard section
Change order of arc4* functions
Pointed-by: bde
1997-06-14 10:45:25 +00:00
bde
a47fc068b9 Load the kernel config file where userconfig (with option USERCONFIG_BOOT)
will see it.  The name of the file is obtained by appending ".config"
to the name of the kernel file.  If the file doesn't exist, then an
annoying message is printed.

Reduced the command line buffer size yet again from 4096 to 1024.  It is
oversized to defend against overrun in gets(), but data space is starting
to run out so the buffer size can't be as grossly oversized as before.
1997-06-14 10:00:42 +00:00
kato
71e1483804 Deleted #ifdef PROBE_KEYBOARD to synchronize.
Submitted by:	Michio "Karl" Jinbo <karl@marcer.nagaokaut.ac.jp>
1997-06-14 06:33:53 +00:00
ache
f23eadb87b Back out recent color-xerm and xterm merging,
it can leads to confusion with what programs traditionly expect
and gains almost nothing since -tn option exist to specify desired term.
1997-06-14 05:42:00 +00:00
ache
30e34273cc Replace random() by arc4random() since random() can't be used
in libraries, it may damage its predictable sequence
1997-06-14 04:05:01 +00:00
ache
cc33f39796 Remove srandomdev fallback code 1997-06-14 02:29:19 +00:00
ache
cbd380e632 Add arc4random family declaration 1997-06-14 01:33:52 +00:00
ache
cff03109e9 Change u_char which require special include to unsigned char 1997-06-14 01:28:59 +00:00
ache
93ef2a033a Add arc4random() functions from OpenBSD. They are almost same as our
srandomdev(), but can be used inside libraries. random() can't be used
inside libraries because it breaks its possible predictable sequence.
arc4random() is true random as designed, so its usage is library-safe.
Obtained from: OpenBSD
1997-06-14 01:15:41 +00:00
ache
aee8cc2f52 Remove srandomdev fallback code 1997-06-14 00:37:08 +00:00
ache
66946f9305 Remove srandomdev fallback code 1997-06-14 00:27:03 +00:00
ache
1b5fc58b0b Remove srandomdev fallback 1997-06-14 00:17:53 +00:00
ache
98ddc15c28 Instead of copying fallback code over and over in each program,
implement (better) falback code inside srandomdev() itself.
Change return type from int to void (binary compatibility surprisely
achieved). Userland code will be changed soon.
1997-06-14 00:14:29 +00:00
dg
f0711d970f Added support for the Intel 82555 PHY chip which is being used on newer
Pro/100B cards. Full duplex should work now, although it hasn't been
tested.
1997-06-13 22:34:52 +00:00
davidn
33ffdfd368 Add "break" inadvertently removed in previous update.
PR: 3820
Submitted by: Joseph Stein <joes@spiritone.com>
1997-06-13 22:26:41 +00:00
max
09e80a9d77 Typo fix.
PR:		3828
Submitted by:	Josh Gilliam <josh@quick.net>
1997-06-13 21:11:27 +00:00
max
aed020b3a1 Typo fix.
PR:		3854
Submitted by:	Takahiro Yugawa <yugawa@orleans.rim.or.jp>
1997-06-13 20:58:09 +00:00
ache
ea356bff53 Add MAXHOSTNAMELEN check
Obtained from: OpenBSD
1997-06-13 19:21:54 +00:00
jkh
d15c79aba2 YAMF22 1997-06-13 18:02:34 +00:00
jkh
8f235bb8bf YAMF22 1997-06-13 17:55:32 +00:00
jkh
ba527a824b YAMF22 1997-06-13 14:21:22 +00:00
jkh
d86473c883 Incorporate an ancient typo fix that never made it over from 2.2. 1997-06-13 14:06:10 +00:00
jkh
b6e8cc8fa1 reverse polarity on bit-flip from 2.2 1997-06-13 11:00:13 +00:00
kato
8faf93d931 Replace I/O port adress for PC-9801-108 with vendor default value.
Submitted by:	Chiharu Shibata <chi@rd.njk.co.jp>
1997-06-13 10:35:38 +00:00
jkh
34ac204835 Nuke notifier. 1997-06-13 09:37:25 +00:00
jkh
d75a722d2e YAMF22 1997-06-13 09:34:10 +00:00
bde
09d13c3c83 Fixed livelock in getnewbuf().
It is possible for multiple process to sleep concurrently waiting
for a buffer.  When the buffer shortage is a shortage of space but
not a shortage of buffer headers, the processes took turns creating
empty buffers and waking each other to advertise the brelse() of
the empties; progress was never made because tsleep() always found
another high-priority process to run and everything was done at
splbio(), so vfs_update never had a chance to flush delayed writes,
not to mention that i/o never had a chance to complete.

The problem seems to be rare in practice, but it can easily be
reproduced by misusing block devices, at least for sufficently slow
devices on machines with a sufficiently small buffer cache.  E.g.,
`tar cvf /dev/fd0 /kernel' on an 8MB system with no disk in fd0
causes the problem quickly; the same command with a disk in fd0
causes the problem not quite as quickly; and people have reported
problems newfs'ing file systems on block devices.

Block devices only cause this problem indirectly.  They are pessimized
for time and space, and the space pessimization causes the shortage
(it manifests as internal fragmentation in buffer_map).

This should be fixed in 2.2.
1997-06-13 08:30:40 +00:00
jkh
73c96a1380 YAMF22 1997-06-13 07:11:57 +00:00
charnier
6e0b43d464 Remove __progname. Cosmetic in usage string. 1997-06-13 06:27:12 +00:00
charnier
98daca0d1c Use err(3). 1997-06-13 06:24:42 +00:00
ache
b481633bcf xterm entry:
1) fix k1-k4 to match XF3.3
2) fix kb,kD to match keyboard
3) merge xterm-color in: default description must match best current practice
and color card is most common variant for X now. Add xterm-mono entry for
mono cards.
1997-06-13 05:30:50 +00:00
brian
328f056077 Fix "delete ...", it now only insists on
one arg too.

Discovered by:	Rikk Salamat <rikks@web-impact.com>
1997-06-13 03:59:36 +00:00
brian
1fd5f260cd Add ppp.linkdown file to compliment ppp.linkup.
Submitted by:	Forgotten
Passed on by:	Terry Dwyer 61 8 9491 5161 <tdwyer@io.telstra.com.au>

Also remove extraneous setuid(0) - it's only undone by
the subsequent call to SelectSystem().
1997-06-13 02:07:32 +00:00
brian
e6dedeb7e4 Fix "show ?" alignment.
PR:		3830
Submitted by:	Josh Gilliam <josh@quick.net>
1997-06-13 00:09:54 +00:00
brian
747720e64d Document ppp over tcp (how to tunnel) 1997-06-13 00:04:58 +00:00
tegge
9c20171483 Use ETHER_ADDR_LEN instead of ETHER_ADDR_SIZE. 1997-06-12 19:20:53 +00:00
wpaul
6f8dcc8271 getnetid() crashes if no /etc/netid file is present (it tries to fclose()
a FILE * handle that wasn't really open).
1997-06-12 18:42:43 +00:00
tegge
49a4edd9b1 Work around a gcc bug (causing false warnings about integral constant being too large, even when the integral constant was e.g. 1). 1997-06-12 18:10:08 +00:00
tegge
f8fabab002 Move commonly used code into static functions in order to reduce kernel bloat. 1997-06-12 14:08:20 +00:00
tegge
adc55c1f8b Remove unused routines. 1997-06-12 14:03:16 +00:00
phk
88464dd9dc Add yet an option, this time on how to deal with malloc(0) and realloc(ptr.0)
Prompted by:	X11 & XFree86
1997-06-12 12:45:45 +00:00
jkh
628c1856e7 Whoops - add boot.foo files to the outside of the MFS, not the inside. :)
Brain engaged now.
1997-06-12 09:23:54 +00:00
jkh
528afa5976 Copy boot.help file onto boot.flp and write zero-length boot.config
there to shut the boot blocks' whining little face up.
1997-06-12 09:18:29 +00:00
jkh
1050d2fdc1 YAMF22 1997-06-12 09:01:38 +00:00
jkh
f0f2f5b31c YAMF22 1997-06-12 08:46:51 +00:00
jkh
f6bcf2cd23 YAMF22 1997-06-12 07:35:40 +00:00
se
6d8819c7ed Add device IDs for new Symbios SCSI chips (53c875J,885,895,896), which
should work with no driver changes, though not all features are currently
used.

Remove code that was conditional on NEW_SCSICONF not being defined. This
was temporary code, that at a time got excluded correctly, until the new
scsiconf became the default, and NEW_SCSICONF was no longer specified.

Add support for quirks defined in scsiconf.c. For now only the HP3724/5
needs an entry, since that drive can't be used with tags.
1997-06-11 22:36:02 +00:00
se
49de06acbb Add quirk "no tags" entry for HP 3724/5 hard disk drives. 1997-06-11 22:29:01 +00:00