Commit Graph

33712 Commits

Author SHA1 Message Date
eivind
902c207cbe Better error checking. 1998-12-09 20:49:20 +00:00
dt
36e7b2d133 Don't disable mmap with large file offset. 1998-12-09 20:22:21 +00:00
eivind
ad710cf32b Remove the if fixed in the last commit; bde quite correctly point out
that it can never fail.
1998-12-09 15:12:53 +00:00
jkh
7c5f6dcdaa Don't create unpacked ports on disc2 anymore. 1998-12-09 15:11:11 +00:00
eivind
641b738d6b Back out last change; there was 'fixup' code for the case later.
Noticed by:	bde
1998-12-09 13:48:08 +00:00
eivind
5c8f7298ce Someday I hope people will learn that "#endif" is not a comment
introducer in ANSI C.
1998-12-09 03:30:52 +00:00
eivind
91a38625b4 If we're not going to check returnvalues, it had better be M_WAITOK.
M_NOWAIT -> M_WAITOK in attach.
1998-12-09 03:11:33 +00:00
eivind
49d1ac5fa1 Move the return so that the DEVFS code can execute, too. All code is
equal (it is just that some is more equal than other).
1998-12-09 02:56:48 +00:00
jkh
1882fd1784 Stop erroneously claiming that we're installing booteasy. 1998-12-09 02:46:19 +00:00
eivind
6f06bdea86 Get rid of CTLTYPE_OPAQUE in a SYSCTL_OPAQUE - it is added my the
SYSCTL_OPAQUE macro.
1998-12-09 02:26:45 +00:00
eivind
86febee8db malloc(xxx, yyy, M_WAITOK) does not fail. This probably explains why
the bug in the check had never been discovered.
1998-12-09 02:18:53 +00:00
eivind
b34a047947 Make compare correct with unsigned types. (Problem introduced by Lite/2). 1998-12-09 02:06:27 +00:00
eivind
87b77bae54 Check return value of malloc. 1998-12-09 01:33:03 +00:00
eivind
724d7c869f Bailing out when malloc returns != NULL will not help anybody. 1998-12-09 01:27:29 +00:00
eivind
a64dec0ab9 Adjust prototype to match definition (by adding a 'const'). 1998-12-09 01:12:18 +00:00
eivind
5329b11e77 Fix typo (; in "if (vp == NULL);"). 1998-12-08 23:11:24 +00:00
billf
03984695da Balance the brackets.
PR:		docs/8505
Submitted by:	Kazuo Horikawa <horikawa@jp.FreeBSD.org>
1998-12-08 22:49:08 +00:00
billf
7d5e17f4cb Use quotes around the first_line variable so C comments and other things
that are misinterpreted by echo(1) aren't.

PR:		docs/8757
Submitted By:	Takeshi OHASHI <ohashi@mickey.ai.kyutech.ac.jp>
		Sergei Laskavy <laskavy@gambit.msk.su>
1998-12-08 22:09:05 +00:00
archie
d7fdb041bc Fix a new bug introduced by the previous bug fix 1998-12-08 21:29:22 +00:00
eivind
e7cc31360e Better error checking. 1998-12-08 20:41:05 +00:00
cracauer
5fed15f43e Add -s option, just report size of file that would be fetched.
Reviewed by:	-current list
1998-12-08 13:00:49 +00:00
kato
e6cab8a65d Use CNAME macro for pc98_system_parameter, which is referenced from C
source.

Submitted by:	Masanori Kanaoka <kana@saijo.mke.mei.co.jp>
1998-12-08 10:22:31 +00:00
bde
703e6af685 Backed out the FIOASYNC fix in rev.1.108. fcntl(fd, F_SETFL, flags)
depends on the bug.  It does an FIOASYNC ioctl to sync the setting
of the O_ASYNC "file" flag with drivers even if the setting hasn't
changed.

PR:		9003
1998-12-08 10:22:07 +00:00
kato
6d18baeed4 Sync with sys/i386/conf/Makefile.i386 revision 1.130. 1998-12-08 08:19:45 +00:00
kato
a16a8d27ed Sync with sys/i386/isa/fd.c, if_fe.c, npx.c and sio.c revisions 1.126,
1.44, 1.63 and 1.219, respectively.
1998-12-08 08:18:59 +00:00
kato
b9d6f1d99a Sync with sys/i386/i386/userconfig.c revision 1.117. 1998-12-08 08:17:43 +00:00
archie
523b5bfd23 Automatically detect a.out vs. elf kernel 1998-12-08 08:14:37 +00:00
jkh
5f7a88f39d DOH! Name the mfsroot contents properly.
Noticed by:	"Sean O'Connell" <sean@stat.Duke.EDU>
1998-12-08 00:14:51 +00:00
imp
247cdb91cf If there is no .depends file, use the standard ad-hoc way of ensuring
that the generated files are generated before any of the object files.
Also minor cleanup of dependencies in conf/files that I bogusly added
before.

This should fix the requirement that make depend be done starting from
a clean config directory.  If you don't have a clean directory, make
depend is still required if you want the proper .o's to be recompiled.

Reviewed by: bde
1998-12-07 22:36:54 +00:00
archie
84bd80a4f9 The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.
1998-12-07 21:58:50 +00:00
wpaul
4e324e76dc Un-revert typo fix (fauled -> failed). This is what I get for not
keeping my local RCS files in sync with the rest of the world.

Caught red-handed by: bde
1998-12-07 18:14:30 +00:00
eivind
45469c557d Fix grouping of statements. This remove a potential panic in the soft
updates code.  While I'm here, remove an unintended trigraph.

Reviewed by:	Kirk McKusick <kirk@freebsd.org>
1998-12-07 17:23:45 +00:00
eivind
395364fd59 Propagate unsignedness to all variants of 'k', and reorganize the
conditionals to be fully resistent against overflow in unsigned
computations.

Potential problem pointed out by:	bde
Reviewed by:				bde
1998-12-07 16:31:15 +00:00
ache
e2b7c19122 unlocalize date
Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
1998-12-07 16:17:41 +00:00
rnordier
7b46a55739 Use '#' flag in place of "0x" in format strings. 1998-12-07 14:09:17 +00:00
bde
63eaa8e5a1 Don't put compiler warning flags in leaf Makefiles. 1998-12-07 12:50:48 +00:00
bde
5f8d3f0bd8 CFLAGS+= -Wall -Wformat for all of src/bin. All warnings except 2 minor
ones in rmail have been fixed.
1998-12-07 12:44:12 +00:00
bde
5b011afdf7 Fixed printf format errors. 1998-12-07 12:37:11 +00:00
bde
7cc3c52e40 Fixed warnx format errors in printf and csh, and snprintf format errors
in sh, by using separate macros for the 1, 2 and 3-arg calls to warnx.
(The 3-arg warnx macro in sh/bltin/bltin.h used to require bogus dummy
args.)
1998-12-07 12:14:04 +00:00
bde
f32e55c042 Removed unused include of <kvm.h>. It was alarming for libc to apparently
depend on libkvm.

Removed obsolete `#define _NEW_VFSCONF'.
1998-12-07 11:26:28 +00:00
bde
67c1d3cb36 Fixed -Wall regression (broken in rev.1.12). Removed unused includes. 1998-12-07 10:25:48 +00:00
bde
3d87ed2173 Fixed printf format errors (new bugs in rev.1.7). Fixed a spelling error
(rev.1.7 blew away most of rev.1.2-1.6; I'm only fixing blowing away of
rev.1.4).
1998-12-07 10:16:58 +00:00
ache
2ec5c25e9f Move stime declaration to main block, otherwise can left uninitialized
in rare cases.
Found by: Eivind Eklund <eivind@yes.no>
1998-12-07 07:59:20 +00:00
archie
237fe32934 Disallow ipfw "tee" rules until it is actually implemented.
PR:		bin/8471
1998-12-07 05:54:37 +00:00
eivind
c2339d86e3 Clean up some pointer usage. 1998-12-07 05:41:10 +00:00
archie
74c91a262b Fix brokenness compiling "s/pat/subst/" when length of subst is >= 4090 chars.
PR:		bin/7939
1998-12-07 05:35:54 +00:00
archie
00fc8f968b Compile -Wall 1998-12-07 05:33:39 +00:00
eivind
0a6d9e931e Remove guard for < 0 on an unsigned variable. 1998-12-07 03:26:34 +00:00
eivind
fe0eb54c13 '\0' is the most ugly NULL pointer constant I've ever seen in real code. 1998-12-07 02:47:46 +00:00
wpaul
2d8e0a50a1 if_rl.c: make a small tweak to properly handle the Accton MPX 5030/5038
as a RealTek 8139
if_rlreg.h: use bus_space_read_X() in CSR_READ_X() macros instead of
            directly calling inb()/outb() etc...
rl.4 + RELNOTES.TXT: mention that SMC EtherEZ PCI 1211-TX is supported
                     by the RealTek driver
1998-12-07 00:35:06 +00:00