Commit Graph

17837 Commits

Author SHA1 Message Date
Jordan K. Hubbard 715f4f2230 Add more miscellaneous devices
Remove bogus example text.
1996-12-19 21:39:07 +00:00
Jordan K. Hubbard 6a91d19cdb Add infrastructure support for John Polstra's new cvsup section. Update
various commentary which suggests which syncronization method to use.
1996-12-19 20:24:37 +00:00
Jordan K. Hubbard db86af15f4 Add the SGML-ified version of John Polstra's cvsup manual. Thanks, John!
SGML'd by:	jkh
Submitted by:	jdp
1996-12-19 20:23:05 +00:00
Bruce Evans b8b6f5017f Fixed nonexistent checking of lock types for F_GETLK.
Found by:	NIST-PCTS
1996-12-19 19:59:51 +00:00
Bruce Evans bb65f5a1cc 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 Williams 63c6440041 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 Wunsch 741d5385e8 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
Bruce Evans 2cec12807d 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
Bruce Evans 323416489d 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 Wunsch 901d09409f Add /usr/local/sbin to the rc $PATH. Things like GateD are located there. 1996-12-19 18:06:35 +00:00
Masafumi Max NAKANE 6b944396a9 Merge the en version changes made in 1.41 -> 1.42. 1996-12-19 16:49:23 +00:00
KATO Takenori d2db0031ba Add `ep' driver support.
Submitted by:	Naoki Hamada <nao@sbl.cl.nec.co.jp>
1996-12-19 15:48:55 +00:00
Garrett Wollman 992af1d001 Clean up Bill's additions. 1996-12-19 15:42:52 +00:00
Masafumi Max NAKANE 3b6a15b38c 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
David Nugent d9b711b719 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
Bruce Evans 78f64bccfd Fixed setpgid(). Negative pgids were accepted.
Found by:	NIST-PCTS
1996-12-19 13:28:47 +00:00
Bruce Evans a88bd8aae4 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
Masafumi Max NAKANE 0181a94ac9 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
Andrey A. Chernov 9730ef2973 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 Takenori 95d98df162 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
Satoshi Asami 0aa19758df Ay, merge from RELENG_2_2. Back out the "moving HEAD" fix. 1996-12-19 08:55:10 +00:00
KATO Takenori ed933d0050 Synchronize with sys/i386/i386/trap.c revision 1.84 (handle
copyin/out/etc code).
1996-12-19 08:27:33 +00:00
KATO Takenori a413ea0d8a Synchronize with sys/i386/isa/fd.c revision 1.94 (disable disk
statistics support).
1996-12-19 08:17:08 +00:00
Jordan K. Hubbard f7d27d933d 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 Williams 3b92d2dee8 Fixed prototypes of PacketAliasIn/Out. (cosmetic)
Submitted by:	Brian Somers <brian@awfulhak.demon.co.uk>
1996-12-19 00:41:42 +00:00
Alexander Langer df5080050d Hawaii-Five-Typo 1996-12-19 00:26:22 +00:00
Mike Pritchard 0bf179c88e Mention freebsd-security-notifications in the mailing lists section.
Requested by: Guido van Rooij
1996-12-18 22:41:08 +00:00
Mike Pritchard 4a6a66d28c Typo police. 1996-12-18 22:06:47 +00:00
Bill Paul 18fe100709 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
Andrey A. Chernov 7a81e58e55 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 Takenori c463389910 Delete comment for "sbic" driver.
2.2 candidate.
1996-12-18 20:54:22 +00:00
KATO Takenori 1dbf6ded7b Sync with sys/i386/i386/userconfig.c revision 1.78 (amd driver entry). 1996-12-18 20:52:31 +00:00
KATO Takenori a3e2897cd4 Sync with sys/i386/i386/machdep.c revision 1.222 (move printing of
BIOS geometry).
1996-12-18 20:50:44 +00:00
Jordan K. Hubbard 272da3b6c1 Correct some more tortured syntax. 1996-12-18 20:23:40 +00:00
Andrey A. Chernov a49b39f8d4 Fix my popen fix: conditionalize saving/restoring of euid
Should be in 2.2
1996-12-18 20:07:49 +00:00
Andrey A. Chernov 64919fdd33 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
Bruce Evans 8b1f0fa595 Fixed pedantic syntax error. 1996-12-18 19:36:01 +00:00
Bruce Evans 7a1fadc47a Added a missing prototype. 1996-12-18 19:14:35 +00:00
Bruce Evans 959c02787e 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
Bruce Evans 115abf2097 Fixed formatting of KERN_DUMPDEV.
Should be in 2.2.
1996-12-18 18:53:00 +00:00
Bruce Evans 5778f6adb2 Fixed bogus linkage of one of the ddb linker sets. 1996-12-18 17:58:24 +00:00
Bruce Evans f4af388575 Removed references to nonexistent functions log2() and log2f(). 1996-12-18 17:47:03 +00:00
Bruce Evans d43190805d 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
Garrett Wollman fc1a6296a7 Teach mdoc macros to recognize section 9 and the i386 architecture. 1996-12-18 17:43:24 +00:00
Bill Fenner 1cdf4fbe44 Fix generated code for DLT_NULL encapsulation.
This fixes PR#bin/2212.
1996-12-18 17:08:13 +00:00
David Nugent 5e2b47dff1 Much fixed & working digiboard driver. 1996-12-18 16:42:06 +00:00
Jordan K. Hubbard d09b80ec09 Eliminate some tortured text. 1996-12-18 16:39:37 +00:00
Bruce Evans 07addd421e 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
Bruce Evans db7e362115 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
Bruce Evans 729895d0b3 Restored comment about _POSIX_SAVED_IDS from rev.1.2. 1996-12-18 14:02:56 +00:00