Commit Graph

9919 Commits

Author SHA1 Message Date
Max Khon
722724d1d4 Fix examples. 2004-04-13 19:31:21 +00:00
Max Khon
02eb96c884 Use ifconfig(8) for setting common 802.11 parameters.
Submitted by:	Stanislav A. Svirid <count@riss-telecom.ru>
2004-04-13 19:25:26 +00:00
Luigi Rizzo
68839124b6 Massive cleanup of the code removing global variables to
pass function arguments and results.

Hopefully no functional changes except fixing a couple of
bugs which could cause endless loops if an ioctl() on an
interface would fail.
2004-04-13 14:16:37 +00:00
Luigi Rizzo
a7a0612913 Back out previous commit, it was unintentional.
Keep WARNS at 3 though the code does compile with WARNS=5 at least on i386

Noticed by: ru
2004-04-13 11:45:28 +00:00
Luigi Rizzo
0b46c08590 Replace ROUNDUP/ADVANCE with SA_SIZE 2004-04-13 11:24:43 +00:00
Luigi Rizzo
bdf932ae27 Make functions and variables static.
Remove global variables in favour of local ones.
Fix indentation of a couple of switch statements.

Overall, this program badly need cleaning up, as it relies
on information passed around through global variables.
2004-04-13 08:34:52 +00:00
Ken Smith
a2bb60d180 Sync list of FTP sites with current reality.
MFC after:	1 day
Approved by:	rwatson (mentor)
2004-04-12 13:21:46 +00:00
Maksim Yevmenkin
6490c2ffab Start committing Bluetooth HID (Human Interface Device) support.
Note: bthidd(8) is still not complete. Need to commit kernel
support (a-la Linux /dev/input) to feed HID events into kernel.
Also need to write bthidd(8) and bthidd.conf(5) man pages.
2004-04-10 00:18:00 +00:00
Maksim Yevmenkin
079a8a3e69 Use uint instead of u_int 2004-04-09 23:58:53 +00:00
Maksim Yevmenkin
4ae439a316 Make sure Bluetooth stuff can be compiled on amd64
Submitted by:	ps
2004-04-09 23:01:42 +00:00
Maxim Konovalov
efccc7dc25 o SIOCGIFCONF->getifaddrs(2) conversion.
PR:		bin/9379
Obtained from:	NetBSD
2004-04-09 16:59:05 +00:00
Maxime Henrion
e2416749bf - Change several errx() calls that should have been err() calls.
- Handle empty ARP tables properly.
- Remove register keyword.
- arp(8) is WARNS?=4 clean, so mark it as such to avoid regressions.
2004-04-09 14:27:28 +00:00
Tim Kientzle
b1782cbaa9 When invoking tar, make sure the mode option (-x) is first. 2004-04-08 06:06:42 +00:00
Tom Rhodes
fba821806a This manual page will not first appear in 4.10 as RELENG_4 has a different
version of the adduser utility.

Noticed by:	simon
2004-04-07 22:16:04 +00:00
Poul-Henning Kamp
cbf67506f6 Make WARNS=5 clean.
Prodded by:	Stefan Farfeleder <stefan@fafoe.narf.at>
2004-04-05 08:15:04 +00:00
David Malone
48135410c1 The list of (key,value) pairs to request_init is terminated by a 0 key,
not NULL.

Submitted by:	Stefan Farfeleder <stefan@fafoe.narf.at>
MFC after:	3 days
2004-04-04 21:32:23 +00:00
Philippe Charnier
1c38ed81bc Add FBSDID. Use getopt(3). 2004-04-04 19:46:14 +00:00
Philippe Charnier
09126709ec Add FBSDID. err(3) changed to errx(3) because there is no errno message
to print in this context.
2004-04-04 19:38:08 +00:00
Philippe Charnier
fdf1bad4e0 2 small typos. 2004-04-04 19:30:07 +00:00
Philippe Charnier
66e338b333 Do not :-terminate err(3) string, one will be added anyway. 2004-04-04 19:25:39 +00:00
David Malone
de06a3982c If the user doesn't specify a device and we can't open any of the defaults,
don't print an error using a uninitialised devbuf.
2004-04-01 16:37:46 +00:00
Bruce M Simpson
457180a40d Unbreak the build by dealing with an unexpected dependency on tcpdump source
present in ndp(8).

The vendor branch import uses a _U_ macro to apply the GCC 'unused' attribute
to the rcs ids embedded in each source file.  Teach ndp about this.
2004-03-31 20:58:39 +00:00
Bruce M Simpson
1ba19fe8ce Fix regression in setkey whereby parser would fail to recognise tcp as
both a security protocol and an upper level protocol for encapsulation.

PR:		bin/63616
Submitted by:	ume@
2004-03-31 18:38:02 +00:00
Bruce M Simpson
9661523edf Merge of tcpdump 3.8.3 from tcpdump.org. 2004-03-31 15:00:44 +00:00
Tom Rhodes
4f1d74f1bc Fix today's faux pas by:
Removing the -compact option passed to .Bl macro to avoid useless .Pp macros;
Adding a missing period;
Using .Xr with .Nd since makewhatis(1) has no support for cases where the Xref is absent.

Informed by:	ru
2004-03-30 22:31:22 +00:00
Tom Rhodes
00de0ec339 Add an adduser.conf manual page.
Hook it to the build in Makefile.
Xref from adduser.8.
Update adduser.8's BUGS section.
Bump the date on adduser.8.
2004-03-30 21:50:42 +00:00
Colin Percival
6a73df6f3f Synopsis fixes:
* `pkg_info -flags' needs either `-a' or a package name. [1]
 * Add -Q option to manual page.
 * Update `usage:' to match the manual page.

PR:		misc/64786 [1]
Reviewed by:	ru
MFC after:	3 days
2004-03-30 20:48:16 +00:00
Simon L. B. Nielsen
e734927e56 Add a cross reference to exports(5). While exports is not directly
tied to nfsd(8), exports is the configuration file users will most
likely need to configure when dealing with a NFS server.

Submitted by:	Florian Hars <hars@bik-gmbh.de>
PR:		docs/64714
MFC after:	3 days
2004-03-30 20:43:07 +00:00
Colin Percival
680500334e Sychronize with reality: nologin(8) is now in /usr/sbin
Reminded by:	trhodes
2004-03-30 19:24:56 +00:00
Ruslan Ermilov
9137d52af5 Sync manpage's synopsis with usage(). 2004-03-30 07:37:04 +00:00
Yoshihiro Takahashi
1a06a03cb8 Add PC98 supports.
Submitted by:	Watanabe Kazuhiro <CQG00620@nifty.ne.jp> (mostly)
2004-03-28 13:42:27 +00:00
Ceri Davies
9af414d156 Correct typo in the last revision. 2004-03-27 14:23:25 +00:00
Ruslan Ermilov
8482be06ec -N without -M is pointless. 2004-03-26 09:28:03 +00:00
Ruslan Ermilov
0b46bb97a7 Update information of how pstat(8) accesses the running system. 2004-03-26 09:04:48 +00:00
Ceri Davies
687c7280ef Note that only one webnfs share is allowed per NFS server.
PR:		docs/45371
Submitted by:	Mattias Pantzare <pantzer@ludd.luth.se>,
		Matthew D. Fuller <fullermd@over-yonder.net>
MFC after:	2 days
2004-03-22 21:05:57 +00:00
David Malone
bcd4c5746a On startup, warn if inetd's config file doesn't exist. This isn't
exactly the same as patch from the PR, which also exited if the
config file was missing. I didn't use Jeff's patch because I was
worried that some people might start inetd, create the config file
and then HUP inetd.

PR:		60806
Submitted by:	Jeff Ito <jeffi@rcn.com>
MFC after:	2 weeks
2004-03-22 12:01:23 +00:00
Ruslan Ermilov
ec57a38507 Fixed a warning. 2004-03-17 20:10:59 +00:00
Christian Brueffer
535277d5e8 Fix typo 2004-03-17 14:07:44 +00:00
Christian Brueffer
1e3082a5fc o Start sentences on new lines
o misc format fixes
2004-03-17 14:06:57 +00:00
Christian Brueffer
b4f0219958 Language cleanup 2004-03-17 13:55:40 +00:00
Yoshihiro Takahashi
d67e2df265 Move the _arlconfig define in the existing i386 section.
Suggested by:	ru
2004-03-17 08:50:17 +00:00
Max Khon
456f076f01 Implement "arlconfig arlX quality".
Man pages fixes.

Submitted by:	Stanislav A. Svirid <count@riss-telecom.ru>
2004-03-16 22:29:26 +00:00
Max Khon
f02660b050 Fix copyrights and mandoc markup.
Pointed out by:	ru
2004-03-16 21:03:25 +00:00
Dag-Erling Smørgrav
8dc2098fc7 Use void * instead of char * to avoid violating C99 strict aliasing rules. 2004-03-16 20:45:37 +00:00
John Baldwin
707e509a1e Change libdisk and sysinstall to use d_addr_t rather than u_long for disk
addresses.  For arch's with 64-bit longs, this is a nop, but for i386 this
allows sysinstall to properly handle disks and filesystems > 1 TB.

Changes from the original patch include:
- Use d_addr_t rather than inventing a blkcnt type based on int64_t.
- Use strtoimax() rather than strtoull() to parse d_addr_t's from config
  files.
- Use intmax_t casts and %jd rather than %llu to printf d_addr_t values.

Tested on:	i386
Tested by:	kuriyama
Submitted by:	julian
MFC after:	1 month
2004-03-16 17:07:06 +00:00
Mike Makonnen
0d640c0d4b o Add an -S option to not attempt to ascertain the validity of a shell.
o Add a -D option to not attempt to create the home directory.
o Treat the /nonexistent home directory specially. It means the user has
  no home directory and it should not be created.
o Update Copyright year and my email.
2004-03-16 13:46:29 +00:00
Yoshihiro Takahashi
b6e2fc3793 The arlconfig is needed on i386 only. 2004-03-16 12:46:14 +00:00
Max Khon
798f0e1603 Add arl(4): driver for Aironet Arlan 655 wireless adapters.
MFC after:	2 weeks
2004-03-15 22:24:28 +00:00
Dag-Erling Smørgrav
76798703a5 Remove bogus (void **) casts. This unbreaks the -O2 build. 2004-03-15 17:43:36 +00:00
Warner Losh
2c87f688cd The gsc driver has been retired, so retire its control program. 2004-03-14 22:47:02 +00:00
Warner Losh
f1e5dca6e0 These go along with the stl and stli drivers, recently removed. 2004-03-14 06:52:22 +00:00
Peter Wemm
f8325b428c Re-kill ispcvt on amd64 - rc.d/syscons was fixed ages ago. 2004-03-13 22:18:34 +00:00
Colin Percival
5de697a634 Don peril-sensitive glasses and throw the switch to move nologin(8) from
/sbin to /usr/sbin.  A symlink from /sbin/nologin -> /usr/sbin/nologin
is created for compatibility purposes.

This will probably not cause any problems, but anyone who is doing
anything particularly unusual with nologin(8) or shells in general might
be well advised to check that everything still works.

Bikesheds on:	cvs-all, current
2004-03-13 11:02:37 +00:00
Colin Percival
0bf534c254 Add missing spaces after "logconfig" in example lines.
PR:		docs/64082
Submitted by:	Tsurutani Naoki
MFC after:	3 days
2004-03-13 09:51:43 +00:00
Colin Percival
3590bb99a0 Add standard copyright notice; fix style bugs. (Reported by bde)
Remove NO_NOLOGIN_LOG option now that we're off the root partition.
2004-03-13 04:41:40 +00:00
Colin Percival
432b2d9531 When nologin(8) is installed in /usr/sbin/, create a symlink from
/sbin/nologin for compatibility purposes.  Also, remove the NO_NOLOGIN_LOG
option; we don't need to worry about conserving space as much on the /usr
partition.

Note that usr.sbin/nologin is not yet hooked up to the build.
2004-03-13 04:39:45 +00:00
Tom Rhodes
491abe5ac7 Move newsyslog.conf.5 to usr.sbin/newsyslog. There is no real history
other than 'initial revision' thus I did not request a repocopy.

Requested by:   ru, gad
2004-03-12 16:03:26 +00:00
Bruce Evans
b3eb982698 Unremoved a used variable in the PCCARD_ARCH case.
Reported by:	tinderbox
2004-03-12 15:28:13 +00:00
John Baldwin
c686ba3b94 Remove unused variables. 2004-03-11 18:50:05 +00:00
Bruce Evans
03f0d9e8ae Fixed assorted misuses of NULL in integer context. 2004-03-11 11:58:16 +00:00
Bruce Evans
8153ab0e6f Fixed mispellings of '\0' as NULL. 2004-03-11 11:41:54 +00:00
Tom Rhodes
ef4b3aa2e3 Remove information about the configuration file.
Add an Xref to newsyslog.conf.5 and bzip2.1.
2004-03-11 04:32:16 +00:00
Bruce Evans
c88f8102e3 Fixed a misspelling of 0 as NULL. 2004-03-10 08:46:39 +00:00
John Baldwin
ccac9da43b Make libgeom usable by C++ programs:
- Add DECL wrappers to libgeom.h.
- Rename structure members in libgeom.h to use a lg_ prefix for member
  names.  This is required because a few structures had members named
  'class' which made g++ very unhappy.
- Catch gstat(8) and gconcat(8) up to these API changes.

Reviewed by:	phk
2004-03-09 21:14:18 +00:00
Max Laier
8d69c48be5 Link pf to the build and install:
This adds the former ports registered groups: proxy and authpf as well as
the proxy user. Make sure to run mergemaster -p in oder to complete make
installworld without errors.

This also provides the passive OS fingerprints from OpenBSD (pf.os) and an
example pf.conf.

For those who want to go without pf; it provides a NO_PF knob to make.conf.

__FreeBSD_version will be bumped soon to reflect this and to be able to
change ports accordingly.

Approved by:	bms(mentor)
2004-03-08 22:03:29 +00:00
Ken Smith
fc1007e186 Shift file locking to source file instead of temp file. This fixes
data buffering issue that corrupts files if two pw(8)'s run at the
same time as well as changing pw(8) so it uses the same locking
mechanism as PAM, vipw(8), pwd_mkdb(8), etc.

PR:		bin/23501
Submitted by:	Alex Kapranoff <alex (at) kapran (dot) bitmcnit (dot) bryansk (dot) su>
Approved by:	rwatson (mentor)
MFC after:	5 days
2004-03-08 20:31:37 +00:00
Garance A Drosehn
e3b218cd7b Add a check for wtmp records which have invalid values for ut_time. Wtmp
records with time==0 get "the time of the last valid record", while records
where time goes backwards (compared to the previous record) are skipped.
Also prints a message saying how many records were changed or skipped due
to these checks. Check was inspired by a simpler check in OpenBSD's version.

This is all meant to sidestep problems that Tillman Hodgson noticed with 'ac'
when running sparc64 with 64-bit time_t's.  The real problem is whatever is
creating wtmp records with ut_time==0, of course, but I have not yet figured
out what is doing that.

Reviewed by:	no screams from freebsd-sparc64 or bde
MFC after:	2 weeks
2004-03-08 20:02:23 +00:00
Garance A Drosehn
c38a857969 Compile 'ac' with DEBUG when arch==sparc64. 2004-03-08 20:01:34 +00:00
Garance A Drosehn
b5a06c256e Add a debug-statement from NetBSD, and then rework all debug-statements
so the program compiles without errors or warnings when DEBUG is defined on
sparc64 with 64-bit time_t's.  Also have debug statements include the year
when printing records from a different year than 'now'.  Also print out a
special timestamp in debug statements when ut_time==0.

Reviewed by:	freebsd-sparc, bde
MFC after:	2 weeks
2004-03-08 19:20:06 +00:00
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
Ian Dowse
9323dbdb0a Use strtol to parse the <%d> tags in printline() and printsys().
Sort local variables declarations in these functions.

Submitted by:	bde
2004-01-31 17:44:27 +00:00
Marcel Moolenaar
387c10289f Apply s/LIBC_R/LIBPTHREAD/ to the DPADD variable. The LDADD variable
already had s/libc_r/libpthread/ applied to it.
2004-01-31 17:28:09 +00:00
Daniel Eischen
82e9039964 Add some logic so that pppctl isn't built if the correct threading library
is not present.

Noticed by:	ru
2004-01-31 17:12:05 +00:00
Daniel Eischen
dc60f61574 s/-lc_r/-lpthread/ 2004-01-30 12:14:50 +00:00
Marcel Moolenaar
04b01085a5 In checkLabels(), deal with the fact that on ia64 we do not have a
disklabel.
2004-01-30 05:21:32 +00:00
Maksim Yevmenkin
18d948adb1 Add NO_BLUETOOTH knob to the build process
Requested by:	phk
Reviewed by:	imp (mentor), ru
2004-01-28 00:42:51 +00:00
Ruslan Ermilov
9fe5fadaf1 Get rid of all (but one in write.c) static size buffers. 2004-01-27 21:52:52 +00:00
Bill Paul
307ca1d625 Some Windows .INF files are deliberately sabotaged to prevent them from
loading on a particular version of Windows. For example, a .INF file
for a Windows 2000 driver may have an empty [foo.NT.5.1] section which
will be ingored on Win2K (whose .INF parser won't look for sections
decorated with .NT.5.1) in favor of a [foo] section. Likewise, a
WinXP file will have an empty [foo] section which will be ignored in
favor of [foo.NT.5.1].

The problem is, we can handle both Win2K and WinXP drivers, and we
don't want to exclude either one.

As a workaround, we try to pretend we are WinXP by default and search
for sections decorated with .NT.5.1, but if we don't turn up any records,
we assume that maybe we're being fooled by a sabotaged .INF file and
make one more pass looking for undecorated sections instead.

This allows us to parse the .INF files for both the Win2K and the WinXP
Centrino wireless drivers.

I'd give anything for 5 minutes alone in a room with whoever wrote
Microsoft's .INF file parser. Just 5 minutes. That's all.
2004-01-27 09:05:52 +00:00
Eivind Eklund
9220eb85cb Make a message less scary (based on user feedback) 2004-01-26 13:45:21 +00:00
Ruslan Ermilov
723c1c2ee8 Make this WARNS=3 clean. 2004-01-26 10:27:18 +00:00
Stephen McKay
68c42f006d Use malloc() instead of alloca() to allocate a (potentially) large buffer
for storing the "diff -n" output.  Some files (eg ports/INDEX,v) are too
big nowadays to fit on the stack.

Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu>
2004-01-26 04:27:22 +00:00
Stephen McKay
b9927716c0 The log file is more useful when line buffered.
Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu>
2004-01-26 04:08:43 +00:00
Ian Dowse
ff96c77dc4 Be much more strict about parsing tagged log messages from /dev/klog;
if the line doesn't match ^<%d>, then treat it as a regular kernel
printf line. Previously if a kernel printf message started with "<"
it would be interpreted as a log message, often with LOG_EMERG
level. This was triggered by some printfs in sys/dev/aic7xxx/, and
can also happen with the partial lines that result if syslogd cannot
keep up with the rate of arrival of kernel messages.

Reviewed by:	dwmalone
MFC after:	1 week
2004-01-26 00:46:46 +00:00
Maksim Yevmenkin
6c7f392438 Cleanup CFLAGS in libsdp(3) Makefile
Connect sdpd(8) to the build

Reviewed by: ru, imp (mentor)
2004-01-25 21:33:59 +00:00
Dag-Erling Smørgrav
09e0653941 I don't normally use my middle name, so remove it from attributions in
man pages (though not from copyright notices).  While I'm here, add email
addresses where appropriate.
2004-01-25 11:39:42 +00:00
Hartmut Brandt
92ba581c32 Rename the makefile variable MIBS to BMIBS so that it does not
conflict with the environment variable MIBS that is used by net-snmp.
2004-01-24 20:14:03 +00:00
Hartmut Brandt
0543f20b95 Rename the MIBS makefile variable to BMIBS so that it does not conflict
with the environment variable MIBS that is used by net-snmp.
2004-01-24 20:12:30 +00:00
Dag-Erling Smørgrav
8afe6f9797 Instead of bogusly complaining about odd file names, handle them properly
by escaping all suspicious characters.

MFC after:	3 days
2004-01-24 17:32:43 +00:00
Dag-Erling Smørgrav
9d364741c9 Try to apply consistent indentation. 2004-01-24 15:35:04 +00:00
Bill Paul
e7e7d5e91e Deal with keys with descriptions that have empty fields in some of
their lines.

Properly discard PCMCIA device declarations. I plan to support
PCMCIA cards, but they don't work yet, and it appears some .INF files
declare both PCI and PCMCIA device instances.
2004-01-23 22:28:22 +00:00
Hartmut Brandt
b6a6dd1872 Create the OID and tree files while building the modules and the daemon
instead of creating them by hand and storing them in the CVS tree. Add
gensnmptree to the bootstrap tools (it is used to generated these files).
This simplifies the update procedure.

Submitted by:	ru
2004-01-23 16:22:49 +00:00
Hartmut Brandt
006d70f8ec Update generated files. 2004-01-23 11:08:47 +00:00
Hartmut Brandt
ec8a2cd977 Catch up with import of version 1.5a of bsnmp. 2004-01-23 11:08:17 +00:00
Hartmut Brandt
1e1beb03a8 Catch up with the import of version 1.5a of bsnmp.
Fix the script to insert $FreeBSD$ into the generated file instead
of the script's FreeBSD id.
2004-01-23 11:07:55 +00:00
Hartmut Brandt
f1bd897915 Style: remove an empty line. 2004-01-23 11:01:57 +00:00
Peter Grehan
5cfe0423e6 Userland signed char fixes for PPC build. Problems were using a char
return for getopt() and comparing to -1, ditto with fgetc() and EOF,
and using the kg_nice value from <sys/user.h>

Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: obrien, bde (a while back)
Tested lightly on: ppc, i386, make universe
2004-01-22 07:23:36 +00:00
Brooks Davis
772670ea02 Use the length of the interface name, not the length of its address when
printing the name.

Approved by:	brian
2004-01-21 22:00:50 +00:00
Colin Percival
d3282d6eec Disable constant merging in isdnd and isdnmonitor. This is a "make my
life easier" patch: I doubt this will affect anyone else, but the FreeBSD
Update build code was getting very confused by this.

Approved by: rwatson (mentor)
PR: bin/61087
2004-01-21 16:49:05 +00:00
Ruslan Ermilov
a16e3c18b2 This is Sparc64-only. 2004-01-21 14:06:25 +00:00
Ruslan Ermilov
cbaffca7e7 This is i386-only. 2004-01-21 14:01:29 +00:00
Ruslan Ermilov
1fdc189947 Mark APM manpages as i386-only. 2004-01-21 13:38:17 +00:00
Maksim Yevmenkin
07be7a6c2e Import sdpd(8) sources. This is Bluetooth Service Discovery Protocol daemon.
Extend libsdp(3) API to allow service registration and removal.
Fix uninitialized variable bug in sdpcontrol(8).

Reviewed by: imp (mentor)
No objection: ru
2004-01-20 20:48:26 +00:00
Ruslan Ermilov
93970e2689 Also sort ignoring case -- makes finding things by browsing easier. 2004-01-20 08:55:06 +00:00
Ruslan Ermilov
ec56136935 Clean up makefiles.
Reviewed by:	harti
2004-01-19 19:26:02 +00:00
Philippe Charnier
c433c9daac add missing setusershell() calls.
PR: bin/2442
Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>
2004-01-18 21:29:33 +00:00
Ruslan Ermilov
869537e12d Put chkey(1), newkey(8), and keyserv(8) into the crypto distribution. 2004-01-18 09:29:47 +00:00
Johan Karlsson
ef271e5858 Do not install SYMLINKS if both NO_MAILWRAPPER and
NO_SENDMAIL is defined.

PR:		57058
Reported by:	Henri Hennebert <hlh@cocoon.cercle.be>
		Melvyn Sopacua on current@
Submitted by:	ru@
MFC after:	2 weeks
2004-01-17 23:58:23 +00:00
Ruslan Ermilov
d82881651b - Properly build both crypto and non-crypto versions of the
package management tools.

- Drop redundant dependency of pkg_create(1) and pkg_delete(1)
  on crypto libraries now that they do not link with libfetch.
2004-01-17 13:41:16 +00:00
Ruslan Ermilov
f475384e4e Replaced black magic with white magic. 2004-01-17 13:27:27 +00:00
Ruslan Ermilov
6c6b4e5dcd Fixed the fatal bug: CFLAGS should be added to, not overridden.
This prevented CPU and optimization flags to be added here.
2004-01-17 02:27:55 +00:00
Ruslan Ermilov
d10a8d6cb4 - Build things in pure dictionary order (see sort(1)).
- Unify the conditional assignments section so that architectural
  exclusions come first, then options and !options, sorted by the
  option name, also in directory order, then architecture specific
  sections, sorted by the architecture name, with i386 being a
  traditional exception.

Prodded by:	bde
2004-01-16 15:23:19 +00:00
Maxim Konovalov
7a4ff692d0 o Document -s flag.
No objections from:	ume
MFC after:		2 weeks
2004-01-15 13:23:21 +00:00
Hajimu UMEMOTO
5538fd1e35 -DSMALL will remove the need of dump.c (for rtsol)
Obtained from:	KAME
2004-01-14 17:59:38 +00:00
Hajimu UMEMOTO
fcdaee3127 add -F flag, which configures sysctl(8) setting by rtsold
itself (rather than warn about the current setting).

Obtained from:	KAME
2004-01-14 17:42:03 +00:00
Hajimu UMEMOTO
8e7409eda3 ansify.
Obtained from:	KAME
2004-01-14 17:16:19 +00:00
Hajimu UMEMOTO
d05ae8c388 use timeradd/sub/cmp.
Obtained from:	KAME
2004-01-14 16:55:08 +00:00
Ruslan Ermilov
76b0ae588c - Use the standard .y and .l transformation rules -- this fixes
the usual parallel make race in custom .y rules.

- Fixed some style bugs.

- Removed -v from YFLAGS.

Prodded by:     bde
Reviewed by:    bde, njl
2004-01-13 20:53:56 +00:00
Bill Paul
93335315ad Yet another inf file handling tweak: when checking for Ndi\Params\foo
keys, don't just do a substring match on "Ndi\Params". Instead, check
explicitly for strings that begin with "Ndi\Params". Why? Because it's
possible to create your own keys with different paths, like
"PROSetNdi\NdiExt\Params" which is what Intel does in their PRO/1000
driver's .INF file.
2004-01-13 00:29:17 +00:00
Tom Rhodes
8030199c71 Discuss the 'MAILTO' option.
PR:		58783
Submitted by:	Marc Silver <marcs@draenor.org>
2004-01-12 20:20:29 +00:00
Tom Rhodes
dd58592ca1 Xref the proper manual pages.
PR:		60999
Submitted by:	Marc Silver <marcs@draenor.org>
2004-01-12 16:10:38 +00:00
Matthew N. Dodd
ca3aed2f13 - Handle doubled double quotes:
`"""foo"" bar"' -> `"foo" bar'
- Handle C++ style comments.

Requested by:	 wpaul
2004-01-11 21:10:35 +00:00
Poul-Henning Kamp
5e4b861c50 Get rid of "lineno: 0" in error messages from create mode.
Add -w(arning) flag which makes failure to look up uid/gid
a nonfatal warning instead of an error.
2004-01-11 19:38:48 +00:00
Ruslan Ermilov
c3d0f96a5a Use my newly acquired magic stick and put aslcompiler.y.h into
SRCS to teach make(1) that many .c sources are dependent on it.
This fixes parallel (-j) builds and makes it possible to build
individual .o files separately.

While here, removed PROG from CLEANFILES -- it's taken care of
already by bsd.prog.mk.
2004-01-11 19:26:33 +00:00
Poul-Henning Kamp
d8e4c710eb collect all "extern bla" stuff in extern.h in order to get cross-file
type checking.  No bugs found.
2004-01-11 19:25:56 +00:00
Ian Dowse
87d6b5caf6 Add a -H <fd>' option that is like -h <fd>', but accepts an already
encrypted password on the specified file descriptor.

PR:		bin/22033
MFC after:	2 weeks
2004-01-11 18:28:08 +00:00
Robert Watson
0be1e825d6 Problem:
When an NFS server is port-scanned nfsd sometimes exits. This has
  happened 3 times the last few weeks.

  Nfsd has been written to exit when accept(2) fails. Unfortunately
  accept can sometimes make a "normal" return with errno ECONNABORTED
  and in this case nfsd exits prematurely.

Solution:

  Check for ECONNABORTED (and also EINTR, since nfsd uses signals)
  and continue.

Submitted by:	Bjoern Groenvall <bg@sics.se>
PR:		61084
2004-01-11 01:29:03 +00:00
Maxim Sobolev
dd8fb388f5 Fix serious ugliness introduced in 1.61, which leads to long delay in boot
sequence when machine is started without attached USB mouse. Only do
repeated attempts to re-open device if the usb module has been actually
loaded. Also fix broken logic in doing delays between open attempts - do
delays between attempts, not after each attempt.

Due to previous behaviour being very annoying for notebook owners this
is a good 5.2 MFC candidate.

MFC after:	2 days
2004-01-10 13:09:21 +00:00
Maksim Yevmenkin
a4b187fa33 Change sdp_open_local(3) API. It now takes a path to a control socket
Teach sdpcontrol(8) how to talk to the local SDP server
Update man pages
s/u_int/uint

Reviewed by:	imp (mentor), ru
2004-01-09 22:44:28 +00:00
Brian Feldman
bbd6d60a85 Add a GraphViz-exporting ngctl(8) "dot" command. You can now create
very useful .dot files of your netgraph(4) to quickly visualize the
nodes, hooks and edges.  An example of this can be found here:
	http://people.freebsd.org/~green/sample-netgraph-dot.ps
If anyone would like to refine the output further, please do so.
2004-01-09 03:19:40 +00:00
Poul-Henning Kamp
ed283fb506 Do not emit comments when -n is specified. 2004-01-08 22:21:45 +00:00
SUZUKI Shinsuke
ce4bcde831 fixed improper routing-message flag
Obtained from: KAME
2004-01-08 07:25:04 +00:00
Eric Anholt
624a58b6e6 From PR:
In fdformat.c a closing parenthesis is at the wrong place.  Instead of
adding sizeof _PATH_DEV + 1 to the length of argv[optind], the length of the
string starting (sizeof _PATH_DEV + 1) characters after argv[optind]'s
beginning (accessing junk memory if we jump over the terminating null
character) is passed to malloc().

PR:		bin/60026
Submitted by:	Stefan Farfeleder <stefan@fafoe.narf.at>
2004-01-07 05:28:57 +00:00
Robert Watson
9abf1c6ab8 Update pciconf man page to indicate that only some of the functions
in pciconf are limited to the superuser.

Requested by:	ru
2004-01-06 20:23:20 +00:00
Nate Lawson
c83f0f992a Clean up the check for invalid X_DSDT and X_FACS portions of the FADT.
Add fadt_revision for telling if the FADT has correct 64 bit addresses,
separate from whether the XSDT has legal 64 bit addresses.
2004-01-04 22:27:53 +00:00
Doug Barton
d71c565b9c mergemaster -p (pre-world) doesn't populate /etc/rc.d, which led to a
false positive for every file according to the new stale rc.d checker.

Friendly reminder by:	dhw
2004-01-04 22:02:04 +00:00
David E. O'Brien
2b19680751 Add 'fwe' so one doesn't get "<unknown network interface type>". 2004-01-04 21:04:02 +00:00
Philippe Charnier
b00304d4a1 Use fprintf() instead of errx() when displaying usage string. The program name
will not be written twice.
2004-01-04 16:11:29 +00:00
Philippe Charnier
ce6ce58ca1 Properly use strftime(): NUL terminating character is already taken into
account.
2004-01-04 16:07:03 +00:00
Philippe Charnier
6e7abcb1f1 Remove unused local variable. 2004-01-04 15:51:32 +00:00
Bill Paul
0a9e1a08a1 Tweak ndiscvt to support yet another flavor of .INF files (look for
the NTx86 section decoration).

subr_ndis.c: correct the behavior of ndis_query_resources(): if the
caller doesn't provide enough space to return the resources, tell it
how much it needs to provide and return an error.

subr_hal.c & subr_ntoskrnl.c: implement/stub a bunch of new routines;

ntoskrnl:

KefAcquireSpinLockAtDpcLevel
KefReleaseSpinLockFromDpcLevel
MmMapLockedPages
InterlockedDecrement
InterlockedIncrement
IoFreeMdl
KeInitializeSpinLock

HAL:

KfReleaseSpinLock
KeGetCurrentIrql
KfAcquireSpinLock

Lastly, correct spelling of "_aullshr" in the ntoskrnl functable.
2004-01-03 02:25:21 +00:00
Brian Feldman
ae0d6c0c3d Fix usage() (-d is really -n). 2004-01-02 23:35:57 +00:00
Bill Paul
ade996adb6 Handle WinNT .inf files with a $windows nt$ signature but no .NT decorated
AddReg sections.

Also insert extra newline after emitting device name overrides.
2004-01-02 21:13:21 +00:00
David E. O'Brien
75fcf8a737 I missed a s/package_exists/package_installed/ in the last commit. 2004-01-02 09:52:49 +00:00
David E. O'Brien
b4fe6d086f s/package_exists/package_installed/g as that's much more descriptive of
what the function does.
2004-01-02 09:52:14 +00:00
David E. O'Brien
b0d55f3fc9 I think we can stop doing 'ldconfig -aout' during the install now.
The base install doesn't have any a.out bits anymore and hasn't for years.
2004-01-02 09:33:58 +00:00
David E. O'Brien
1618a91860 s/package_exists/package_installed/g as that's much more descriptive of
what the function does.
2004-01-02 09:19:13 +00:00
David E. O'Brien
c67aadb969 FBSD nit. 2004-01-02 08:31:00 +00:00
Bill Paul
f07cc658a4 Clean up ndiscvt a bit (leaving out the -i flag didn't work) and add
copyrights to the inf parser files.

Add a -n flag to ndiscvt to allow the user to override the default
device name of NDIS devices. Instead of "ndis0, ndis1, etc..."
you can have "foo0, foo1, etc..." This allows you to have more than
one kind of NDIS device in the kernel at the same time.

Convert from printf() to device_printf() in if_ndis.c, kern_ndis.c
and subr_ndis.c.

Create UMA zones for ndis_packet and ndis_buffer structs allocated
on transmit. The zones are created and destroyed in the modevent
handler in kern_ndis.c.

printf() and UMA changes submitted by green@freebsd.org
2004-01-02 04:31:06 +00:00
Bruce A. Mah
2b5c94a768 Catch up with reality with respect to the location of 4.8, 4.9,
5.0, 5.1, 5.2, and CURRENT packages.
2004-01-02 00:13:20 +00:00
Doug Barton
b256b34ac1 * Update copyright
* Delete a trailing space
* Add a 'stale /etc/rc.d file checker', offer to delete any stale
files for the user.
2004-01-01 23:41:37 +00:00
David E. O'Brien
88b3d518bc Be consistent in the EXAMPLES formatting. 2004-01-01 00:59:58 +00:00