Commit Graph

18202 Commits

Author SHA1 Message Date
bde
d837023225 Fixed lseek() on named pipes. It always succeeded but should always fail.
Broke locking on named pipes in the same way as locking on non-vnodes
(wrong errno).  This will be fixed later.

The fix involves negative logic.  Named pipes are now distinguished from
other types of files with vnodes, and there is additional code to handle
vnodes and named pipes in the same way only where that makes sense (not
for lseek, locking or TIOCSCTTY).
1996-12-19 19:42:37 +00:00
nate
30805cd75c Renamed private copy of ether_aton to my_ether_aton so as to not
conflict with the version in <net/ethernet.h>
1996-12-19 19:33:10 +00:00
joerg
91cee61358 Test in mseopen() whether the device has been configured at all, and
refuse the open intent with ENXIO otherwise.

Closes PR # bin/2226.

Reviewed by:	bde
1996-12-19 18:33:13 +00:00
bde
e18fda9e89 Fixed errno for unsupported advisory locks. The errno is now EINVAL
fcntl() and EOPNOTSUPP for flock().  POSIX specifies the weaker EINVAL
errno and the man page agrees.

Not fixed:
deadfs: always returns wrong EBADF
devfs, msdosfs: always return sometimes-wrong EINVAL
cd9660, fdesc, kernfs, portal: always return sometimes-wrong EOPNOTSUPP
procfs: always returns wrong EIO
mfs: panic?!
nfs: fudged

NetBSD uses a generic file system genfs to do return the sometimes-wrong
EOPNOTSUPP more consistently :-)(.

Found by:	NIST-PCTS
1996-12-19 18:16:33 +00:00
bde
e038bca551 More cleanups to satisfy the following rules:
- C++ should be supported for application functions (use __BEGIN_DECLS,
  etc.).
- prototypes should be sorted.
- comments on #endif's should spell identifiers the same as the code.
- comments on #endif's should have the same sense as the code (use `!'
  to match ifndef, etc.).
1996-12-19 18:12:06 +00:00
joerg
559ebc11e1 Add /usr/local/sbin to the rc $PATH. Things like GateD are located there. 1996-12-19 18:06:35 +00:00
max
dc5374a1eb Merge the en version changes made in 1.41 -> 1.42. 1996-12-19 16:49:23 +00:00
kato
50c01da555 Add `ep' driver support.
Submitted by:	Naoki Hamada <nao@sbl.cl.nec.co.jp>
1996-12-19 15:48:55 +00:00
wollman
55419390a6 Clean up Bill's additions. 1996-12-19 15:42:52 +00:00
max
f7719f79cd Merge the en version changes made in 1.48 -> 1.49.
(Interestingly, no change in Japanese translation. :)
1996-12-19 15:24:58 +00:00
davidn
104734a133 Allow 8-bit characters in the passwd gecos field, and adds a paragraph
to the mangpage explaining the consequences (to be updated at a later
date after login class conf support is added).
1996-12-19 15:22:45 +00:00
bde
c76d605bfc Fixed setpgid(). Negative pgids were accepted.
Found by:	NIST-PCTS
1996-12-19 13:28:47 +00:00
bde
e184930a20 Fixed arg checking in if_advlock(). Invalid args were accepted in an
optimized case.  Preposterous lengths weren't checked for.

Found by:	NIST-PCTS
1996-12-19 13:22:30 +00:00
max
606c8b3dc8 Merge the en version changes made in 1.16 -> 1.19.
Submitted by:	HINO Koji <hino@nwk.cl.nec.co.jp>
1996-12-19 11:21:41 +00:00
ache
650249d0ad Even more buffer overflow fixes
Change CATMODE to 0644, because group man not used
Add immutable sbit to man binary, so if user even got man uid,
he can't replace man binary with fake one

Should go to 2.2

Submitted by: Marc Slemko <marcs@znep.com> with small editing by me
1996-12-19 10:45:16 +00:00
kato
710349287d Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp>
Support 3COM 3C569 network card on PC98.
1996-12-19 10:31:10 +00:00
asami
051c811f6c Ay, merge from RELENG_2_2. Back out the "moving HEAD" fix. 1996-12-19 08:55:10 +00:00
kato
5d1df07976 Synchronize with sys/i386/i386/trap.c revision 1.84 (handle
copyin/out/etc code).
1996-12-19 08:27:33 +00:00
kato
d75e95fdc6 Synchronize with sys/i386/isa/fd.c revision 1.94 (disable disk
statistics support).
1996-12-19 08:17:08 +00:00
jkh
5e9ffc22f0 Remove bogus references to root.flp in the installation guide (strange
coincidence - this was the very next item on my TODO list, huzzah!  Thanks,
Doug - I don't usually get them checked off so fast! :-).  Also change
XCOPY command example to match new realities.

Submitted-By: Doug White <dwhite@resnet.uoregon.edu>
1996-12-19 00:43:27 +00:00
nate
8f656e55b3 Fixed prototypes of PacketAliasIn/Out. (cosmetic)
Submitted by:	Brian Somers <brian@awfulhak.demon.co.uk>
1996-12-19 00:41:42 +00:00
alex
5647eb145d Hawaii-Five-Typo 1996-12-19 00:26:22 +00:00
mpp
615de507de Mention freebsd-security-notifications in the mailing lists section.
Requested by: Guido van Rooij
1996-12-18 22:41:08 +00:00
mpp
0659371d2d Typo police. 1996-12-18 22:06:47 +00:00
wpaul
09b06a49ee Add prototypes for ethers.3 functions as per wollman:
> wollman     96/12/10 09:19:15
>
>   Modified:    lib/libc/net  ether_addr.c ethers.3
>   Log:
>   Get struct ether_addr directly from <net/ethernet.h> rather than pulling
>   in lots of unrelated junk from <net/if.h> and <net/if_ether.h>.  These
>   functions still aren't prototyped anywhere (but should be in
>   <net/ethernet.h>---got that, Bill?).

(Note that this file has no copyright header; one should probably
be added.)
1996-12-18 21:42:38 +00:00
ache
d960df2235 Fix many buffer overflows, sprintf -> snprintf
Fix manpath dirs count overflow

Should be in 2.2
1996-12-18 20:55:26 +00:00
kato
f912fc3108 Delete comment for "sbic" driver.
2.2 candidate.
1996-12-18 20:54:22 +00:00
kato
58e4dc2cd5 Sync with sys/i386/i386/userconfig.c revision 1.78 (amd driver entry). 1996-12-18 20:52:31 +00:00
kato
c65a755175 Sync with sys/i386/i386/machdep.c revision 1.222 (move printing of
BIOS geometry).
1996-12-18 20:50:44 +00:00
jkh
1973ff3b63 Correct some more tortured syntax. 1996-12-18 20:23:40 +00:00
ache
7cb5d57391 Fix my popen fix: conditionalize saving/restoring of euid
Should be in 2.2
1996-12-18 20:07:49 +00:00
ache
3ea40235ca Drop man priveledges before popen and restore them after it, because
it is possible to execute system command from f.e groff

Should be in 2.2
1996-12-18 19:46:21 +00:00
bde
a9e84f99f0 Fixed pedantic syntax error. 1996-12-18 19:36:01 +00:00
bde
f9adc40824 Added a missing prototype. 1996-12-18 19:14:35 +00:00
bde
6a187caa32 Only handle copyin/out/etc faults when not in an interrupt handler.
This makes unexpected faults (in an interrupt handler) more likely
to crash properly.  It could be done even better (more robustly and
more efficiently) using lazy fault handling.
1996-12-18 19:12:01 +00:00
bde
7e08a625a4 Fixed formatting of KERN_DUMPDEV.
Should be in 2.2.
1996-12-18 18:53:00 +00:00
bde
aeabb37c7e Fixed bogus linkage of one of the ddb linker sets. 1996-12-18 17:58:24 +00:00
bde
ff59515db9 Removed references to nonexistent functions log2() and log2f(). 1996-12-18 17:47:03 +00:00
bde
8a61ccc83b Disabled half-baked disk statistics support. It didn't actually generate
statistics, so it just wasted scarce disk table slots and screen space.
1996-12-18 17:44:31 +00:00
wollman
f7bf6b94e5 Teach mdoc macros to recognize section 9 and the i386 architecture. 1996-12-18 17:43:24 +00:00
fenner
d3bf3fa350 Fix generated code for DLT_NULL encapsulation.
This fixes PR#bin/2212.
1996-12-18 17:08:13 +00:00
davidn
7673f8f6a1 Much fixed & working digiboard driver. 1996-12-18 16:42:06 +00:00
jkh
6d3eda06b5 Eliminate some tortured text. 1996-12-18 16:39:37 +00:00
bde
c8724ad4f8 Initialize the upper 16 bits of the memory sizes properly (to 0).
They were garbage that happened to be 0 in many cases.  (real_to_prot()
happens to leave the value of the real-mode %cr0 in %eax and the
memory-size BIOS calls usually don't touch the upper bits of %eax.
The upper 16 bits of %cr0 are usually 0 at boot time, at least on
486's.

Should be in 2.2.
1996-12-18 15:38:23 +00:00
bde
ebe93c01ac Moved the printing of the BIOS geometries from cpu_startup() into
configure() where it always belonged.  It was originally slightly
misplaced after configure().  Rev.138 left it completely misplaced
before the DEVFS, DRIVERS and CONFIGURE sysinits by not moving it
together with configure().

Restored the printing of bootinfo.bi_n_bios_used now that it can
be nonzero.
1996-12-18 15:03:10 +00:00
bde
3ea3e23b8d Restored comment about _POSIX_SAVED_IDS from rev.1.2. 1996-12-18 14:02:56 +00:00
jkh
b329fe2b59 Back out previous commit (and that's the last one I do on swallace's
behalf - from now on he can do his own).  I guess I didn't notice
the code in the wrapper which turned the union semun arg into a pointer.
1996-12-18 13:37:00 +00:00
jkh
8ac3640ec1 Change prototype for semctl(). 1996-12-18 13:18:57 +00:00
se
5515b70f7b Add Tekram DC390/390T driver "amd0", which is expected to work with
generic AMD 53c974 PCI SCSI controllers as well.
1996-12-18 11:43:33 +00:00
se
673fe08734 Add include of <vm/pmap.h> to make this driver compile under -current.
Cleanup to make it compile cleanly in LINT.
Submitted by:	bde
1996-12-18 11:41:28 +00:00