Commit Graph

4033 Commits

Author SHA1 Message Date
peter d595622625 Add .An -nosplit to the beginning of the section.
Suggested by Thomas Klausner.
2005-06-23 12:01:48 +00:00
peter 96c9cff75c Use .An name Aq email. 2005-06-23 11:00:47 +00:00
fvdl a33a5a18b5 If HOSTPROG is empty, do not pull in libutil, since we do not need it in that
case, and several host platforms do not have libutil. Fixes the build of
these programs as host tools on platforms without libutil.
2005-06-23 00:54:47 +00:00
thorpej 65412a2710 Implement expansion of special "magic" strings in symlinks into
system-specific values.  Submitted by Chris Demetriou in Nov 1995 (!)
in PR kern/1781, modified only slighly by me.

This is enabled on a per-mount basis with the MNT_MAGICLINKS mount
flag.  It can be enabled at mountroot() time by building the kernel
with the ROOTFS_MAGICLINKS option.

The following magic strings are supported by the implementation:

	@machine	value of MACHINE for the system
	@machine_arch	value of MACHINE_ARCH for the system
	@hostname	the system host name, as set with sethostname()
	@domainname	the system domain name, as set with setdomainname()
	@kernel_ident	the kernel config file name
	@osrelease	the releaes number of the OS
	@ostype		the name of the OS (always "NetBSD" for NetBSD)

Example usage:

	mkdir /arch/i386/bin
	mkdir /arch/sparc/bin
	ln -s /arch/@machine_arch/bin /bin
2005-06-23 00:30:28 +00:00
dyoung 9063402978 Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD.  Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]).  Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
2005-06-22 06:14:51 +00:00
peter a9b411c198 Change all .Xr config 8 to .Xr config 1, following the recent move of
config from usr.sbin -> usr.bin.

Reviewed by wiz.
2005-06-20 13:25:23 +00:00
wiz a2074cd992 Quote Fr so options are sorted properly. 2005-06-19 17:24:20 +00:00
wiz 9a425d58bc Remove superfluous .El; a slight wording change. 2005-06-19 16:01:38 +00:00
wiz 6aa388dc21 Incorporate my review comments. 2005-06-19 16:00:26 +00:00
lukem 5054440f25 be consistent in XXXGCC -Wuninitialized fixes ... 2005-06-18 01:33:16 +00:00
dsl 506fe1826c Rip out the support for writing bootstrap code. installboot(8) contains
support for hp300, hp700 and vax, $MACHINE is never arm32.
Fix usage output to only contain progname() once - bug introduced in rev 1.89
2005-06-17 21:20:18 +00:00
jmc 96839ff18e Mark an sh3 gcc unitialized variable w. XXGCC 2005-06-16 20:39:33 +00:00
christos 29a6465002 Add code to handle cp_id. From atatat. 2005-06-16 14:56:36 +00:00
dsl 37bbe98710 Remove the never changed 'bootxx' variable 2005-06-15 20:49:41 +00:00
dsl efb521dba8 Rip out the references to the installation of more than one bootstrap file.
Only arm32 needs the -B stuff at all, all other ports use installboot(8).
2005-06-15 20:31:47 +00:00
dsl f74e227614 Remove all the code that was under 'NUMBOOT > 1' nothing has set that for
a long time.
2005-06-15 20:19:03 +00:00
christos e0db7c68ff WARNS=4, misc cleanups.
- void casts
- remove unused notreached
- use a loop instead of code duplication
- use switches and #define constants
2005-06-15 20:03:03 +00:00
peter d191390e9e fix the date, use .An for names, correct the name (scanffs -> scan_ffs),
.Ox/.Nx for OpenBSD/NetBSD, mention appearance in NetBSD.
2005-06-15 19:02:54 +00:00
kleink 4a74bb7497 Use EXIT_{SUCCESS,FAILURE}. 2005-06-15 18:42:23 +00:00
kleink 32f2d508d6 No need to define SRCS here. 2005-06-15 18:39:46 +00:00
xtraeme b67b8509c2 Add scan_ffs(8) from OpenBSD, it was modified to support FFSv2
for NetBSD (with different blocksizes). Utility to find
FFSv1 and FFSv2 partitions on disks, useful to recover lost
disklabels.

Reviewed by christos.
2005-06-15 18:06:19 +00:00
peter c05a028e3d Remove the SECURITY CONSIDERATIONS section which stated that the
implementation didn't used a good random generator, this is not true
anymore since arc4random(3) is used these days.

Pointed out by Jeff Ito in PR/30321
2005-06-14 14:02:12 +00:00
elad db6ca056ee Some refactoring and bugfixes:
- Report line numbers correctly.
  - Don't perform a 2nd pass when there are were errors during 1st.
  - Support multiple, comma-separated flags. This is mostly a reworking of
    some parser internals preparing for planned features.
2005-06-13 15:18:44 +00:00
wiz 8dcbfbbb96 Bump date for previous. 2005-06-13 13:07:56 +00:00
elad 471eb59186 Remove bits about deprecated 'fingerprints' command. 2005-06-13 13:05:29 +00:00
dyoung 1726c417de Make disklabel(8) into a host-tool, "nbdisklabel." Move disklabel.c
to main.c to avoid a name collision with lib/libc/gen/disklabel.c
when we build nbdisklabel.  Still todo: commit host-tool build
infrastructure to src/tools/disklabel/.
2005-06-12 19:18:34 +00:00
dyoung 4580f13f42 Turn fdisk(8) into a host tool. Still todo: commit the host-tool
build infrastructure to src/tools/fdisk/.
2005-06-12 19:14:10 +00:00
dyoung 023801f122 For portability, use standard types: s/uint/unsigned int/,
s/ulong/unsigned long/, s/u_int8_t/uint8_t/.
2005-06-12 19:06:43 +00:00
christos 85a5de064c Remove some const. This is better than using __UNCONST at the second
argument of swapctl.
2005-06-12 16:24:20 +00:00
dbj 36c3355e33 add code to handle inodes with extended attribute blocks
this is currently turned off with "#ifdef notyet" since the
kernel will not correctly clean up extended attribute blocks on truncation

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2005-06-08 20:34:06 +00:00
perseant 4b8db8388e Use the correct method to create a new inode, when we allocate lost+found.
Correct uninitialized variable issues in pass6.c and dir.c (PR#30411 and
PR#30394, respectively).
2005-06-08 19:09:55 +00:00
he 2e34fff7c9 Add an initialization to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while building for it).

Reviewed by lukem.
2005-06-07 09:10:33 +00:00
he e82dc5dc94 Initialize metalbn in ufs_getlbns to appease -Wuninitialized.
Marked with XXXGCC for dreamcast (found while compiling for it).

Reviewed by lukem.
2005-06-07 09:08:07 +00:00
lukem 1ab5811713 Disable -Wuninitialized on dir.c (until PR 30394 is addressed)
and pass6.c (until PR 30411 is addressed)
2005-06-03 18:02:03 +00:00
elad 0f9ec14004 No need for this one, apparently. Reported by Hisashi T Fujinaka. 2005-06-03 16:12:07 +00:00
elad 055b86e224 Don't create duplicate tables for the same device. 2005-06-03 13:21:35 +00:00
snj d3df836a71 Fix a typo in a comment. 2005-06-03 03:34:44 +00:00
dbj 3b7cb4bd57 ufs2 disk addresses in dp2->di_db[] must be swapped with bswap64, not bswap32 2005-06-03 01:10:50 +00:00
lukem 658ed3362c appease gcc -Wuninitialized 2005-06-02 01:35:57 +00:00
lukem 2d447a3b0c Avoid dereferencing/free()ing invalid pointers if the random device
cannot be opened.
Detected with gcc -Wuninitialized.
(The bug was fixed in rev 1.4 by rumble but reintroduced in rev 1.5 by tv !)
2005-06-02 01:31:30 +00:00
lukem 230e9bea1f Use ai_nfs instead of the uninitialized ai when determining the NFSMNT_KERB
reverse IP address, and ensure ecode is set as well.
Detected with gcc -Wuninitialized.
(The bug was introduced in mount_nfs.c rev 1.25.  Hi fvdl! :)
2005-06-02 01:24:45 +00:00
dbj ab963542e1 for ufs2, assume FS_44INODEFMT
this is necessary for freebsd compatbility, since they do not initialize
the old field.
2005-06-02 01:23:19 +00:00
lukem 620037ae2b Ensure verbose is initialized before using it.
Detected by gcc -Wuninitialized.
2005-06-02 01:16:06 +00:00
lukem 2b11c546a4 appease gcc -Wuninitialized 2005-06-02 01:02:21 +00:00
lukem a0618cd165 appease gcc -Wuninitialized 2005-06-02 00:48:48 +00:00
lukem 700088dc7f appease gcc -Wuninitialized 2005-06-02 00:38:41 +00:00
lukem 86716480cb appease gcc -Wuninitialized 2005-06-02 00:15:02 +00:00
lukem 925bd672b3 Ensure that "setcache <mode>" doesn't use random data for "byte2"
("setcache <mode> save" DTRT).
Found by gcc -Wuninitialized.

Appease other -Wuninitialized warnings.
2005-06-02 00:13:10 +00:00
lukem 9a1b8a3b7b appease gcc -Wuninitialized 2005-06-02 00:01:47 +00:00
lukem 2cd106ee37 Fix an uninitialized variable issue.
Found with gcc -Wuninitialized.
2005-06-02 00:00:46 +00:00