aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement relative mixer adjustment.Matthew N. Dodd2003-04-092-13/+51
| | | | | | | PR: 46679 (similar functionality) Notes: svn path=/head/; revision=113299
* I forgot a rather crucial cast when I made this sectorsize agnostic.Poul-Henning Kamp2003-04-091-12/+12
| | | | | | | Tune iteration counts a bit. Notes: svn path=/head/; revision=113295
* Diskinfo is a small program to access the basic properties of a disk device:Poul-Henning Kamp2003-04-094-0/+384
| | | | | | | | | | sectorsize, mediasize etc. It also contains a small and naïve benchmark which reports on seek and transfer performance. Notes: svn path=/head/; revision=113287
* o Add jls(8) for listing active jails.Mike Barcroft2003-04-099-20/+292
| | | | | | | | | | o Add jexec(8) to execute a command in an existing jail. o Add -j option for killall(1) to kill all processes in a specified jail. o Add -i option to jail(8) to output jail ID of newly created jail. Notes: svn path=/head/; revision=113277
* RFC1548, section 5.8:Max Khon2003-04-071-0/+2
| | | | | | | | | | | | | Echo-Request and Echo-Reply packets may only be sent in the LCP Opened state. Echo-Request and Echo-Reply packets received in any state other than the LCP Opened state SHOULD be silently discarded. PR: 45760 Submitted by: Eugene Grosbein MFC after: 2 weeks Notes: svn path=/head/; revision=113221
* Free login_cap(3) resources after usage.Maxim Konovalov2003-04-071-0/+1
| | | | | | | Submitted by: demon Notes: svn path=/head/; revision=113206
* Remove the maximum patch size limit. It was intended as a check againstStephen McKay2003-04-072-5/+0
| | | | | | | | | | | | | applying corrupt deltas, but has never (to my knowledge) caught any sort of corruption, but instead has caused failures on correct deltas several times. I don't see any way to make the check useful, so it's gone. Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu> PR: 50461 MFC after: 7 days Notes: svn path=/head/; revision=113201
* s/obsoelte/obsolete/Robert Watson2003-04-071-4/+4
| | | | Notes: svn path=/head/; revision=113197
* Improve, and slightly soften, the deprecated flags. Call them deprecatedWarner Losh2003-04-061-10/+17
| | | | | | | | | and not obsolete, but add a warning about their disappearance. Add additional notes that explain the lameness of WEP. Notes: svn path=/head/; revision=113176
* o Tone down the obsolete messages since we actually do something, forWarner Losh2003-04-061-36/+48
| | | | | | | | | | | | | | | the moment, with the deprecated flags. o Better error reporting on getting values from the driver. When we can't get one for the default dumpinfo output. The old driver would succeed for invalid RIDs, while the new driver reports errors. Since the info we're getting from the card/driver doesn't exist for all cards, we just don't report them. Improve error reporting elsewhere now that wi_getval doesn't exit. Also fix a file descriptor leak as a side effect. Reported by: scottl Notes: svn path=/head/; revision=113174
* Use assignment, not equivalence test.Nate Lawson2003-04-051-1/+1
| | | | | | | No response from: suz Notes: svn path=/head/; revision=113137
* When session is over, IPv6 default route to tun should beHajimu UMEMOTO2003-04-051-1/+4
| | | | | | | | | removed, too. MFC after: 1 week Notes: svn path=/head/; revision=113110
* style.Makefile(5)David E. O'Brien2003-04-0473-114/+129
| | | | Notes: svn path=/head/; revision=113091
* - Print out an error message instead of dereferencing a NULL pointerRobert Drehmel2003-04-041-7/+29
| | | | | | | | | | | | | if matchinstalled() found no packages, which happens to be the case after fresh installations. - Instead of using strstr(3) to match the package name, depend on matchinstalled()'s MATCH_REGEX package matching. PR: bin/50384 MFC after: 2 weeks Notes: svn path=/head/; revision=113079
* Set link-local address of tun interface with prefixlen = 64Hajimu UMEMOTO2003-04-042-8/+8
| | | | | | | | | | | | instead of 128. It makes RA happy. Reported by: rafa@dif.um.es, SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp> Reviewed by: SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp> MFC after: 1 week Notes: svn path=/head/; revision=113067
* fixed invalid pointer referenceSUZUKI Shinsuke2003-04-021-0/+1
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=112976
* o Fix error messages formatting, style.Maxim Konovalov2003-04-021-29/+22
| | | | | | | | Prodded by: bde Reviewed by: bde Notes: svn path=/head/; revision=112972
* Back out the totally unapproved backout of my commits.David E. O'Brien2003-03-292-58/+1
| | | | Notes: svn path=/head/; revision=112767
* If IPCP is disabled, susccess of IPV6CP negotiation is sufficientHajimu UMEMOTO2003-03-281-0/+5
| | | | | | | | to communicate by IPv6. So, the prompt should be `PPP' rather than `PPp'. Notes: svn path=/head/; revision=112753
* Don't pass NULL in as a flags argument to libfetch's fetchGetURL()Robert Watson2003-03-271-1/+1
| | | | | | | | | as this can result in a NULL pointer deference when parsing the flags later. This change fixes "pkg_add -r" on 5.0-CURRENT for me; not quite clear how the problem was introduced. Notes: svn path=/head/; revision=112722
* o Add -u <username> flag to jail(8): set user context before exec.Maxim Konovalov2003-03-273-12/+84
| | | | | | | | | | PR: bin/44320 Submitted by: Mike Matsnev <mike@po.cs.msu.su> Reviewed by: -current MFC after: 6 weeks Notes: svn path=/head/; revision=112705
* Change DEFMX to 0. This removes the size limit for print jobs by default.Eivind Eklund2003-03-272-3/+4
| | | | | | | Discussed with: gad (now), arch (a year ago) Notes: svn path=/head/; revision=112701
* Add a sample specfile listing to FILES.Chris Costello2003-03-261-0/+8
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=112690
* tightened check for the length of ND options.Hajimu UMEMOTO2003-03-261-2/+25
| | | | | | | | Submitted by: jinmei@kame.net (JINMEI Tatuya) Obtained from: KAME Notes: svn path=/head/; revision=112676
* Don't install wrong IPv6 route by add command.Hajimu UMEMOTO2003-03-262-3/+12
| | | | Notes: svn path=/head/; revision=112673
* Passing a u_char to ntohs() is guaranteed to give the wrong answer !Brian Somers2003-03-261-2/+2
| | | | | | | Submitted by: Francis Dupont <Francis.Dupont@enst-bretagne.fr> Notes: svn path=/head/; revision=112660
* Add a ``force-scripts'' option for using chat scripts with -direct andBrian Somers2003-03-264-20/+40
| | | | | | | | | -dedicated links. Submitted by: Maksim Yevmenkin <myevmenk@exodus.net> Notes: svn path=/head/; revision=112659
* Once ppp session is over, the route to ff02::tun0/32 wasHajimu UMEMOTO2003-03-251-1/+12
| | | | | | | | deleted, and never came back. Now, the route to ff02::tun0/32 is installed at the end of IPV6CP negitiaton. Notes: svn path=/head/; revision=112618
* We need filling scopeid to install routes for link-localHajimu UMEMOTO2003-03-251-0/+24
| | | | | | | scope addresses. Notes: svn path=/head/; revision=112616
* Since ppp.link{up,down} is invoked at the end of IPCP negotiation, ifHajimu UMEMOTO2003-03-251-2/+32
| | | | | | | | | we need ppp.link{up,down}, we couldn't disable IPCP. Now, if IPCP is disabled, ppp.link{up,down} is invoked at the end of IPV6CP negotiation. Notes: svn path=/head/; revision=112613
* - Add the 'b' option which causes BLOCKSIZE to be hornored whenMatthew N. Dodd2003-03-254-8/+29
| | | | | | | | the 'q' or 'Q' options are present. - Document BLOCKSIZE. Notes: svn path=/head/; revision=112579
* Implement the 'Q' option which is like 'q' (quiet output) exceptMatthew N. Dodd2003-03-254-2/+17
| | | | | | | | | | | that it prefaces the output with the package name. This is useful for things like this: # pkg_info -Qsa | awk -F : '{print $2 "\t" $1}' | sort -rn | expand -t 10 Notes: svn path=/head/; revision=112572
* Use correct item to track max width of listEivind Eklund2003-03-241-1/+1
| | | | Notes: svn path=/head/; revision=112560
* Fix bug that made cdcontrol play <track> play <track> - 1Eivind Eklund2003-03-241-2/+2
| | | | Notes: svn path=/head/; revision=112559
* Document the -g option in the usage message.Mike Makonnen2003-03-231-0/+1
| | | | | | | Approved by: markm (mentor)(implicit) Notes: svn path=/head/; revision=112519
* Make -c only set flag_c and not a toggle. With flag_c disabled byGiorgos Keramidas2003-03-221-1/+1
| | | | | | | | default, this makes the behavior of gstat more predictable when -c is specified multiple times on the command line. Notes: svn path=/head/; revision=112491
* Add a small manpage.Giorgos Keramidas2003-03-221-0/+87
| | | | Notes: svn path=/head/; revision=112490
* Add & use a usage() function.Giorgos Keramidas2003-03-221-2/+12
| | | | Notes: svn path=/head/; revision=112488
* Add error and range checking to strtoul() to avoid ending up with aGiorgos Keramidas2003-03-221-1/+2
| | | | | | | delay time of ULONG_MAX when -I is passed a non-numeric arg. Notes: svn path=/head/; revision=112487
* Why doesn't anybody ever tell me anything? When did we get a libsbuf ?Poul-Henning Kamp2003-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 Notes: svn path=/head/; revision=112468
* Fixed a typo in ${.CURDIR} spelling, fatal on systemsRuslan Ermilov2003-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''. Notes: svn path=/head/; revision=112462
* Duh! Use correct number ../Poul-Henning Kamp2003-03-211-1/+1
| | | | | | | spotted by: imp Notes: svn path=/head/; revision=112460
* Add a target for the creation of a /etc/shells map and add it toRobert Drehmel2003-03-211-2/+12
| | | | | | | the maps which are built by default. Notes: svn path=/head/; revision=112458
* Call endwin() to restore terminal state just before exiting.Giorgos Keramidas2003-03-211-0/+2
| | | | | | | Approved by: phk Notes: svn path=/head/; revision=112457
* Add a rudimentary gstat(8) to the system.Poul-Henning Kamp2003-03-203-0/+252
| | | | | | | | This is a small curses based program which shows the diskactivity inside GEOM. Notes: svn path=/head/; revision=112444
* Add a -g option to specify a default login group.Mike Makonnen2003-03-202-10/+22
| | | | | | | Approved by: markm (mentor)(implicit) Notes: svn path=/head/; revision=112433
* The -s option should not assume -U.Anton Berezin2003-03-191-0/+1
| | | | | | | MFC After: 2 weeks Notes: svn path=/head/; revision=112403
* o initialize a couple of local flags so the user can re-edit groupsMike Makonnen2003-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) Notes: svn path=/head/; revision=112401
* portmap_enable -> rpcbind_enable.Maxim Konovalov2003-03-181-2/+2
| | | | | | | Spotted by: Andrew Khlebutin <andreyh@perm.ru> Notes: svn path=/head/; revision=112376
* Run a revision of the devstat interface:Poul-Henning Kamp2003-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 Notes: svn path=/head/; revision=112288