aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* At imp's request, force devd to be statically compiled. This avoids theGordon Tetlow2003-08-171-0/+2
| | | | | | | | | | need for libstdc++ in /lib, and the generated binary is actually smaller statically linked than dynamically + sizeof(libstdc++). Additionally, devd doesn't use get*by*() which is one of the main motivations for dynamically linking your root partition anyway. Notes: svn path=/head/; revision=119019
* Stage 4 of dynamically linked root support. Add a big knob,Gordon Tetlow2003-08-171-1/+4
| | | | | | | | | | | | | | WITH_DYNAMICROOT, which will toggle the generation of dynamically-linked binaries for installation in /bin and /sbin. It is currently off, meaning that /bin and /sbin are still statically linked by default. If something goes wrong (which I hope doesn't), this is what /rescue is all about. Please do not try to use WITH_DYNAMICROOT and NO_RESCUE to save space or some other equally silly reason. If you do and end up having problems, you have been warned. Notes: svn path=/head/; revision=119018
* Hook up ffsinfo(8).Robert Watson2003-08-141-0/+1
| | | | Notes: svn path=/head/; revision=118919
* Commit 1 of 2 to fix ffsinfo(8) for UFS2.Robert Watson2003-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 Notes: svn path=/head/; revision=118918
* support poll(2).Hajimu UMEMOTO2003-08-141-1/+1
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118916
* Commit 1 of 2 to fix ffsinfo(8) for UFS2.Robert Watson2003-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 Notes: svn path=/head/; revision=118915
* - Clarify the port range syntax in -redirect_port.Ruslan Ermilov2003-08-131-14/+24
| | | | | | | | | PR: docs/46286 - "IP number" -> "IP address", for consistency. Notes: svn path=/head/; revision=118875
* Added an option to specify an alternate PID file.Ruslan Ermilov2003-08-132-3/+23
| | | | | | | | PR: bin/37159 Submitted by: "Aleksandr A. Babaylov" <.@babolo.ru> Notes: svn path=/head/; revision=118873
* Add a '-M mask' option so that users can have differentTom Rhodes2003-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 Notes: svn path=/head/; revision=118837
* Correct a grammatical error.Ceri Davies2003-08-121-1/+1
| | | | Notes: svn path=/head/; revision=118836
* Add a program for configuration of the ATM drivers and the IP over ATMHartmut Brandt2003-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). Notes: svn path=/head/; revision=118824
* Add the new arguments for the add pvc command to the help information.Hartmut Brandt2003-08-111-1/+3
| | | | | | | | | | Correct a comment. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 3 days Notes: svn path=/head/; revision=118772
* Turn the annoying and long error message off. It was soMartin Blapp2003-08-091-1/+1
| | | | | | | | | long that it was even hard to find the real error cause. Requested by: rwatson Notes: svn path=/head/; revision=118702
* PR: docs/53688Bruce M Simpson2003-08-091-8/+10
| | | | | | | | Submitted by: bms Approved by: jake (mentor) Notes: svn path=/head/; revision=118685
* Make this WARNS=6 clean by prototyping 'usage'.Johan Karlsson2003-08-082-0/+3
| | | | | | | Tested by: make universe Notes: svn path=/head/; revision=118671
* Make this WARNS=6 clean by renaming the variable 'err' to 'error'Johan Karlsson2003-08-072-7/+7
| | | | | | | | | in order not to shadow err(3). Tested by: make universe Notes: svn path=/head/; revision=118632
* Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, soWarner Losh2003-08-073-5/+5
| | | | | | | remove the unneeded +1. Notes: svn path=/head/; revision=118582
* No need to define optind as an extern. stdlib.h does that for us.Warner Losh2003-08-071-1/+0
| | | | Notes: svn path=/head/; revision=118581
* Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL.Warner Losh2003-08-071-1/+1
| | | | Notes: svn path=/head/; revision=118580
* MAXPATHLEN includes the trailing NUL, so no need to add 1 here.Warner Losh2003-08-071-1/+1
| | | | Notes: svn path=/head/; revision=118579
* Localize 'ls' outputAndrey A. Chernov2003-08-062-4/+8
| | | | | | | Don't set 8bit in quote processing Notes: svn path=/head/; revision=118526
* Don't reinvent the wheel: Use setmode(3) to interpretYaroslav Tykhiy2003-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). Notes: svn path=/head/; revision=118500
* Exit with a non-zero status upon a block allocation failure.Yaroslav Tykhiy2003-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 Notes: svn path=/head/; revision=118493
* Make this WARNS=6 clean by:Johan Karlsson2003-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 Notes: svn path=/head/; revision=118478
* LANG->LC_ALLAndrey A. Chernov2003-08-041-1/+1
| | | | | | | Pointed by: ru Notes: svn path=/head/; revision=118449
* Fix problem differently, use Andrey A. Chernov2003-08-041-1/+1
| | | | | | | | LANG=C tr 'a-z' 'A-Z'  for hypotetical case that script may generate non-ascii characters Notes: svn path=/head/; revision=118431
* Use tr '[:lower:]' '[:upper:]' to work with any localeAndrey A. Chernov2003-08-041-1/+1
| | | | Notes: svn path=/head/; revision=118428
* style.Makefile(5)'izeDavid E. O'Brien2003-08-035-32/+15
| | | | Notes: svn path=/head/; revision=118394
* Spell "file system" correctly.Ruslan Ermilov2003-08-013-3/+3
| | | | Notes: svn path=/head/; revision=118302
* Make firmware version 4.1.12 the default for download to PCA-200E adapters.Hartmut Brandt2003-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. Notes: svn path=/head/; revision=118265
* Fix the code with respect to the assumption that sizeof(long) == 4.Hartmut Brandt2003-07-301-32/+32
| | | | Notes: svn path=/head/; revision=118215
* Fix what was a common idiom in PDP-11 days: declare a local int andHartmut Brandt2003-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. Notes: svn path=/head/; revision=118214
* Make this compile with WARNS=6.Hartmut Brandt2003-07-302-102/+78
| | | | Notes: svn path=/head/; revision=118213
* Fix warnings: a variable that was unused, a variable thatHartmut Brandt2003-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 Notes: svn path=/head/; revision=118211
* Use size_t for buffer sizes. Improve error handling in some places.Hartmut Brandt2003-07-298-148/+117
| | | | | | | Remove a __DECONST() that was needed before this interface cleanup. Notes: svn path=/head/; revision=118163
* Add support for CBR and VBR PVCs. Enhance the error handling forHartmut Brandt2003-07-283-39/+159
| | | | | | | | | | the 'add pvc' command. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 2 weeks Notes: svn path=/head/; revision=118125
* Enable dhclient to poll the interface state and send onlyMartin Blapp2003-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 Notes: svn path=/head/; revision=118110
* Make atm WARNS=6 clean. The changes are mostly:Hartmut Brandt2003-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 Notes: svn path=/head/; revision=118107
* o Fix usage(): remove '-l', add missed '-f', sort.Maxim Konovalov2003-07-261-1/+1
| | | | Notes: svn path=/head/; revision=118062
* Remove references to the '-l' option in synopsis. The rest of theSimon L. B. Nielsen2003-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) Notes: svn path=/head/; revision=118057
* Minor mdoc(7) cleanup, based on the PR below.Simon L. B. Nielsen2003-07-261-2/+4
| | | | | | | | | | PR: docs/54826 Submitted by: Lukas Ertl <l.ertl@univie.ac.at> Reviewed by: ru Approved by: ceri (mentor) Notes: svn path=/head/; revision=118056
* When deciding whether to download the microcode or not look at the API ratherHartmut Brandt2003-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. Notes: svn path=/head/; revision=118013
* Due to a gcc bug, it doesn't like local variables with names like 'sin'.Hartmut Brandt2003-07-251-3/+3
| | | | | | | Rename this for the moment. Also fix a sparc64 alignment warning. Notes: svn path=/head/; revision=118001
* Make ilmid WARNS=6 clean. The problem were a couple of unused functionHartmut Brandt2003-07-252-14/+14
| | | | | | | arguments and missing consts. Notes: svn path=/head/; revision=118000
* Build /sbin/gpt on amd64 for good luck as well.Peter Wemm2003-07-241-1/+2
| | | | Notes: svn path=/head/; revision=117948
* Simplistic C comment re is wrong, use more correct oneWarner Losh2003-07-231-1/+1
| | | | Notes: svn path=/head/; revision=117945
* Remove old workaroundWarner Losh2003-07-231-3/+1
| | | | Notes: svn path=/head/; revision=117944
* Add a note that net.inet.ip.fw.autoinc_step is ipfw2-specificLuigi Rizzo2003-07-221-0/+4
| | | | Notes: svn path=/head/; revision=117868
* Quote from a Problem Report:Maxim Konovalov2003-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 Notes: svn path=/head/; revision=117824
* o Initialize do_pipe before command parsing.Maxim Konovalov2003-07-211-0/+1
| | | | | | | | | PR: bin/54649 Submitted by: Andy Gilligan <andy@evo6.org> MFC after: 3 days Notes: svn path=/head/; revision=117821