Bruce Evans
51a534883a
Don't include <sys/ioctl.h> in the kernel. Stage 2: include
...
<sys/sockio.h> instead of <sys/ioctl.h> in network files.
1997-03-24 11:33:46 +00:00
Bruce Evans
fce002fdef
Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include
...
it when it is not used. In most cases, the reasons for including it
went away when the special ioctl headers became self-sufficient.
1997-03-24 11:25:10 +00:00
Bruce Evans
cb07fc9803
Don't default to (wrong) SCO definitions for _IOR() etc. if <sys/ioctl.h>
...
doesn't happen to be included before this header.
This header was missed in previous cleanups because it didn't include
<sys/ioctl.h> or <sys/ioccom.h>. Clean it now:
- #include <sys/types.h> since it is necessary to make the header self-
sufficient (there are a couple of u_char's).
- uniformized idempotency ifdef. Copied the style in the 4.4Lite
ioctl headers.
1997-03-24 11:07:52 +00:00
David Nugent
e825ea20dd
Make stlintr() public to allow correct linkage.
1997-03-24 07:25:31 +00:00
KATO Takenori
5fa4a05818
Fix typo.
...
Submitted by: Bruce Evans <bde@zeta.org.au>
1997-03-24 07:23:05 +00:00
KATO Takenori
507cf9c96e
Merge PC-98 code int i386/isa/ft.c.
1997-03-24 07:20:35 +00:00
Warner Losh
6e42740802
Don't overflow buffers, and only open alternative termcap files if we're
...
not running setuid or setgid.
Fixes PR 2586
Submitted by: Julian Assange
1997-03-24 06:41:30 +00:00
Warner Losh
3f2c98c480
Don't honor LANG or NLSPATH if we're setuid/setgid.
...
Fixes PR 2582
Submitted by: Julian Assange
1997-03-24 06:15:07 +00:00
Warner Losh
79d71652cf
If we're running setuid/setguid then don't open the host alias file to
...
prevent information leakage.
Closes PR 2578
Submitted by: Julian Assange
1997-03-24 06:11:44 +00:00
Warner Losh
418d4a9817
Don't open the tz file if we're running setuid or setgid to prevent infomration
...
leakage.
Submitted by: Julian Assange
1997-03-24 06:09:50 +00:00
Warner Losh
fca08b7cfa
Fix non explloitable buffer overflows (since the largest packet processed
...
precludes it) to keep people from whining about it in the newsgroups and
mailing lists.
1997-03-24 06:04:08 +00:00
Warner Losh
0f5e6a0d00
Fix various buffer overflows that may or may not be exploitable.
...
Fixes PR 2588
Reviewed by: Dan Cross?
Submitted by: Julian Assange
1997-03-24 06:01:39 +00:00
Warner Losh
a51e2c9b04
Julian A's fix. Do chdir as user rather than as root. Fixes a minor NFS
...
compatibility problem at the same time. Some buffer made large enough
for worst case hostname.
fixes PR 2593.
Reviewed by: Dan Cross and maybe others
1997-03-24 05:57:28 +00:00
Warner Losh
94cf2e751d
Fix small race window when creating portal socket.
...
Obtained from: OpenBSD
1997-03-24 05:53:12 +00:00
Warner Losh
f85d627937
Buffer overflow from Keith Bostic.
...
Obtained from: BSDi by way of Keith Bostic
1997-03-24 05:51:59 +00:00
Warner Losh
1e545639ed
Use mkstemp rather than mktemp to prevent a small race.
...
OpenBSD has a similar code, but this was indepenent.
1997-03-24 05:50:27 +00:00
Warner Losh
e38b50134c
Use mkstemp rather than mktemp to prevent races.
...
Obtained from: OpenBSD
1997-03-24 05:45:29 +00:00
Warner Losh
722ceb3f84
Use mkstemp rather than mktemp to prevent a small race.
...
Obtained from: OpenBSD
1997-03-24 05:44:28 +00:00
Justin T. Gibbs
7d951713e8
Fix a nasty bug that meant a QUEUE_FULL status would result in a lost
...
SCB. This is probably a main reason for the recent reports of timeouts.
1997-03-24 05:05:18 +00:00
Justin T. Gibbs
23e11becca
Re-arrange the code to upload an SCB to ensure that there is at least
...
on instruction between the last load into the DFIFO and enabling the DMA.
During back to back SCB DMA, it was possible to hang the card.
1997-03-24 05:02:55 +00:00
Bruce Evans
9505c10438
Reactivated dumplfs and newlfs.
1997-03-24 04:57:50 +00:00
Bruce Evans
a02b0b9694
Removed nested #includes of <scsi/scsi_debug.h> and <scsi/scsi_driver.h>
...
from <scsi/scsiconf.h> and fixed everything that depended on them.
(Missed this one.)
1997-03-24 04:26:46 +00:00
Bruce Evans
76cedae52d
Changed MAN to MAN8 so that this builds.
1997-03-24 03:38:16 +00:00
Bruce Evans
90b42d7e40
Fixed corrupted newline and corrupted tab in previous commit.
1997-03-24 03:19:37 +00:00
Hiroyuki Hanai
b0630b15d9
Sync with the original.
1997-03-24 02:56:52 +00:00
KATO Takenori
d1dd81c99f
Fixed corrupted CFLAGS definition. (Deleted harmful backslash.)
...
Submitted by: H. Nokubi <h-nokubi@nmit.mt.nec.co.jp>
1997-03-24 02:38:48 +00:00
Justin T. Gibbs
65e5a3a9df
free_xs must be called at splbio(). This is usually the case since the main
...
caller is scsi_done which the controller interrupt handlers call. In the
case of a non-buffer based transaction, the xs structure is freed by the
process that initiated the transfer in scsi_scsi_cmd. In this case, an
explicit splbio/splx pair around the call to free_xs is required. Without
the splbio protection, the xs free list could be corrupted, and the type
driver's start routine might run without spl protection.
Submitted by: Tor Egge <Tor.Egge@idt.ntnu.no>
Obtained from: PR kern/2891
1997-03-24 01:46:15 +00:00
John-Mark Gurney
bb135fe9a1
add xrefs for getpeername, so other people that look for it can find it.. :)
1997-03-24 01:22:01 +00:00
Mike Pritchard
1ffa2a8e1b
Use the .Tn macro for a couple of generic FreeBSD references.
...
This has the desired side-effect of preventing a bad hyphenation
of the word FreeBSD in one place.
1997-03-24 01:15:16 +00:00
Mike Pritchard
7c692a17cf
Update to reflect the recent changes to support better inode
...
generation numbers.
1997-03-24 00:33:38 +00:00
Mike Pritchard
4f393ff8a8
Typo police.
1997-03-24 00:18:19 +00:00
Warner Losh
62f187a4cf
Buffer overflow. Similar, but different, to the fix that Julian A submitted
...
in PR 2580.
Obtained from: BSDi by way of Keith Bostic
Should be in 2.2 and 2.1.x. I'll merge into 2.2.
1997-03-23 23:31:50 +00:00
Warner Losh
d1942b2e76
Fix a minor buffer overflow.
...
Obtained from: BSDi by way of Keith Bostic
1997-03-23 23:17:22 +00:00
Andrey A. Chernov
92936d823f
Add srandomdev.3 link
1997-03-23 23:12:59 +00:00
Andrey A. Chernov
f409763500
Fix urandom reference in the comment
1997-03-23 23:09:31 +00:00
Andrey A. Chernov
7b0b1b2f29
Add srandomdev() description
1997-03-23 23:08:31 +00:00
Andrey A. Chernov
767b268b5d
Add srandomdev() prototype
1997-03-23 22:44:27 +00:00
Andrey A. Chernov
301cf5d3e4
Add srandomdev() function (use "/dev/urandom" now)
...
Submitted by: wollman & me (add type casts and remove unneded loop)
1997-03-23 22:40:20 +00:00
Wolfram Schneider
3e9c55a063
Add last minute CDROM releases 2.1.6.1, 2.1.7.1, 2.2.1 to macro .Fx
1997-03-23 22:31:19 +00:00
Guido van Rooij
8f89943eda
Add generation number randomization. Newly created filesystems wil now
...
automatically have random generation numbers. The kenel way of handling those
also changed. Further it is advised to run fsirand on all your nfs exported
filesystems. the code is mostly copied from OpenBSD, with the randomization
chanegd to use /dev/urandom
Reviewed by: Garrett
Obtained from: OpenBSD
1997-03-23 20:08:22 +00:00
Joerg Wunsch
8187fe4813
Include `top'.
1997-03-23 18:59:47 +00:00
Joerg Wunsch
511d9c6565
This is the FreeBSD-specific files for top, plus the Makefile
...
that pulls all the files from contrib.
Obtained from: The ports collection (mostly).
1997-03-23 18:55:20 +00:00
Joerg Wunsch
6ab598d69b
Apply the FreeBSD-local patches.
...
Obtained from: The ports collection.
1997-03-23 18:53:01 +00:00
Joerg Wunsch
583a088157
This commit was generated by cvs2svn to compensate for changes in r24139,
...
which included commits to RCS files with non-trunk default branches.
1997-03-23 18:51:21 +00:00
Joerg Wunsch
aee34003d7
This is the long-awaited import of top into the base system (actually,
...
the src/contrib/top part right now). This tools is simply too system-
dependant to maintain it in the ports collection.
1997-03-23 18:51:21 +00:00
KATO Takenori
56be183376
Created new section `CPU OPTIONS'. CPU classes and math emulator are
...
moved to there. Options for CPU feature is also described there.
1997-03-23 11:08:28 +00:00
Bruce Evans
6617929964
Removed nested #includes of <scsi/scsi_debug.h> and <scsi/scsi_driver.h>
...
from <scsi/scsiconf.h> and fixed everything that depended on them.
1997-03-23 06:33:55 +00:00
Bruce Evans
db0ac821f2
Removed nested #includes of <scsi/scsi_debug.h> and <scsi/scsi_driver.h>
...
from <scsi/scsiconf.h> and fixed everything that depended on them.
1997-03-23 06:26:47 +00:00
KATO Takenori
14667a26c6
Added Accton EN1207-TX support.
1997-03-23 05:10:14 +00:00
Bruce Evans
08febfa741
Removed nested #include of <sys/conf.h> from <scsi/scsi_driver.h>
...
and fixed everything that depended on getting it from the wrong
place. Most of the broken things actually only depended on getting
the declaration of their interrupt handler from "ioconf.h".
1997-03-23 04:40:00 +00:00