Commit graph

9700 commits

Author SHA1 Message Date
Doug Barton 4c1e476ea1 In the case where /etc/rc.d/ is empty, do not bogusly ask the user if
they want to delete '*'. It turns out that there is one valid case where
this might happen, installing to an empty DESTDIR.

Patch submitted by:	schweikh
2004-03-07 10:10:19 +00:00
Bill Paul d329ad6035 Add preliminary support for PCMCIA devices in addition to PCI/cardbus.
if_ndis.c has been split into if_ndis_pci.c and if_ndis_pccard.c.
The ndiscvt(8) utility should be able to parse device info for PCMCIA
devices now. The ndis_alloc_amem() has moved from kern_ndis.c to
if_ndis_pccard.c so that kern_ndis.c no longer depends on pccard.

NOTE: this stuff is not guaranteed to work 100% correctly yet. So
far I have been able to load/init my PCMCIA Cisco Aironet 340 card,
but it crashes in the interrupt handler. The existing support for
PCI/cardbus devices should still work as before.
2004-03-07 02:49:06 +00:00
Ruslan Ermilov 3a6849a6e8 Set MAKEOBJDIRPREFIX in the environment, like God intended. This
only worked because src/Makefile.inc1 is wrapped by src/Makefile.

Silence from:	dougb
2004-03-06 15:03:21 +00:00
Yoshihiro Takahashi eaeb087233 Use ascii null char ('\0') instead of NULL.
Submitted by:	Stefan Farfeleder <stefan@fafoe.narf.at>
2004-03-05 13:58:40 +00:00
Ralf S. Engelschall d9b3f9e20b fix reference to sysctl variable: machdep.an_cache_mode -> hw.an.an_cache_mode 2004-03-05 08:42:15 +00:00
Mark Murray 16fc3635f7 Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).

There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.

Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".

Tested on: i386 sparc64
2004-03-05 08:10:19 +00:00
Takanori Watanabe 8aabbec241 Fix style breakage.
Noticed by: njl
2004-03-05 02:48:22 +00:00
Tom Rhodes aaa66740bf Eliminate hard sentence breaks.
General markup fixes (use the .Dq macro).
2004-03-04 19:12:27 +00:00
Takanori Watanabe fe27a95e90 Make unprivilaged user can see battery info. 2004-03-04 17:03:49 +00:00
Peter Pentchev c0f7cd1a2a Make rpc.lockd bind to a reserved port, since there are NFS clients
which ignore NLM requests not coming from a reserved port.

PR:		56500
Submitted by:	Jonathan Lennox <lennox@cs.columbia.edu>
MFC after:	1 week
2004-03-04 15:52:28 +00:00
Bruce M Simpson c203da27d5 Add a new option to mountd(8), -p <port>. This allows the user to specify
a known port for use in firewall rulesets; otherwise the port is chosen
at run-time by bindresvport().

MFC after:	1 week
2004-03-04 04:42:52 +00:00
Garance A Drosehn 2adaffb0aa Minor style(9) fixes. remove a register keyword, correct two indents.
Noticed while comparing to OpenBSD version.
2004-03-03 02:44:52 +00:00
Garance A Drosehn 7f761c522e Convert K&R-style routine definitions to C89 style, partially to reduce
diffs with OpenBSD.  This causes no changes to the object produced.
2004-03-03 02:41:21 +00:00
Ken Smith e77e03a08a Add command line option for chrootdir, all pkg_add(8) operations will be
done inside of chroot(2) to chrootdir.  Added to help with sysinstall(8)
support of install to alternate root but possibly useful for setting up
jails, etc.

No objection from:	portmgr@
Style(9) abuse due to:	entire program violates style(9)
Approved by:		rwatson (mentor)
2004-03-01 21:58:21 +00:00
Ken Smith c15f03d381 This is an initial whitespace cleanup commit, new content to follow.
Adding hard line breaks at the end of sentences.

Approved by:	rwatson (mentor)
2004-03-01 21:50:49 +00:00
Philippe Charnier 5904b6fdcc Revert previous change. The effect of -w or -W option is described in
another paragraph.
Obtained from:	David Malone <dwmalone@maths.tcd.ie>
2004-02-29 15:49:26 +00:00
Jens Schweikhardt d6bfbcc360 Make rmuser now also remove ipc resources. Also, fix a few minor
shell style problems (superfluous backslashes at EOL).

PR:		55980
Submitted by:	Chris S.J.Peron <maneo@bsdpro.com>
MFC after:	2 weeks
2004-02-29 09:54:15 +00:00
Max Laier 278445ba35 Add skeleton build dirs for pf userland:
libexec/ftp-proxy	- ftp proxy for pf
 sbin/pfctl		- equivalent to sbin/ipf
 sbin/pflogd		- deamon logging packets via if_pflog in pcap format
 usr.sbin/authpf	- authentification shell to modify pf rulesets

Bring along some altq headers used to satisfy pfctl/authpf compile. This
helps to keep the diff down and will make it easy to have a altq-patchset
use the full powers of pf.

Also make sure that the pf headers are installed.

This does not link anything to the build. There will be a NO_PF switch for
make.conf once pf userland is linked.

Approved by:	bms(mentor)
2004-02-28 21:50:50 +00:00
Maxim Konovalov 4b40c43af8 o Now when the Cold War is ended we can confess our pppd(8) supports
CBCP (Call Back Configuration Protocol).  Document 'callback phone_number'.

Obtained from:	NetBSD (pppd/pppd.8, rev. 1.26)
MFC after:	3 weeks
2004-02-28 21:32:40 +00:00
Poul-Henning Kamp 4103b7652d Rename the WATCHDOG option to SW_WATCHDOG and make it use the
generic watchdoc(9) interface.

Make watchdogd(8) perform as watchdog(8) as well, and make it
possible to specify a check command to run, timeout and sleep
periods.

Update watchdog(4) to talk about the generic interface and add
new watchdog(8) page.
2004-02-28 20:56:35 +00:00
Maksim Yevmenkin 0d60ad30ca Add extra sanity check for SDP packets in libsdp(3)
Fix yet another endianess bug in sdpd(8)
2004-02-26 20:44:55 +00:00
Bruce Evans 487fc28686 Backed out previous commit (bogus addition of -static to CFLAGS).
Sorted macros (in build order).
2004-02-26 06:33:18 +00:00
Maksim Yevmenkin 167bc3861d Fix endianes bug 2004-02-25 22:43:43 +00:00
Philippe Charnier 59b4f7f45e According to source code, under certain conditions, logging goes to the
"auth" facility not "daemon".
Submitted by: "Bill Richter (7X22KEY)" <richterb@binkley.foothill.net>
2004-02-25 20:31:00 +00:00
Poul-Henning Kamp 3531b6f13a Update manual page.
Give 8" example for the heck of it.
2004-02-25 13:55:56 +00:00
Poul-Henning Kamp 9b28b5e64f Recognize "auto" format.
Be more verbose when asked to.
2004-02-25 13:43:39 +00:00
Poul-Henning Kamp 9cee00cf10 Set size field correctly, it is number of sectors on the device, not
number of 512 bytes sectors.

Recognize size == -1 as meaning "auto".
2004-02-25 13:43:17 +00:00
Robert Watson ae5fbd9b53 Add an 'add' command to ugidfw(8), which permits specifying a new
rule without explicitly specifying a new rule number.

Update copyrights, remove license clause three.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, McAfee Research
2004-02-25 03:59:56 +00:00
Ceri Davies fc31408d87 Have edquota honour MAXLOGNAME rather than hardcoding the maximum
username length to 29 characters.

PR:		misc/62944
Submitted by:	David Hill <david@wmol.com>
Approved by:	ru
MFC after:	1 week
2004-02-24 20:58:16 +00:00
Johan Karlsson 604d24db95 style.Makefile(5):
Use WARNS?= instead of WARNS=.
2004-02-23 20:25:27 +00:00
Maksim Yevmenkin 13706e456a Teach rfcomm_pppd(8) how to register Bluetooth LAN service with local sdpd(8)
Add -u(unit) option

Reviewed by:	imp (mentor), ru
2004-02-23 17:30:59 +00:00
Colin Percival 47c524ddd4 Report login attempts to syslog. Due to the statically-linked nature of
nologin(8), this causes a considerable (100K) increase in the binary size,
so I've added a NO_LOGIN_LOG option which disables this.

While I'm here, s/sizeof(MESSAGE)/sizeof(MESSAGE) - 1/, in order to
avoid writing the string-terminating zero byte.

No complaints from: -current
Approved by:	rwatson (mentor)
2004-02-22 10:03:24 +00:00
Hidetoshi Shimokawa 7d72cc5625 Normalize polling interval while the target is offline. 2004-02-20 10:59:46 +00:00
Tim Kientzle 954c1f5807 Clarify the "lp" description to mention port@host syntax.
Suggested by: NetBSD man page
2004-02-19 18:55:55 +00:00
Robert Watson 9835971648 Add "-q" argument to setfmac and setfsmac to allow the patient but
exhausted reader not to see non-fatal warnings.
2004-02-18 05:40:15 +00:00
Maksim Yevmenkin a5066b32bc l2ping(8) should not loose echo data if target does not responds to the ping
Reviewed by:	imp (mentor), ru
2004-02-17 18:37:12 +00:00
Dag-Erling Smørgrav 59b7dcd3d0 Whitespace nit. 2004-02-17 09:59:45 +00:00
Alfred Perlstein aba638209b The callrpc call to unmonitor hosts was passing the wrong xdr
decode/encode functions for the arguments to the statd unmonitor
call.  Fix it.
2004-02-17 00:13:59 +00:00
Poul-Henning Kamp fbbe961c41 Add -d flag to monitor BIO_DELETE operations too 2004-02-15 09:34:08 +00:00
Bruce M Simpson 1922fd129e Initial import of RFC 2385 (TCP-MD5) digest support.
This is the second of two commits; bring in the userland support to finish.

Teach libipsec and setkey about the tcp-md5 class of security associations,
thus allowing administrators to add per-host keys to the SADB for use by
the tcpsignature_compute() function.

Document that a single SPI must be used until such time as the code which
adds support to the SPD to specify flows for tcp-md5 treatment is suitable
for production.

Sponsored by:	sentex.net
2004-02-11 04:34:34 +00:00
Munechika SUMIKAWA 3a53156b9b Flush stdout when -A option is used.
Obtained from:	KAME
MFC after:	1 week
2004-02-10 22:50:57 +00:00
Ian Dowse 1a04497345 Fix a typo that stopped ypset's -h option from working with a
hostname rather than an IP. The code was copying the pointer to the
IP address instead of the IP address itself. The bug has existed
ever since ypset was first imported in 1994.

PR:		bin/62550
Submitted by:	aardvark@saintaardvarkthecarpeted.com
MFC after:	1 week
2004-02-09 00:10:18 +00:00
Jimmy Olgeni d97ec53412 The "bin" distribution was renamed to "base" in CURRENT. 2004-02-07 00:34:11 +00:00
Lukas Ertl 82d4902dc0 Correct typo. 2004-02-06 21:05:42 +00:00
Ruslan Ermilov 47d7e8a96f Fixed style of DPADD and LDADD assignments as per style.Makefile(5). 2004-02-05 22:44:25 +00:00
Johan Karlsson 84d018e017 Fix typo, s/transmitts/transmits/
PR:		62346
Submitted by:	Gavin Atkinson (gavin at ury.york.ac.uk)
2004-02-04 21:59:29 +00:00
Ruslan Ermilov 3ce0bf5144 Removed unnecessary dependencies on librpcsvc.
Prodded by:	des
2004-02-04 11:59:08 +00:00
Ruslan Ermilov 80c49332e2 Put libdevstat before libkvm, because the former depends on the latter. 2004-02-04 10:20:43 +00:00
Ruslan Ermilov c9c69d999e Drop unused dependencies. 2004-02-04 10:18:05 +00:00
Daniel Eischen 4543f32e21 Move the checks for whether or not to build pppctl to
the architecture-dependent sections of the Makefile.

Submitted by:	ru
2004-01-31 22:18:09 +00:00