summaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fixed punctuation in xrefs.Ruslan Ermilov2005-01-212-3/+3
| | | | Notes: svn path=/head/; revision=140598
* Fixed xref.Ruslan Ermilov2005-01-212-2/+2
| | | | Notes: svn path=/head/; revision=140568
* Fixed xrefs.Ruslan Ermilov2005-01-215-7/+7
| | | | Notes: svn path=/head/; revision=140566
* Fixed .Xr call.Ruslan Ermilov2005-01-211-1/+2
| | | | Notes: svn path=/head/; revision=140562
* In crunchgen(1), when calling make(1), don't redirect stderr to stdout,Ruslan Ermilov2005-01-201-1/+1
| | | | | | | | | | just rely on the exit status to detect an error. This makes crunchgen(1) safe to use with certain make(1) debugging flags. MFC after: 1 week Notes: svn path=/head/; revision=140509
* Fixed formatting in the AUTHORS section.Ruslan Ermilov2005-01-181-0/+1
| | | | Notes: svn path=/head/; revision=140443
* Sort sections.Ruslan Ermilov2005-01-18119-794/+793
| | | | Notes: svn path=/head/; revision=140442
* Remove redundant parameter inherited from ipacctctl.Gleb Smirnoff2005-01-181-8/+7
| | | | Notes: svn path=/head/; revision=140413
* One of the DIAGNOSTICS sections should be EXIT STATUS.Ruslan Ermilov2005-01-181-6/+6
| | | | Notes: svn path=/head/; revision=140412
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-1739-42/+46
| | | | Notes: svn path=/head/; revision=140368
* Add prototypes and remove unused variables for WARNS=6 compliance. AddPhilippe Charnier2005-01-161-25/+28
| | | | | | | | 'usage: ' in front of usage string. Use warnx(3) instead of fprintf in error messages to get progname prepended. Notes: svn path=/head/; revision=140343
* Eliminate macro calls inside literal displays.Ruslan Ermilov2005-01-153-36/+16
| | | | Notes: svn path=/head/; revision=140295
* Fixed display type.Ruslan Ermilov2005-01-151-1/+1
| | | | Notes: svn path=/head/; revision=140294
* Removed bitrot.Ruslan Ermilov2005-01-132-10/+4
| | | | Notes: svn path=/head/; revision=140182
* WANRS=6 cleanup for vidcontrol(1):Xin LI2005-01-133-93/+95
| | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=140159
* Fix typo %d -> %xMaksim Yevmenkin2005-01-121-1/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=140130
* Document the -U option a bit more clearly.Philip Paeps2005-01-111-0/+12
| | | | | | | Submitted by: keramida Notes: svn path=/head/; revision=140073
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-1111-67/+61
| | | | Notes: svn path=/head/; revision=140063
* Add -q to usage() and mark the "index" argument as optional.Ruslan Ermilov2005-01-111-1/+1
| | | | Notes: svn path=/head/; revision=140061
* - mdoc(7) cleanup.Simon L. B. Nielsen2005-01-111-17/+43
| | | | | | | | | - Bump document date for last content change. Extended mdoc clue: ru Notes: svn path=/head/; revision=140060
* Add -c to SYNOPSIS and usage().Ruslan Ermilov2005-01-112-3/+3
| | | | Notes: svn path=/head/; revision=140058
* Use the standard BSD copyright as per OpenBSD and /sys/net/slcompress*Brian Somers2005-01-102-31/+59
| | | | Notes: svn path=/head/; revision=139979
* Cast unsigned variables to intBrian Somers2005-01-101-1/+1
| | | | Notes: svn path=/head/; revision=139978
* ifr_flagshigh is FreeBSD specificBrian Somers2005-01-101-0/+6
| | | | Notes: svn path=/head/; revision=139977
* Integrate some OpenBSD alignment fixes. This hopefully also fixes PR 38058...Brian Somers2005-01-102-27/+35
| | | | | | | Obtained from: Brad <brad@comstyle.com> Notes: svn path=/head/; revision=139973
* Wording nit.Tom Rhodes2005-01-101-1/+1
| | | | Notes: svn path=/head/; revision=139951
* Cleanup usr.sbin/fd* so they can compile under WARNS=6.Xin LI2005-01-088-35/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=139905
* Follow style.Makefile(5):Xin LI2005-01-081-1/+1
| | | | | | | | | WARNS comes before CFLAGS This reduces diff against my local branch. Notes: svn path=/head/; revision=139904
* Change the USB keyboard example to use /dev/ukbd0 instead of /dev/kbd1.Brooks Davis2005-01-081-2/+2
| | | | | | | | | 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. Notes: svn path=/head/; revision=139898
* WARNS=6 cleanup. This includes:Xin LI2005-01-072-8/+10
| | | | | | | | | | - Apply __unused on unused parameters - Use const where suitable - Use PRIu64 instead of the deprecated %q - Bump WARNS to 6 Notes: svn path=/head/; revision=139854
* Minor comment fix.Ken Smith2005-01-072-2/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=139832
* Document the -V and -U options in usage().Philip Paeps2005-01-061-2/+2
| | | | | | | Submitted by: Jordan Sissel <psionic@csh.rit.edu> Notes: svn path=/head/; revision=139760
* Add forgotten -a to the usage() message.Lukas Ertl2005-01-051-1/+1
| | | | Notes: svn path=/head/; revision=139722
* Teach sdpd(8) about 32-bit and 128-bit uuid's.Maksim Yevmenkin2005-01-055-13/+162
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=139721
* Rename 'class' field to 'uclass' in the ng_hci_inquiry_response structure.Maksim Yevmenkin2005-01-041-1/+1
| | | | | | | | | | class is a reserved word in C++ Submitted by: Markus Brueffer < markus AT brueffer DOT de > MFC after: 3 days Notes: svn path=/head/; revision=139686
* Use __unused macro instead of a bare void for main().Xin LI2005-01-041-1/+1
| | | | | | | Suggested by: nectar Notes: svn path=/head/; revision=139685
* Update the INDEX file to INDEX-6Paul Richards2005-01-041-5/+5
| | | | Notes: svn path=/head/; revision=139679
* Use INDEX-6 for versions of FreeBSD > 600000Paul Richards2005-01-041-1/+3
| | | | Notes: svn path=/head/; revision=139676
* Remove old wdc driver completely.Yoshihiro Takahashi2005-01-042-12/+0
| | | | Notes: svn path=/head/; revision=139668
* Allow usbd to handle event notificatiosn where mor ethan oneJulian Elischer2005-01-041-47/+67
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=139661
* nologin(8) does not seem to require any command line parameters,Xin LI2005-01-041-2/+2
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=139656
* Because the `permission' field in conf_entry is intended to be used asXin LI2005-01-041-1/+1
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=139655
* Catch up with the kernel and set any global variables we are using, inNate Lawson2005-01-031-0/+6
| | | | | | | | | particular, enabling interpreter workarounds for bad ASL. MFC after: 1 day Notes: svn path=/head/; revision=139602
* o Remove duplicate includes.Maxim Konovalov2005-01-011-2/+0
| | | | | | | | | PR: bin/75712 Submitted by: brueffer Obtained from: Dragonfly BSD Notes: svn path=/head/; revision=139552
* Fix so all parts of lpd, lpc, lpq, and lprm will use the same algorithmGarance A Drosehn2004-12-315-37/+79
| | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=139464
* Do more extensive checking of the userid field which is read in from theGarance A Drosehn2004-12-311-7/+46
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=139462
* Allow ':' and '%' in hostname specifications so that we can specify IPv6David Malone2004-12-281-1/+1
| | | | | | | | | addresses and scope IDs. MFC after: 3 weeks Notes: svn path=/head/; revision=139384
* Some syslog messages delimit the program tag with whitespace ratherDavid Malone2004-12-281-2/+2
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=139381
* For VLAN interfaces, print MAC addresses properly.Ruslan Ermilov2004-12-241-1/+2
| | | | | | | | | | | (Broken in rev. 1.52.) PR: 75471 Submitted by: Jon Simola MFC after: 3 days Notes: svn path=/head/; revision=139270
* Due to unknown reasons, Disk_Names() returns SCSI CDROM as a validPyun YongHyeon2004-12-222-0/+28
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=139168