Commit Graph

10125 Commits

Author SHA1 Message Date
ru
a8461d7621 Fixed formatting in the AUTHORS section. 2005-01-18 20:04:14 +00:00
ru
c05985f13f Sort sections. 2005-01-18 20:02:45 +00:00
glebius
12097e7299 Remove redundant parameter inherited from ipacctctl. 2005-01-18 09:24:32 +00:00
ru
0e3cb75d08 One of the DIAGNOSTICS sections should be EXIT STATUS. 2005-01-18 09:17:49 +00:00
ru
6cc4b6c220 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
charnier
a77fd8ed0a Add prototypes and remove unused variables for WARNS=6 compliance. Add
'usage: ' in front of usage string. Use warnx(3) instead of fprintf in error
messages to get progname prepended.
2005-01-16 10:49:48 +00:00
ru
d26afd541d Eliminate macro calls inside literal displays. 2005-01-15 12:28:01 +00:00
ru
c448d3af70 Fixed display type. 2005-01-15 12:26:29 +00:00
ru
1ad9577d5d Removed bitrot. 2005-01-13 13:34:00 +00:00
delphij
c3e405fd24 WANRS=6 cleanup for vidcontrol(1):
- Use foo(void) instead of foo().
	- Use static where applicable.
	- Apply more const's when passing parameters
	- signed/unsigned madness
	- Avoid namespace collision by adding underscores.
	- For 64-bit architectures, use %zx instead of %x
	  when necessary.
	- When storing constants, use const instead of
	  variable.
	- Bump WARNS?= from 2 to 6
2005-01-13 03:59:44 +00:00
emax
9bd0242d83 Fix typo %d -> %x
That should fix the problem with invalid PSM returned from bthidcontrol.
Pointy hat goes to me.

PR:		misc/76107
Submitted by:	Hiroyuki Aizu < aizu at navi dot org >
MFC after:	1 day
2005-01-12 20:06:16 +00:00
philip
f89878315b Document the -U option a bit more clearly.
Submitted by:	keramida
2005-01-11 17:16:31 +00:00
ru
16dc33fabf Scheduled mdoc(7) sweep. 2005-01-11 11:47:22 +00:00
ru
6888bfb10e Add -q to usage() and mark the "index" argument as optional. 2005-01-11 11:23:59 +00:00
simon
e77e3f3840 - mdoc(7) cleanup.
- Bump document date for last content change.

Extended mdoc clue:	ru
2005-01-11 10:59:31 +00:00
ru
f89ee1e6c1 Add -c to SYNOPSIS and usage(). 2005-01-11 10:53:09 +00:00
brian
02b9a88899 Use the standard BSD copyright as per OpenBSD and /sys/net/slcompress* 2005-01-10 11:47:17 +00:00
brian
48fd8924bb Cast unsigned variables to int 2005-01-10 11:12:36 +00:00
brian
bd90e346ec ifr_flagshigh is FreeBSD specific 2005-01-10 11:12:10 +00:00
brian
7b52fab5af Integrate some OpenBSD alignment fixes. This hopefully also fixes PR 38058...
Obtained from:	Brad <brad@comstyle.com>
2005-01-10 09:48:51 +00:00
trhodes
7f890bc8e0 Wording nit. 2005-01-10 00:35:54 +00:00
delphij
049c85627c Cleanup usr.sbin/fd* so they can compile under WARNS=6.
fdcontrol/fdcontrol.c:
	- Add const constraint to an intermediate value
	  which is not supposed to be changed elsewhere.
fdread/fdread.c:
	- Use _devname in favor of devname to avoid name
	  conflicit.
	- -1 is less than any positive number so in order
	  to get the block to function, we should get the
	  block a little earlier.
	- Cast to remove signed when we are sure that a
	  return value is positive, or is compared with
	  an positive number (tracknumber of a floppy
	  disk is not likely to have UINT_MAX/2 anyway)
fdread/fdutil.c:
	- Use more specific initializer
fdwrite/fdwrite.c:
	- Use static on format_track since it's not
	  referenced in other places.
	- Use const char* to represent string constant.

Bump WARNS accordingly.
2005-01-08 15:46:06 +00:00
delphij
99669f6c43 Follow style.Makefile(5):
WARNS comes before CFLAGS

This reduces diff against my local branch.
2005-01-08 15:15:42 +00:00
brooks
61aaea5fa0 Change the USB keyboard example to use /dev/ukbd0 instead of /dev/kbd1.
This example caused me to incorrectly believe that you must use the
generic device nodes when you can in fact use either.  It's often better
to use the driver specific node.
2005-01-08 06:02:56 +00:00
delphij
3dde50a830 WARNS=6 cleanup. This includes:
- Apply __unused on unused parameters
	- Use const where suitable
	- Use PRIu64 instead of the deprecated %q
	- Bump WARNS to 6
2005-01-07 12:06:30 +00:00
kensmith
b1a73aa897 Minor comment fix.
MFC after:	1 week
2005-01-07 04:07:48 +00:00
philip
b25d8559d6 Document the -V and -U options in usage().
Submitted by:	Jordan Sissel <psionic@csh.rit.edu>
2005-01-06 08:38:29 +00:00
le
f97a57fae3 Add forgotten -a to the usage() message. 2005-01-05 18:41:54 +00:00
emax
681c866d3b Teach sdpd(8) about 32-bit and 128-bit uuid's.
MFC after:	3 days
2005-01-05 18:37:37 +00:00
emax
626c8fa3a1 Rename 'class' field to 'uclass' in the ng_hci_inquiry_response structure.
class is a reserved word in C++

Submitted by:	Markus Brueffer < markus AT brueffer DOT de >
MFC after:	3 days
2005-01-04 20:13:48 +00:00
delphij
adda6707d7 Use __unused macro instead of a bare void for main().
Suggested by:	nectar
2005-01-04 20:07:12 +00:00
paul
d7b7506d38 Update the INDEX file to INDEX-6 2005-01-04 17:13:16 +00:00
paul
f6e5473a51 Use INDEX-6 for versions of FreeBSD > 600000 2005-01-04 16:18:55 +00:00
nyan
fa189c3dd0 Remove old wdc driver completely. 2005-01-04 11:04:03 +00:00
julian
5c845ebb4d Allow usbd to handle event notificatiosn where mor ethan one
device is involved, (e.g. plugin a hub with multiple devices
already attached to it)

Submitted by: Naoyuki Tai <ntai@smartfruit.com>
PR: 43993
MFC in:	1 week
2005-01-04 06:45:41 +00:00
delphij
00c462b83a nologin(8) does not seem to require any command line parameters,
so remove argc and argv from main() argument.

At the same time, user and tt is not likely to be changed during
execution so mark them const.

This commit should guarantee nologin to pass WARNS=6.

Tested on:	i386
MFC After:	1 month
2005-01-04 03:57:20 +00:00
delphij
985415fefc Because the `permission' field in conf_entry is intended to be used as
parameter 2 in chmod(2), which is a mode_t (and in turn a __uint_16_t),
it's more likely that it should be defined as an unsigned variable.

This commit should make newsyslog WARNS=6 clean, but don't bump the knob
until I have a universe build.

MFC After:	1 month
2005-01-04 02:24:01 +00:00
njl
848b0d85e8 Catch up with the kernel and set any global variables we are using, in
particular, enabling interpreter workarounds for bad ASL.

MFC after:	1 day
2005-01-03 04:14:05 +00:00
maxim
33e59b46a0 o Remove duplicate includes.
PR:		bin/75712
Submitted by:	brueffer
Obtained from:	Dragonfly BSD
2005-01-01 22:07:06 +00:00
gad
6a6737d3e1 Fix so all parts of lpd, lpc, lpq, and lprm will use the same algorithm
for calculating the job number for a job based on the control-file name.
We might receive cf-files named by other implementations of lpr, where
the job number shown by lpq would not match the job number that other
commands expected for the same name.

This also uses a newer algorithm for determining a job number, to avoid
problems caused when a control-file is named using an IP address, instead
of the hostname.

This also moved the declaration if isowner() from lp.h to rmjob.c.  When I
went to change the parameters, I noticed that rmjob.c was the only source
file which uses it.

MFC after:	2 weeks
2004-12-31 00:36:28 +00:00
gad
a8001e07a0 Do more extensive checking of the userid field which is read in from the
control-file for each print job.  This is partially because the previous
checks still let through some characters which would cause trouble for
other applications which try to process the resulting userid -- such as
accounting programs.

But the main reason is to handle the case where some remote host sends a
print job where the given userid is an uppercase-version of the real userid.
For that case, lpd will now check for uppercase letters in the userid.  If
there are any, it will check to see if the given userid (with the uppercase
letters) is a valid one.  If it is *not* valid, then lpd will change the
userid to all-lowercase right when the job is received.

MFC after:	2 weeks
2004-12-31 00:18:42 +00:00
dwmalone
30dce67d0c Allow ':' and '%' in hostname specifications so that we can specify IPv6
addresses and scope IDs.

MFC after:	3 weeks
2004-12-28 22:25:04 +00:00
dwmalone
f5cc9e7663 Some syslog messages delimit the program tag with whitespace rather
than a colon, so don't allow whitespace in program names. To be
consistent with hostnames, don't allow whitespace in the program
name specifiers in syslog.conf either.

(The first change is by Markus from the PR, the second is mine.)

PR:		68691
Submitted by:	Markus Oestreicher <m.oe@x-trader.de>
MFC after:	3 weeks
2004-12-28 21:58:54 +00:00
ru
1f0b9e958a For VLAN interfaces, print MAC addresses properly.
(Broken in rev. 1.52.)

PR:		75471
Submitted by:	Jon Simola
MFC after:	3 days
2004-12-24 22:16:38 +00:00
yongari
98dec7d251 Due to unknown reasons, Disk_Names() returns SCSI CDROM as a valid
disk. This is main reason why sysinstall presents SCSI CDROM to
available disks in Fdisk/Label menu. In addition, adding a blank
SCSI CDROM to the menu generates floating point exception in sparc64.
Disk_Names() just extracts sysctl "kern.disks". Why GEOM treats SCSI
CDROM as a disk is beyond me and that should be investigated.
For temporary workaround, ignore SCSI CDROM device.

PR:		sparc64/72962
Tested by:	R. Tyler Ballance < tyler AT tamu DOT edu>
MFC after:	1 week
2004-12-22 08:26:48 +00:00
ru
9a53664bdb Use the source of the termcap database when available. 2004-12-21 15:16:36 +00:00
ru
93f5228cf5 The "fixate" command no longer terminates command processing,
so that "eject" following it can happen.
2004-12-21 14:57:37 +00:00
ru
833eea53d9 Document -F in usage() and SYNOPSIS. 2004-12-21 14:53:44 +00:00
ru
e2a37856e9 Make "burncd ... fixate eject" really work as promised. 2004-12-21 14:49:10 +00:00
ru
c8158555ed NOPAM -> NO_PAM 2004-12-21 12:49:24 +00:00