Commit Graph

6374 Commits

Author SHA1 Message Date
itojun
29d9058dc7 remove BIND crypto portion, as the license doesn't fit our policy and we do not
import those sources.
2003-10-22 05:56:36 +00:00
drochner
e342c5fcb3 Explain the font loading example a bit better, to avoid a misunderstanding
which caused PR misc/21069.
2003-10-21 14:43:23 +00:00
lukem
130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
agc
68f1651086 Tidy up the previous isdigit(3) boolean check. 2003-10-21 06:34:26 +00:00
fvdl
0526a13bc6 Don't compare an int to NULL. 2003-10-21 03:01:44 +00:00
fvdl
705a39bc93 Don't compare an int to NULL.
Some whitespace nits.
2003-10-21 03:00:41 +00:00
fvdl
1cb8eb7415 Don't compare an int to NULL. 2003-10-21 02:58:50 +00:00
fvdl
03de13db6e Fix a few cases where NULL was used as integral value. 2003-10-21 02:55:43 +00:00
fvdl
cddedd60f8 Don't compare an int to NULL. 2003-10-21 02:53:57 +00:00
fvdl
b6d9b01a54 Don't compare a char to NULL. 2003-10-21 02:53:02 +00:00
fvdl
c40a2514bd Don't pass NULL as an integer. 2003-10-21 02:51:37 +00:00
fvdl
bc6fdb757c Don't compare a char to NULL. 2003-10-21 02:50:41 +00:00
fvdl
e7e0e9e521 Don't return NULL for an integer. 2003-10-21 02:49:07 +00:00
fvdl
82ac6194ae Don't compare an int to NULL. 2003-10-21 02:48:07 +00:00
fvdl
7de4819e2c Don't assign NULL to an integer. 2003-10-21 02:43:37 +00:00
fvdl
5f002aff6f Add missing initializer field. 2003-10-21 02:37:22 +00:00
he
c42a239b5a Make this compile again. 2003-10-19 23:15:54 +00:00
lukem
8233be784c support MAKEVERBOSE 2003-10-19 06:12:07 +00:00
lukem
a414e34de5 support MAKEVERBOSE and use ${HOST_SH} 2003-10-19 06:11:38 +00:00
lukem
6672bff7fc rework how cfparse.y is generated 2003-10-19 06:09:17 +00:00
lukem
eae82b3d06 #define _PATH_BIN_RCMD in common_source/pathnames.h rather than using
wacky Makefile rules to compile rcmd.c
2003-10-19 05:51:44 +00:00
lukem
8545f3b03c Switch back to using YHEADER instead of custom yacc rules.
We use build.sh to support hosting on older NetBSD releases...
2003-10-19 05:30:30 +00:00
lukem
fdffaa3fe5 Implement -r, which prevents syslogd from compressing multiple messages with
the same string into "last message repeated N times", and instead forces
syslogd to write out every message.

Based on '-c' in FreeBSD's syslogd, although a different option letter was
chosen because their syslogd requires '-c -c' to get this functionality,
and we don't have the support for logging to pipes which is what FreeBSD's
syslogd with a single '-c' is related to.
2003-10-17 01:39:25 +00:00
itojun
686afb7f65 safer use of realloc 2003-10-16 06:22:09 +00:00
itojun
33c55cb2ac make use of realloc(3) safe 2003-10-16 06:19:11 +00:00
itojun
a038ecb5ba poll() argument mistake. Tatoku Ogaito 2003-10-16 05:25:51 +00:00
itojun
94a111ae53 safer realloc.
sizeof() for malloc was mistaken in socksetup().
2003-10-16 03:03:04 +00:00
tron
d6dfcb09dd Don't try to compile "vprintf.c" because NetBSD has all the functions
defined there.
2003-10-14 11:49:52 +00:00
lukem
10e10fae7e Instead of requiring that the BPB is always the FAT32 one, check the
first three bytes to determine how much of the BPB to preserve.
Supported values:
	eb 3c 90        FAT16 BPB
	eb 58 90        FAT32 BPB
	(anything else)	don't preserve any BPB

This is because the BPB is generally only the FAT16 one except in the
bootxx_msdos case, where it's the larger FAT32 one.
2003-10-14 09:46:43 +00:00
agc
9f1aac5bb3 Move Jason Downs's code from a 4-clause to a 3-clause licence by
removing the advertising clause.  Diffs provided in PR 22410 by Joel
Baker, confirmed to the board by Jason Downs.

With additional thanks to Jason Thorpe.
2003-10-13 15:36:33 +00:00
dyoung
690ab87058 Use new 802.11 header files. 2003-10-13 08:02:02 +00:00
itojun
912235966a makeargv overrun. from openbsd 2003-10-13 06:14:04 +00:00
dsl
d597578896 Include filename in:
'existing entry for `sha1.h', type `file' does not match type `link'
2003-10-10 11:08:54 +00:00
lukem
58e13fba70 Fix compile error on powerpc. Noted by Juergen Hannken-Illjes in private mail. 2003-10-10 01:50:47 +00:00
lukem
1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
itojun
fdd3180d27 minor KNFs 2003-10-06 09:43:27 +00:00
itojun
e45e8f9d58 use bouded string op as much as possible 2003-10-06 09:18:41 +00:00
lukem
420f3b76ba Replace BP_* with I386_BP_FLAGS_*, for consistency with other stuff in
<sys/bootblock.h>
(CONSDEV_ should be converted as well, but that's more intrusive...)
2003-10-06 05:24:54 +00:00
itojun
d8db5e11b1 sprintf -> snprintf. hints from Thorsten Glaser 2003-10-06 04:19:41 +00:00
lukem
b5589158f0 spelo in comment 2003-10-06 02:39:04 +00:00
grant
d5f2632867 minor style nit 2003-10-06 00:44:15 +00:00
bouyer
7b066791c8 Remove references to University of California from my copyright notices. 2003-10-05 17:48:49 +00:00
wiz
9445c4eef4 Sort names. 2003-10-04 00:53:12 +00:00
wiz
3683b30e87 Add me here, too. 2003-10-04 00:51:31 +00:00
wiz
c87a7072e8 Replace strnncpy calls with strlcpy calls. Remove strnncpy.
Ok'ed by agc and hubertf. Verified working with editors/mule package.
2003-10-04 00:50:34 +00:00
itojun
c4beb9648d sync w/ header file changes 2003-10-03 23:27:31 +00:00
wiz
e2b595e0ce Indent, and remove some #if 0-ed code. 2003-10-03 19:55:34 +00:00
wiz
f13972188c Bump date for previous (oops :) ). 2003-10-03 15:42:22 +00:00
wiz
297eaf11ad Bump version to 20031003 for added HTTP support. 2003-10-03 15:41:03 +00:00
wiz
38e730c27c Add HTTP support.
Thanks to dillo@ for extensive review and jmmv@ for testing.
Remaining bugs are, of course, mine.

Closes PR 10006.
2003-10-03 15:40:27 +00:00