summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Teach vmstat -m and vmstat -z to use libmemstat(3). Certainrwatson2005-07-252-23/+96
| | | | | | | | | | | statistics from -z are now a bit different due to changes in the way statistics are now measured. Reproduce with some amount of accuracy the slightly obscure layouts adopted by the two kernel sysctls. In the future, we might want to normalize them. GC dosysctl(), which is now no longer used. MFC after: 1 week
* Disable thread support in BIND. It appears to reduce performance ratherdes2005-07-254-8/+8
| | | | | | | | than increase it, and seems to be the cause of the memory leaks which some users have reported. Requested by: dougb MFC after: 5 days
* Since libmemstat(3) now supports its own error management mechanism,rwatson2005-07-241-1/+2
| | | | | | | use that instead of trying to use errno, in order to produce a sensible error message. MFC after: 1 day
* In 2003, a -s flag was added to ministat to separate thephk2005-07-212-5/+8
| | | | | | | | | | avg/median/stddev bars onto separate lines for readability if the ranges overlapped. In 2005, ministat was extended to support more than 2 datasets, but the -s code was not updated. It will coredump if run with -s and >2 sets. PR: 82909 Submitted by: Dan Nelson <dnelson@allantgroup.com>
* Fix the "..." special command. If this command is found all furtherharti2005-07-191-1/+1
| | | | | | | | | | | commands for this target are appended to the .END target instead of beeing executed now. They are executed when the graph is finished. There was a bug with executing the .END target which came in when doing conversion to LST_FOREACH() which caused make to dump core. PR: bin/83698 Submitted by: Max Okumoto <okumoto@ucsd.edu> MFC after: 3 days
* Fix minor memory leak when expanding ${variable}sgad2005-07-181-1/+5
| | | | | Noticed by: Dave Hart MFC plans: after checking with re@
* Modify "netstat -mb" to use libmemstat(3) when acting on a live system,rwatson2005-07-182-36/+197
| | | | | | | | | | | | | | | | | | | | | | | | with a number of positive benefits: - Start using UMA(9) statistics for mbufs and clusters, which avoids using the mbuf allocator statistics which suffer from races under load on SMP. This should eliminate "negative" mbuf counts in netstat -mb. - We are now able to track cached (free) mbufs and clusters and count it towards memory allocated by the network stack. - We are now also able to track memory allocated to mbuf tags since libmemstat(3) can also query malloc(9). We don't print this except as part of the total (for now - #if 0). - We are now able to track mbuf/cluster/packet allocation failures, although they are not currently printed (#if 0). - Don't print out sfbuf statistics when running on a kernel core, as currently that code is able only to query sysctl for statistics. MFC after: 1 week
* remove myself as maintainerwosch2005-07-171-2/+0
|
* Note the events of 0707, lest we forget.ceri2005-07-151-0/+1
|
* Fix loder(1) to work with libraries. This can be useful toru2005-07-151-5/+14
| | | | | sort long DPADD lists automatically. While here, recognize `W' as the global symbol. This has been tested since 2004.
* Add myself to FreeBSD calendargarga2005-07-151-0/+1
| | | | Approved by: flz (mentor), Ken Smith (re)
* Print newly exported pfsync statistics with netstat(8).mlaier2005-07-143-1/+52
| | | | | Requested by: glebius MFC after: 1 week
* - Remove MLINKS to nonexistant manpagesbrueffer2005-07-145-7/+7
| | | | | | | - Change some section numbers to match reality - For MLINKS to manpages from ports, mention which port installs them MFC after: 3 days
* Fix two minor parsing bugs in -S processing:gad2005-07-131-14/+23
| | | | | | | | | | | 1) An unquoted space is always a separator, even when not "in_arg". 2) When a new destination buffer must be allocated during variable substitution, only copy data from the active buffer to the new one when we *are* "in_arg". These were noticed when testing variable-substitution of variables which have null values, and are not inside quoted strings... MFC plans: after a few days, and re@ approval...
* add myself as a new committerjkim2005-07-071-0/+1
| | | | | Reviewed by: anholt (mentor) Approved by: re (scottl)
* Our bsd.*.mk only supports 6 WARNS levels and we should not use higher valuesjohan2005-06-301-1/+1
| | | | | | until it does. Approved by: re (dwhite)
* Fixed troff warnings.ru2005-06-271-1/+1
| | | | Approved by: re (blanket manpages)
* Tidy up the markup.ru2005-06-221-34/+49
| | | | | Approved by: re (blanket) OK'ed by: gad
* Fix a bug where the value of ${SOMEVAR} would simply disappear if theregad2005-06-211-23/+48
| | | | | | | | was a separator character immediately before it. This wasn't likely to happen in #-lines, but we might as well get it right. Also fix it so that "" and "" will create a zero-length argument. Approved by: re (blanket `env')
* Put in a more descriptive heading for the `env' command.gad2005-06-211-1/+1
| | | | | Noticed by: Matthew D Fuller Approved by: re (blanket `env')
* Undo r1.14 to env.c. While it is unusual for environment variables togad2005-06-212-7/+2
| | | | | | | | start with a '/', they are more supported (by POSIX and SUSv3) than filenames which have an '=' in them. Noticed by: tjr Approved by: re (blanket `env')
* Add the '-S' and '-P' options. The '-S' option can be used to splitgad2005-06-205-32/+829
| | | | | | | | | | | | | | apart a string, and supports some text substitutions. This can be used to provide all the flexibility (and more!) that was lost by recent changes to how the kernel parses #!-lines in shell scripts. The '-P' option provides a way to specify an alternate set of directories to use when searching for the 'utility' program to run. This way you can be sure what directories are used for that search, without changing the value of PATH that the user has set. Note that on FreeBSD 6.0, this option is worthless unless the '-S' option is also used. Approved by: re (blanket `env')
* If the `utility' specified starts with a '/' character, then execute itgad2005-06-201-1/+2
| | | | | | | without checking it for an equals-sign. If it starts with a slash, then it cannot be a request to set the value of a valid environment variable. Approved by: re (blanket `env')
* Move the code that clears the environment when `-i' is specified, so it thatgad2005-06-201-5/+9
| | | | | | | it does not happen until all single-letter options are processed. This will be important for the -S option, which will be coming soon. Approved by: re (blanket `env')
* Add a '-v' option to `env', to make it easier to discover exactly what stepsgad2005-06-201-4/+25
| | | | | | | it is doing, and what order it does them. This will be much more useful as more options are added. Approved by: re (blanket `env')
* Decode chroot(2) args.alfred2005-06-141-0/+2
| | | | Approved by: re
* Markup and wording fixes.ru2005-06-149-18/+25
| | | | Approved by: re (blanket)
* Don't free(sock) before it's even allocated.des2005-06-101-1/+0
| | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 1 week
* Remove kludges intended to support src trees with partial obj trees.des2005-06-102-24/+8
| | | | Discussed with: ru
* Append a newline character to the usage string.csjp2005-06-051-1/+1
| | | | MFC after: 3 days
* Use the ki_udata field that was recently-added to kinfo_proc, instead ofgad2005-06-041-1/+1
| | | | stealing ki_spare[0] to hold a pointer.
* Back out revision 1.19 and 1.20 until I find mental clarity to deal witheivind2005-06-011-1/+7
| | | | issues bde pointed out.
* Add myself as a new committer.brd2005-06-011-0/+1
| | | | Approved by: ceri (mentor)
* o Teach login(1) to respect "hushlogin" and "nocheckmail" attributesmaxim2005-06-011-2/+7
| | | | | | | | defined in user's $HOME/.login_conf. PR: bin/75001 Submitted by: Rostislav Krasny MFC after: 2 weeks
* Don't use a patch w/in /usr/src. Programmatically change files when needed.obrien2005-05-312-25/+3
|
* Move #ident into #if 0.stefanf2005-05-319-18/+9
|
* Reduce compiler warning: variable might be used uninitialized, by givingcharnier2005-05-291-3/+5
| | | | an initial value.
* Move variable initialization to reduce compiler warning.charnier2005-05-291-2/+2
|
* Reduce compiler warning: variable might be used uninitialized, by givingcharnier2005-05-292-0/+2
| | | | an initial value.
* Move FreeBSD Id outside of copyright. Initialize variable.charnier2005-05-291-2/+4
|
* Modify vmstat(8)'s domem() routine, which is responsible for extractingrwatson2005-05-291-7/+38
| | | | | | | malloc(9) statistics from kernel memory or a kernel coredump, to catch up with recent changes to adopt per-CPU malloc(9) statistics. The new routines walk the per-CPU statistics pools and coalesce them for presentation to the user.
* dd a '-n' option to ministat, which causes it to display only summaryrwatson2005-05-271-9/+17
| | | | | statistics, not graph and statistical test output. Useful for automated processing.
* Remove an errno reset that became unnecessary.eivind2005-05-261-1/+0
| | | | Noticed by: juli
* decode utimes, lutimes, futimes, chflags, lchflags.alfred2005-05-261-0/+10
|
* Document a couple of gotchas.eivind2005-05-261-1/+7
|
* We are past 4.4BSD - use our new-found stat flags for pipes and fifos.eivind2005-05-261-6/+1
|
* decode mkdir args.alfred2005-05-261-0/+2
|
* Interlink systat(1), iostat(8) and vmstat(8) through their SEE ALSOkeramida2005-05-262-0/+2
| | | | sections, so that users of one can learn about the others easily.
* Add myself to the calendar.thompsa2005-05-261-0/+1
| | | | Approved by: bms (mentor)
* Under certain conditions the condition parser would go one past end ofharti2005-05-251-1/+1
| | | | | | the string. Until now this caused no harm, because the buffer code used to tack two NULs onto buffers. With the new, soon to come, parsing code this isn't the case anymore in all cases, so fix this.
OpenPOWER on IntegriCloud