Commit Graph

4061 Commits

Author SHA1 Message Date
ginsbach d313757b82 * Exit non-zero error code when flushroute() fails operating on the
routing socket, e.g. running route flush as non-root.

* When quiet (-q) don't append error string to a non-existent
  diagnostic output (stdout).  The error diagnostic is still written
  to stderr.  [from FreeBSD]

* Use warn(3) in place of perror(3).
2005-07-15 21:29:54 +00:00
he 36fc2f101b Add const to a duplicate declaration of sd_state(). 2005-07-05 22:21:38 +00:00
wiz d0b93cc137 Mark up more paths with .Pa, and
break a line (<=80 chars per line).
2005-07-01 17:07:33 +00:00
snj 23b31bb2ee Use more macros and sort xrefs. 2005-06-30 21:36:34 +00:00
christos fdfc4891f9 Patch from Jeremy Reed to describe how MFS /dev works. Thanks! 2005-06-30 16:38:06 +00:00
drochner 5597e3b8c5 add some (long long) casts to printf() arguments to avoid
gcc warnings
2005-06-30 12:18:16 +00:00
he fb84548b30 Allow this to build under -Wcast-qual -Werror by adding const to a few
variables/fields initialized to point to string constants.
2005-06-28 18:14:45 +00:00
christos cc9c2b575d - constify.
- don't dup extern declarations on each file because they end up being
  inconsistent (yyerror).
2005-06-27 03:07:45 +00:00
christos acdcf67bb0 constify. 2005-06-27 02:56:20 +00:00
christos 9be35a638f more const. 2005-06-27 02:49:32 +00:00
christos e0dd0ca293 constify 2005-06-27 02:48:28 +00:00
christos e4b2253c50 add const. 2005-06-27 02:05:30 +00:00
christos 58874431a5 add const 2005-06-27 02:03:28 +00:00
christos cb1c4f11bb sprinkle const. 2005-06-27 01:55:52 +00:00
christos 64747563b4 sprinkle const 2005-06-27 01:37:32 +00:00
christos c236bddb0f sprinkle const. 2005-06-27 01:25:35 +00:00
christos 2c6eadc9ce Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
2005-06-27 01:00:04 +00:00
christos 042582c125 more const. 2005-06-26 23:04:19 +00:00
christos 97880e96ed constify. 2005-06-26 23:01:39 +00:00
christos 6499bd69c1 constify. 2005-06-26 22:45:50 +00:00
christos 79f5327ef7 This is the textbook example of why global variables are harmful. Fix multiple
shadowing warnings for variables with the same name used both in global and
local context. Really this needs either to rename all the global variables
something different (prefix them with gl_ or something) or even better get
rid of them altogether.
2005-06-26 22:36:55 +00:00
christos a9274bf3fb Don't abuse writing to const strings. We can pass const strings to this,
and we write to them. Allocate memory instead.
2005-06-26 21:43:33 +00:00
christos dea4bd707c const poisoning. 2005-06-26 21:28:15 +00:00
dyoung 256aff6693 Teach route(8) to print the messages generated by net80211. 2005-06-25 06:38:35 +00:00
hubertf 6912ea355e it is iso8859, not 8869 2005-06-24 23:35:06 +00:00
wiz 4e5ff88a4c Bump date for previous. 2005-06-24 11:39:11 +00:00
peter fb059bb119 Note that flag -a is obsolete. Thanks to Darrin B. Jewell.
Should fix PR/26883 from Hauke Fath.
2005-06-24 11:28:54 +00:00
xtraeme ddd459d409 Add missing '\n' into usage(). 2005-06-23 17:25:31 +00:00
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