summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Document fetch(1) environment variables in fetch(1) man page, instead ofwes2004-01-231-12/+108
| | | | | | | taking lazy users on the arduous journey through SEE ALSO to fetch(3). PR: docs/61759 Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
* Fix SYNOPSIS of manual page, clustering no-arg options correctly.sheldonh2004-01-222-4/+2
| | | | Sync usage with manpage.
* Two fixes for script(1):cperciva2004-01-221-11/+22
| | | | | | | | | | | | | 1. Don't do tty stuff to stdin if stdin isn't a tty. 2. When running in non-interactive mode, don't select(2) on the standard input. This un-breaks non-interactive portupgrade. PR: bin/59036 [1] PR: bin/56166, bin/57414, ports/57415, ports/60534 [2] MFC after: 7 days Approved by: rwatson (mentor)
* Serial murderers shouldn't commit suicide. (killall shouldcperciva2004-01-221-0/+4
| | | | | | | avoid killing itself.) PR: bin/46107 Submitted by: stacey <stacey_@starwhack.net>
* Fixed broken logic when parsing double quotes.ru2004-01-221-14/+5
| | | | | PR: bin/61673 MFC after: 1 month
* Userland signed char fixes for PPC build. Problems were using a chargrehan2004-01-222-2/+2
| | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe
* Two fixes here:cperciva2004-01-221-2/+4
| | | | | | | | | | | 1. If fgets fails, don't go into an infinite cpu-intensive loop. Instead, check to see if the terminal still exists, and sleep(1) otherwise. 2. When we check to see if the terminal still exists, make sure we're not mislead by EINTR. This could have been a security issue, but fortunately the current implementation of tcgetattr doesn't EINTR. PR: bin/60758 Approved by: rwatson (mentor)
* Add my birthday.philip2004-01-211-0/+1
| | | | Approved by: njl (mentor)
* Revert previous commit, ru has ideas how to better document thisschweikh2004-01-211-9/+1
| | | | elsewhere.
* Use a larger field for the size in blocks; the current width (4 digits)des2004-01-201-1/+1
| | | | is only good for 5 MB.
* Document __MAKE_CONF and its default, /etc/make.conf.schweikh2004-01-191-1/+9
| | | | MFC-After: 2 weeks
* Remove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, makecharnier2004-01-184-21/+39
| | | | | | | | | | a new function dup_shell() to replace ok_shell() and make it unconditionnally strdup() its result to make the caller's code simplier. Change ok_shell() to just return an integer value suitable for tests (it was used mainly for that purpose). Do not use strdup() in the caller's code but rely on dup_shell() that will do the job for us. PR: bin/2442
* o -m flags contructs case sensitive RE, not case insensitive.maxim2004-01-181-1/+1
| | | | MFC after: 1 week
* o Sync usage() and man page synopsis with reality.maxim2004-01-182-9/+3
| | | | MFC after: 1 week
* Put chkey(1), newkey(8), and keyserv(8) into the crypto distribution.ru2004-01-182-0/+2
|
* - Build things in pure dictionary order (see sort(1)).ru2004-01-161-41/+57
| | | | | | | | | | - Unify the conditional assignments section so that architectural exclusions come first, then options and !options, sorted by the option name, also in directory order, then architecture specific sections, sorted by the architecture name, with i386 being a traditional exception. Prodded by: bde
* Allow variable substitutions in SYSV variable substitutions likeharti2004-01-121-22/+33
| | | | | | | $(SRC:.c=$O). This brings us closer to other makes. Reviewed by: ru Obtained from: NetBSD
* Remove (another) now redundant and now conflicting declaration ofnectar2004-01-121-3/+2
| | | | | | | | sysarch(2). Remove now unnecessary casts. grep(1) says this is the last sysarch declaration in the src tree. Reported by: alpha tinderbox
* Moved the code for :U and :L modifiers where it belongs, so thatru2004-01-101-32/+32
| | | | | the fallback for SysV (now in POSIX) variable substitution works for old_string arguments starting with 'U' or 'L'.
* Move declarations of Procfd to a header file.dwmalone2004-01-079-8/+2
|
* Fix a printf format warning.dwmalone2004-01-071-1/+1
|
* Mark a function as `unused' in generated code. (Sometimes it is used,nectar2004-01-061-1/+7
| | | | sometimes it is not, depending upon the input grammar.)
* Work around a `label defined but not used' warning in *generated* code.nectar2004-01-061-0/+2
|
* When root tries to su to a non-existent user, pam_authenticate() willdes2004-01-061-4/+4
| | | | | | | | | normally succeed (because root can su to anyone), but pam_acct_mgmt() will most likely fail, causing su to log a confusing "pam_acct_mgmt: error in service module" message. To avoid this, call getpwnam() before pam_acct_mgmt(). Sponsored by: registrar.no
* Correct reference to a non existant man page.charnier2004-01-041-1/+1
|
* Avoid using .Nm at the start of the sentence.charnier2004-01-041-3/+2
|
* Remove inappropriate reference to USSR.grog2004-01-011-1/+1
|
* Fix typo in prev commitache2003-12-311-1/+1
|
* Remove incorrect holiday, add new one, fix another oneache2003-12-311-2/+2
|
* Use floating point instead of unsigned long longs in percentagebde2003-12-291-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | calculations. Long longs should never be used, since they break compiling with C90 compilers and don't necessarily work any better than longs for avoiding overflow. Print percentages with another digit of precision since they can be small and this is easy to do now that the format is floating point. Restored some more of the old -m output: Print the percentage of allocated memory that is in use. This is the amount of memory in active mbufs and mbuf clusters relative to the total amount of memory soft-allocated for mbufs and mbuf clusters. Print the percentage of allocated memory that is wired (cached). The old mbuf allocator never freed memory so printing this value wasn't useful. A previous version of netstat for the new allocator printed the in-use amount as a percentage of the wired amount. Fixed some nearby style bugs (excessive parenthesization and a redundant return). Reviewed by: alfred
* Fixed missing declaration of pluralies(). This showed up as strangebde2003-12-292-0/+3
| | | | | | | | | printf format warnings for inet6.c (pluralies() was implicit int, but the context requires a "char *"). Added WARNS?=2 to the Makefile so that such errors don't come back. Added NO_WERROR?= to the Makefile because I haven't checked that setting WARNS doesn't uncover more bugs except on i386's.
* Fixed style bugs created in rev.1.27 by removing "__P(" and its closing ")"bde2003-12-291-75/+75
| | | | without removing the space before it.
* Add my birthdate (gifts are welcome :-)).ale2003-12-281-0/+1
| | | | Approved by: blackend (mentor)
* Teach netstat about the new sendfile statistics.silby2003-12-281-0/+4
|
* Fix signal behaviour.cracauer2003-12-281-2/+7
| | | | | | | | | | | | | | | | | | | | | In my last change I made sure that the signal as reported from a truss exit is the same as if truss wasn't between parent and trussed program. I was smart enough to not have it coredump on SIGQUIT but it didn't ocur to me SIGSEGV might cause a coredump, too :-) So get rid of SIGQUIT extra hack and limit coredumpsize to zero instead. Tested: still works, correct signal reported. No more codedumps from SIGSEGV in the trussed proces. This file compiles cleanly on AMD64 (sledge). PR: Submitted by: Reviewed by: Approved by: Obtained from: MFC after:
* Clean up the style of the previous commit, and fix a fewsilby2003-12-271-7/+5
| | | | | | type mismatches as well. Suggested by: bde
* Teach netstat to read and display the new sfbuf statistics.silby2003-12-271-0/+12
|
* Fix percentages by using long long to hold values for 'space',alfred2003-12-261-9/+12
| | | | | | | | | | overflow was breaking a bunch of the stats, specifically the percentage displayed for wired memory. Fix the output for current/peak/max lines, I forgot to output the types. 161/320/51200 (current/peak/max): -to- 639/25696/51200 mbufs in use (current/peak/max):
* More holidays in .ru, fixes, strip redundant prefix.maxim2003-12-263-20/+27
| | | | Submitted by: osa
* Remove an unused variable.dwmalone2003-12-251-2/+1
| | | | Add some missing constness.
* Make systat -net aware of compressed time_wait sockets.silby2003-12-241-3/+11
|
* I asked Bosko Milekic for help with 'peak' reporting, and he suggestedalfred2003-12-231-2/+2
| | | | | | | | using the old 'cached' value but reporting it as 'cached'. I've decided to report the 'cached' as 'peak', why? Well because it is the peak, the peak of what is actually allocated. 'cached' doesn't make sense to me as a user.
* Restore old netstat -m output.alfred2003-12-234-31/+76
| | | | A new flag '-c' can be used to ask for the cache stats.
* Fix a couple of stylistic issuesemax2003-12-221-2/+2
| | | | | Reviewed by: imp (mentor), ru Approved by: imp (mentor)
* Fix uncontrolled access to the buffer in rfcomm_sppd(1).emax2003-12-191-4/+21
| | | | | | | | Fix typo in hcsecd(8) man page. Submitted by: Guido Falsi <mad@madpilot.net> Reviewed by: imp (mentor) Approved by: imp (mentor)
* Change the select timeout from 100ms to 2 seconds now that SIGCHILD isscottl2003-12-191-2/+2
| | | | handled.
* Add a bunch of Russian holidays.maxim2003-12-154-13/+101
| | | | | PR: docs/50013 Submitted by: osa
* Install a SIGCHLD handler so select(2) will be interrupted when a childdes2003-12-131-0/+20
| | | | | | | | | | terminates. Without this patch, 'make -j1 buildworld' takes about 30% longer than 'make -B buildworld' on my 2.4 GHz P4; the difference is probably even larger on faster systems. With this patch, there is no perceptible difference in wall time between the two. Submitted by: bde MFC after: 3 days
* Fixed misplacement of __FBSDID(). Backed out editing of vendor id lines.bde2003-12-111-6/+7
| | | | Just wrap them in #if 0...#endif.
* Revert part of revision 1.74 after bde reminded me of a detail I'ddes2003-12-111-4/+7
| | | | | forgotten about how sysctl works. This removes a potential (though not very likely) race that 1.74 introduced.
OpenPOWER on IntegriCloud