summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Hook up ffsinfo(8).rwatson2003-08-141-0/+1
|
* Commit 1 of 2 to fix ffsinfo(8) for UFS2.rwatson2003-08-143-211/+226
| | | | | | | | | | | | | | | | Update ffsinfo(8) to use new UFS2 support in the growfs(8) debugging functions. Largely consists of renaming fields and types to be aware of the UFS1/UFS2 distinction, relying on libufs(3) to open and sanity check the device/file/label accessed. Since libufs(3) now handles label/UFS interactions, remove -L argument. Note: when submitted, this patch had substantial style changes. I've attempted to remove the restyling from the patch to separate the functional and style changes. Submitted by: Lukas Ertl <l.ertl@univie.ac.at> PR: bin/53517
* support poll(2).ume2003-08-141-1/+1
| | | | | Obtained from: KAME MFC after: 1 week
* Commit 1 of 2 to fix ffsinfo(8) for UFS2.rwatson2003-08-142-115/+292
| | | | | | | | | | | | | Add support for UFS2 to the UFS debugging routines in growfs; required to update ffsinfo(8) for UFS2. A variety of types and fs variables are renamed to reflect UFS1/2 structures. Also, the print routines for inodes are now split into separate UFS1 and UFS2 versions. We now define dbg_dump_csum_total(), but lose the printing of rotational information since that's not present in UFS2. In the future, we may want to re-add this functionality to print it solely for UFS1. Submitted by: Lukas Ertl <l.ertl@univie.ac.at> PR: bin/53517
* - Clarify the port range syntax in -redirect_port.ru2003-08-131-14/+24
| | | | | | PR: docs/46286 - "IP number" -> "IP address", for consistency.
* Added an option to specify an alternate PID file.ru2003-08-132-3/+23
| | | | | PR: bin/37159 Submitted by: "Aleksandr A. Babaylov" <.@babolo.ru>
* Add a '-M mask' option so that users can have differenttrhodes2003-08-122-5/+34
| | | | | | | | | | | masks for files and directories. This should make some of the Midnight Commander users happy. Remove an extra ')' in the manual page. PR: 35699 Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru> (original version) Tested by: simon
* Correct a grammatical error.ceri2003-08-121-1/+1
|
* Add a program for configuration of the ATM drivers and the IP over ATMharti2003-08-1210-0/+3017
| | | | | | stuff. This utility allows inspection of the ATM characteristics, the PHY layer, including statistics of both, the retrival of the list of currently open channels and also allows access to utopia(4).
* Add the new arguments for the add pvc command to the help information.harti2003-08-111-1/+3
| | | | | | | Correct a comment. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 3 days
* Turn the annoying and long error message off. It was sombr2003-08-091-1/+1
| | | | | | long that it was even hard to find the real error cause. Requested by: rwatson
* PR: docs/53688bms2003-08-091-8/+10
| | | | | Submitted by: bms Approved by: jake (mentor)
* Make this WARNS=6 clean by prototyping 'usage'.johan2003-08-082-0/+3
| | | | Tested by: make universe
* Make this WARNS=6 clean by renaming the variable 'err' to 'error'johan2003-08-072-7/+7
| | | | | | in order not to shadow err(3). Tested by: make universe
* Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, soimp2003-08-073-5/+5
| | | | remove the unneeded +1.
* No need to define optind as an extern. stdlib.h does that for us.imp2003-08-071-1/+0
|
* Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL.imp2003-08-071-1/+1
|
* MAXPATHLEN includes the trailing NUL, so no need to add 1 here.imp2003-08-071-1/+1
|
* Localize 'ls' outputache2003-08-062-4/+8
| | | | Don't set 8bit in quote processing
* Don't reinvent the wheel: Use setmode(3) to interpretyar2003-08-052-3/+15
| | | | | | a file mode specification from the command line. This approach is more flexible and less error-prone than using a mere strtoul(3).
* Exit with a non-zero status upon a block allocation failure.yar2003-08-051-3/+3
| | | | | | | | | | The old way of just returning could result in a file system extremely likely to panic the kernel. The warning printed wouldn't help much since tools invoking newfs(8), e.g., mdmfs(8), couldn't detect the error. PR: bin/55078 MFC after: 1 week
* Make this WARNS=6 clean by:johan2003-08-054-41/+41
| | | | | | | | | | | | | | | | | | | | 1: add 'const' to char * where needed; 2: mark unused variables with __unused; 3: remove double prototypes for mode_edit and mode_list. 4: moves the global variables 'bus', 'target', and 'lun' into the main function and protect them with #ifndef MINIMALISTIC, 5: renames 3 variable in order not to shadow other things index -> indx -- in modepage_dump since index is a function from <strings.h.> arglist -> arglst -- in the function parse_btl since arglist is also a global variable convertend -> convertend2 -- in the function editentry_set since that name is used two times within the function. 6: cast 0xffffffff in the macro RESOLUTION_MAX(size) to (int) since it is unsigned otherwise. Tested by: make universe Approved by: ken
* LANG->LC_ALLache2003-08-041-1/+1
| | | | Pointed by: ru
* Fix problem differently, use ache2003-08-041-1/+1
| | | | | LANG=C tr 'a-z' 'A-Z'  for hypotetical case that script may generate non-ascii characters
* Use tr '[:lower:]' '[:upper:]' to work with any localeache2003-08-041-1/+1
|
* style.Makefile(5)'izeobrien2003-08-035-32/+15
|
* Spell "file system" correctly.ru2003-08-013-3/+3
|
* Make firmware version 4.1.12 the default for download to PCA-200E adapters.harti2003-07-313-11/+2073
| | | | | | | | | The old firmware (3.0.1) can still be used by specifying the '-3' option to fore_dnld. Document the -r option that resets the adapter prior to the download. Ther newer firmware version allows traffic shaping.
* Fix the code with respect to the assumption that sizeof(long) == 4.harti2003-07-301-32/+32
|
* Fix what was a common idiom in PDP-11 days: declare a local int andharti2003-07-301-2/+2
| | | | | use the address of that int for read(2). While this happens to work on LE, it surely is wrong on BE.
* Make this compile with WARNS=6.harti2003-07-302-102/+78
|
* Fix warnings: a variable that was unused, a variable thatharti2003-07-301-4/+3
| | | | | | | | | was unused unless sun was defined and printing of u_longs with %x. PR: bin/39818 Submitted by: dan@obluda.cz MFC after: 1 week
* Use size_t for buffer sizes. Improve error handling in some places.harti2003-07-298-148/+117
| | | | Remove a __DECONST() that was needed before this interface cleanup.
* Add support for CBR and VBR PVCs. Enhance the error handling forharti2003-07-283-39/+159
| | | | | | | the 'add pvc' command. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 2 weeks
* Enable dhclient to poll the interface state and send onlymbr2003-07-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | requests if the interface has an active link. This is a great benefit if you often change networks with your laptop and you do not like to kill/restart dhclient all the time. Changes are automatically detected and the link is refreshed. The change allows us to start dhclient in background mode Enable dhclient to poll the interface state and send only requests if the interface has an active link. This is a great benefit if you often change networks with your laptop and you do not like to kill/restart dhclient all the time. Changes are automatically detected and the link is refreshed. The change allows us to start dhclient in background mode while the network cable is not plugged in. To control the polling interval, the option -i has been introduced. It takes seconds as parameter, the minimum is one second, the default is five seconds. Polling is done in seconds, not microseconds, because dhclient does internally work with timeouts in seconds. This change will be part of the next major ISC-dhcpd release. Tested by: bms, imp, and many many others. Reviewed by: murray, eivind, dhclient folks
* Make atm WARNS=6 clean. The changes are mostly:harti2003-07-2810-382/+299
| | | | | | | | | | | - remove some instances of __P() - use real prototypes and un-K&R function headers - constify where necessary (mostly strings and structures containing strings) - make functions and variables static that need not to be global - tag unused function parameters as __unused Testing: a fresh universe
* o Fix usage(): remove '-l', add missed '-f', sort.maxim2003-07-261-1/+1
|
* Remove references to the '-l' option in synopsis. The rest of thesimon2003-07-261-2/+1
| | | | | | | | description of this option was removed in v. 1.22. PR: docs/54880 Submitted by: Lukas Ertl <l.ertl@univie.ac.at> Approved by: ceri (mentor)
* Minor mdoc(7) cleanup, based on the PR below.simon2003-07-261-2/+4
| | | | | | | PR: docs/54826 Submitted by: Lukas Ertl <l.ertl@univie.ac.at> Reviewed by: ru Approved by: ceri (mentor)
* When deciding whether to download the microcode or not look at the API ratherharti2003-07-251-1/+1
| | | | | | | | than at the vendor. We have three different Fore cards and only the PCA200 need the microcode. Look also at the RAM address and load the code only if it is not zero. A zero RAM address means either a bug in the driver or this is a interface created by harp(4) in which case fatm(4) handles the microcode issue.
* Due to a gcc bug, it doesn't like local variables with names like 'sin'.harti2003-07-251-3/+3
| | | | Rename this for the moment. Also fix a sparc64 alignment warning.
* Make ilmid WARNS=6 clean. The problem were a couple of unused functionharti2003-07-252-14/+14
| | | | arguments and missing consts.
* Build /sbin/gpt on amd64 for good luck as well.peter2003-07-241-1/+2
|
* Simplistic C comment re is wrong, use more correct oneimp2003-07-231-1/+1
|
* Remove old workaroundimp2003-07-231-3/+1
|
* Add a note that net.inet.ip.fw.autoinc_step is ipfw2-specificluigi2003-07-221-0/+4
|
* Quote from a Problem Report:maxim2003-07-211-1/+1
| | | | | | | | | | | | The output format specifier for the round-trip time in ping6 should be changed to %.3f instead of %g since %g doesn't accurately represent the precision of the number being output. In particular, %g truncates trailing zeroes. 0.01 ms does not mean the same thing as 0.010 ms. Although they are numerically identical, they do not have the same precision. PR: bin/52324, bin/52750 Submitted by: dg MFC after: 1 week
* o Initialize do_pipe before command parsing.maxim2003-07-211-0/+1
| | | | | | PR: bin/54649 Submitted by: Andy Gilligan <andy@evo6.org> MFC after: 3 days
* Take advantage of the use of file system IDs to simplify umount(8)iedowse2003-07-201-298/+144
| | | | | | | | | | | | | | | | | and make it work more reliably in a number of cases that have traditionally been troublesome. The new behaviour is: 1) If the filesystem can be determined by the fsid or device, or uniquely identified by the mountpoint, then just go ahead and call unmount(2) using the file system ID. 2) Otherwise use fstatfs(2) to resolve the path into a file system ID (checking with stat(2) that it is a filesystem root directory). Case 2 can potentially block if an NFS server is down, but it can always be avoided by using an unambiguous specification. It handles all the hard cases such as symlinks and mismatches between the mount list and reality. For example, if a filesystem was mounted as /mnt inside a chroot, it will show up in the mount list as /mnt, but now you can unmount it from outside the chroot with "umount /chroot_path/mnt".
* When mount(8) is invoked with the `-v' flag, display the filesystemiedowse2003-07-183-17/+54
| | | | | | | | | | | | ID for each file system in addition to the normal information. In umount(8), accept filesystem IDs as well as the usual device and path names. This makes it possible to unambiguously specify which file system is to be unmounted even when two or more file systems share the same device and mountpoint names (e.g. NFS mounts from the same export into different chroots). Suggested by: Dan Nelson <dnelson@allantgroup.com>
OpenPOWER on IntegriCloud