summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Document the -g option in the usage message.mtm2003-03-231-0/+1
| | | | Approved by: markm (mentor)(implicit)
* Make -c only set flag_c and not a toggle. With flag_c disabled bykeramida2003-03-221-1/+1
| | | | | default, this makes the behavior of gstat more predictable when -c is specified multiple times on the command line.
* Add a small manpage.keramida2003-03-221-0/+87
|
* Add & use a usage() function.keramida2003-03-221-2/+12
|
* Add error and range checking to strtoul() to avoid ending up with akeramida2003-03-221-1/+2
| | | | delay time of ULONG_MAX when -I is passed a non-numeric arg.
* Why doesn't anybody ever tell me anything? When did we get a libsbuf ?phk2003-03-211-5/+3
| | | | | | | | Geeze, I'll just crawl back into the kernel where I know what's going on... Use libsbuf instead of pulling a file in from the kernel. Taught by: jhb
* Fixed a typo in ${.CURDIR} spelling, fatal on systemsru2003-03-211-12/+5
| | | | | | | | | without the /sys symlink pointing to the current tree. (Revision 1.2 made it non-fatal, but anyway.) Apply style.Makefile(5). Fixed ``make checkdpadd''.
* Duh! Use correct number ../phk2003-03-211-1/+1
| | | | spotted by: imp
* Add a target for the creation of a /etc/shells map and add it torobert2003-03-211-2/+12
| | | | the maps which are built by default.
* Call endwin() to restore terminal state just before exiting.keramida2003-03-211-0/+2
| | | | Approved by: phk
* Add a rudimentary gstat(8) to the system.phk2003-03-203-0/+252
| | | | | This is a small curses based program which shows the diskactivity inside GEOM.
* Add a -g option to specify a default login group.mtm2003-03-202-10/+22
| | | | Approved by: markm (mentor)(implicit)
* The -s option should not assume -U.tobez2003-03-191-0/+1
| | | | MFC After: 2 weeks
* o initialize a couple of local flags so the user can re-edit groupsmtm2003-03-191-2/+8
| | | | | | | | next time the subroutine is re-entered o s/configrun/configflag/ o Make the prompt make sense if the user was creating a configuration file Approved by: markm (mentor)(implicit)
* portmap_enable -> rpcbind_enable.maxim2003-03-181-2/+2
| | | | Spotted by: Andrew Khlebutin <andreyh@perm.ru>
* Run a revision of the devstat interface:phk2003-03-151-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kernel: Change statistics to use the *uptime() timescale (ie: relative to boottime) rather than the UTC aligned timescale. This makes the device statistics code oblivious to clock steps. Change timestamps to bintime format, they are cheaper. Remove the "busy_count", and replace it with two counter fields: "start_count" and "end_count", which are updated in the down and up paths respectively. This removes the locking constraint on devstat. Add a timestamp argument to devstat_start_transaction(), this will normally be a timestamp set by the *_bio() function in bp->bio_t0. Use this field to calculate duration of I/O operations. Add two timestamp arguments to devstat_end_transaction(), one is the current time, a NULL pointer means "take timestamp yourself", the other is the timestamp of when this transaction started (see above). Change calculation of busy_time to operate on "the salami principle": Only when we are idle, which we can determine by the start+end counts being identical, do we update the "busy_from" field in the down path. In the up path we accumulate the timeslice in busy_time and update busy_from. Change the byte_* and num_* fields into two arrays: bytes[] and operations[]. Userland: Change the misleading "busy_time" name to be called "snap_time" and make the time long double since that is what most users need anyway, fill it using clock_gettime(CLOCK_MONOTONIC) to put it on the same timescale as the kernel fields. Change devstat_compute_etime() to operate on struct bintime. Remove the version 2 legacy interface: the change to bintime makes compatibility far too expensive. Fix a bug in systat's "vm" page where boot relative busy times would be bogus. Bump __FreeBSD_version to 500107 Review & Collaboration by: ken
* manufacturer id is typically 4 bytesimp2003-03-141-1/+1
|
* Increase the size of the property buffer to 8192. 1024 wasn't enough tojake2003-03-141-1/+1
| | | | retrieve certain nodes.
* Remove ftp2.it.FreeBSD.org from the list of mirrors.roam2003-03-142-4/+0
| | | | | Submitted by: Alex Dupre <sysadmin@alexdupre.com> Approved by: silence on -arch
* Don't be so verbose about 'unknown' CIS tuples. We were printing eachimp2003-03-141-2/+1
| | | | | | | | | | | | | | | | one three times before we did the dump. Also, we printed 0x00 for the tuple type rather than the actual tuple type. Now, we print the actual tuple type. This appears to have no ill effects. Should get rid of the Code NN not found and code Unknown ignored messages. The ignored messages are still generated for tuples tuples who have a minimum length set and we find a tuple of that type that's shorter than the minimum length.
* - Align the function prototype of the external `crc' function withrobert2003-03-135-13/+11
| | | | | | | | | | | | | | how `crc' is actually defined. - Remove an unnecessary `extern' variable declaration. Data type corrections: - Define a variable which contains a file byte offset value as type off_t as required by the `crc' function. - Change the type of a variable carrying a CRC checksum from `u_long' to `uint32_t'. - Substitute the wrong `extern' variable declaration of `crc_total' by putting a correct one in the shared header extern.h. `crc_total' is defined as an `uint32_t', thus fixing incorrect mtree checksums on big-endian LP64 machines.
* - Align the function prototype of the external `crc' function withrobert2003-03-131-5/+10
| | | | | | | | | | | | | | how `crc' is actually defined. Data type corrections: - Define variables which contain file byte offset values as type off_t as required by the `crc' function. - Change the type of a variable carrying a CRC checksum from `u_long' to `uint32_t'. - Parse the length of a file with sscanf as `intmax_t' (as there is no conversion specifier for `off_t'). Style(9): - Put an empty line between #include directives for system and user header files.
* Break setfmac.8 into two actual man pages, and reword bits of thechris2003-03-133-66/+120
| | | | | | | setfsmac(8) documentation. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Fix two minor mismatch reporting output errors.tobez2003-03-131-2/+2
| | | | | Reviewed by: phk MFC After: 3 weeks
* Complete the endianness support -- sparc64 can now do i386.ru2003-03-131-16/+10
| | | | | Tested on: sparc64 -> i386, i386 -> sparc64 Debugged by: elfdump(1)
* Make this work on different endianness machines.ru2003-03-114-173/+100
| | | | | | | | Tested on: sparc64 : FreeBSD/i386 bootstrap loader, Revision 1.1 : (ru@panther.freebsd.org, Tue Mar 11 05:31:14 PST 2003) : Loading /boot/defaults/loader.conf
* Convert kgzip(8) to be an i386 cross-tool. This is needed forru2003-03-114-61/+262
| | | | | | | cross-releasing i386 on different architectures. This version provides an i386 version of <a.out.h>, and handles endianness. Tested on: alpha, sparc64
* Revert rev. 1.244 change -- only build kgzip(8) on i386.ru2003-03-111-1/+1
| | | | (The cross-release needs will be satisfied another way.)
* Make usage() match SYNOPSIS.ru2003-03-091-1/+1
|
* Get rid of the randomizing factor.ru2003-03-091-1/+1
|
* Print FYI messages on stderr. Previously, they were printed on stdout,des2003-03-091-1/+3
| | | | | | | | | and due to buffering they would sometimes come out after the actual error message when mkheaders() failed due to an unknown device, so you'd get an error messages followed by 20 or 30 lines of harmless warnings. There are lots of other warning messages in config(8) that are printed on stdout, but these were the most egregious (at least with LINT).
* Fix interactions between entries for a specific file vs entries forgad2003-03-091-62/+177
| | | | | | | | | a filename pattern, and also wrt filenames given on the command line. Now if a file is listed as a specific entry, it will not *also* be processed by an entry specifying a pattern. And filename-patterns will now only match existing files (ignoring directories, etc). MFC after: 3 weeks
* Remove a function prototype for `crc' and an associated comment whichrobert2003-03-092-6/+0
| | | | were useless for at least seven years and eight months.
* The processing of files given on the command-line will work a little bettergad2003-03-091-1/+1
| | | | | | | if we return the entire worklist, instead of just the last entry. A minor fix to revision 1.57. MFC after: 15 days
* Add a config-file flag of 'U' or 'u' to indicate that the pid-filegad2003-03-081-46/+115
| | | | | | | | | | | | | | | will contain the pid for a process group. This means the file must contain a negative value (as would be needed in the 'kill' commmand). I still need to write man-page update before MFC-ing. This started by rewriting the get_pid() routine. Later I looked at what OpenBSD has, and included a few ideas from their send_signal() routine. So, parts of this change are from OpenBSD, even though OpenBSD does not actually have a 'U' flag. PR: bin/28435 Reviewed by: no objections on freebsd-arch MFC after: 3 weeks
* KerberosIV deorbit sequence: Un-teach sysinstall about KerberosIV. I'mmarkm2003-03-086-20/+5
| | | | | not 100% sure that I've done this in the right way. If folks want to revisit this, please be my guest.
* Prefix all -n (noaction) "unix cmds" with tab, thus making it much easiergad2003-03-071-19/+24
| | | | | | | | to sort out noaction messages from -v (verbose) messages. This also improves a few noaction messages. Obtained from: OpenBSD MFC after: 3 weeks
* Move the -s (nosignal) processing, as newsyslog needs to print out agad2003-03-071-11/+14
| | | | | | | | | | warning message if -s is specified and it rotates a file that expects to be compressed. This warning message is not printed if -R is also specified, because we assume a -sR request is coming from the process which would have been signaled, and that it has already released the logfile. Indirectly noticed by: sheldonh
* Use correct interface name (it's different on -current).sobomax2003-03-052-2/+2
| | | | | Submitted by: Brooks Davis <brooks@one-eyed-alien.net> MFC after: 20 days
* Remove local hack that somehow slipped into the previous commit.sobomax2003-03-052-2/+2
| | | | MFC after: 20 days
* Add missed description for the `ds' (disc(4)) pseudo-interface.sobomax2003-03-052-2/+4
| | | | | Sponsored by: Porta Software Ltd MFC after: 20 days
* Further fix the syntax by ignoring empty and whitespace-only lines.ru2003-03-051-1/+1
| | | | Prompted by: Eugene Grosbein <eugen@kuzbass.ru>
* Put back the deletion of TEMPROOT/etc/passwd.dougb2003-03-051-1/+1
| | | | Noticed by: maxim
* Better handle the recent (desirable) change to create login.conf.db atdougb2003-03-051-4/+4
| | | | install time, and make sure to catch any future .db files as well.
* Start whining to stderr when people use obsolete flags. These flagsimp2003-03-041-0/+12
| | | | will be removed. Give terse pointer to ifconfig h0h0 magic to use.
* another obsolete flagimp2003-03-041-0/+6
|
* Correct mistake in T flag: weptxkey is the replacementimp2003-03-041-1/+1
|
* Document the obsolete flags as obsolete, with pointers to theirimp2003-03-041-16/+97
| | | | | | | | ifconfig equivalents. This is the first step in removing them from the system. Users of wicontrol to configure the wireless card are strongly encouraged to change their scripts, as sometime in the future all configuration of the cards that isn't in ifconfig will be removed with extreme prejustice.
* 3rd party modules live in /boot/modules nowadays.ru2003-03-031-1/+1
|
* Add missing 'static' on two routines, so they match their declarations.gad2003-03-031-2/+2
| | | | | | PR: 29363 (a small part of) Submitted by: dinoex MFC after: 3 weeks
OpenPOWER on IntegriCloud