summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Whitespace cleanup.des2003-12-101-36/+36
|
* Remove debugging printfdes2003-12-101-1/+0
|
* Document the simpler -a semantics.des2003-12-101-3/+0
|
* Fix a couple of issues in the interrupt code:des2003-12-101-21/+13
| | | | | | | | | | | | | | | - Replace overly-complicated (and buggy) -a logic with a much simpler version: -a causes all interrupts to be displayed, otherwise only those that have occurred are displayed. This removes the need for any MD code. - Instead of just making sure intrcnt is large enough, figure out the exact size it needs to be. We derive nintr from this number, and we don't want to risk printing garbage. Note that on sparc64, we end up printing garbage anyway because the names of non-existent interrupts are left uninitialized by the kernel. Tested on: alpha, i386, sparc64
* s/u_(int|long)\>/unsigned \1/des2003-12-101-15/+15
|
* Fix a couple of warnings (const a function parameter and change somedwmalone2003-12-101-4/+3
| | | | | | | ints to size_ts to better match the types of variables they are used with). Glanced at by: des
* Use .St -susv2 rather than "The Single UNIX specification".maxim2003-12-101-2/+3
| | | | Submitted by: osa
* First pass at attempted debrucification:peter2003-12-082-7/+7
| | | | | | | | | | - sort the -E switch into the right place. - add previously missing -p pid in usage (from the last few commits). - add -E to usage. - consistently use trfile in the man page. I knew I shouldn't have touched the man page. If I commit to a man page, it just makes people suspicious. :-)
* Unbreak vmstat -i on ia64:marcel2003-12-081-9/+12
| | | | | | | o nintr and inamlen must by of type size_t, not int, o Remove now unnecessary casts, o Handle the aflag differently, because the intr. names have a fixed width and almost always have trailing spaces.
* The uuidgen(1) program is WARNS=6 clean, so flag it as such.mux2003-12-071-1/+1
| | | | Tested on: i386, sparc64
* Finish the transition from libkvm to sysctl that I started a while ago.des2003-12-073-118/+249
| | | | | | | | | The use of libkvm for post-mortem analysis is still supported (though it could use more testing). We can now remove vmstat's setgid bit. While I'm here, hack the interrupt listing code to not display interrupts that haven't occurred unless the -a option was given on the command line, and document this change.
* Add a -E (elapsed time) flag to kdump. This is like -T, except it ispeter2003-12-072-2/+12
| | | | | | relative to start of the dump. Approved by: re (scottl)
* Add Japan's real entry into the Second World War.grog2003-12-061-0/+1
| | | | http://www.abcmalaysia.com/tour_malaysia/kltn_japivsn.htm
* Fix some minor nits in netstat whereby large interface names would bebms2003-11-283-7/+25
| | | | | | | | | truncated. In environments where many tunnel or vlan interfaces are created, interface names have high numbers which overflow the field width. PRs: bin/52349, bin/35838 Submitted by: Mike Tancsa, Scot W. Hetzel Approved by: re (rwatson)
* Grammar, spelling and punctuation sweep.brueffer2003-11-261-9/+9
| | | | Approved by: re (rwatson)
* /rescue/b{,un}zip exists, so build this dynamically now.obrien2003-11-171-2/+0
|
* Update cross references after utf2/euc move.tjr2003-11-151-2/+2
|
* Do not ignore any possible errors that fseeko() may have. The factmarcel2003-11-131-22/+24
| | | | | | | | | | | | | | | | | | | | | is that fseeko() fails in very predictable and frequent ways on ia64. This is because the offset is actually an address in the process' address space, which on ia64 can be larger than long (for lseek) or off_t (for fseeko). The crux is the signedness. The register stack and memory stack are in region 4 on ia64. This means that the sign bit is 1. The large positive virtual address is wrongly interpreted as a negative file offset. There's no quick fix. Even if you get around the API by using a SEEK_SET up to LONG_MAX and follow it up with a SEEK_CUR for the remainder, the kernel simply cannot deal with it. and the second seek will just fail. Therefore, this change does not actually fix the root cause. It just makes sure we're not spitting out all kinds of garbage or that the get_struct() function in particular does not cause truss(1) to exit. This, I might add, invariably happened way too soon for truss(1) to be of any use on ia64...
* make minimum column size for interrupt name be the heading (depends uponjmg2003-11-091-1/+1
| | | | | | Total being shorter than interrupt).. Pointed out by: bde
* Port truss(1) to 64-bit architectures:marcel2003-11-0911-113/+84
| | | | | | | | | | | | | | | | | | o Syscall return values do not fit in int on 64-bit architectures. Change the type of retval in <arch>_syscall_exit() to long and change the prototype of said function to return a long as well. o Change the prototype of print_syscall_ret() to take a long for the return address and change the format string accordingly. o Replace the code sequence tmp = malloc(X); sprintf(tmp, format, ...); with X by definition too small on 64-bit platforms by asprintf(&tmp, format, ...); With these changes the output makes sense again, although it does mess up the tabulation on ia64. Go widescreen... Not tested on: alpha, sparc64.
* fix an overflow bug when scanning for length of names that I introduced injmg2003-11-081-6/+6
| | | | | | | | the last commit... include some minor style changes and fixes that bde sent me Submitted by: bde
* Add GB2312 to the list of supported encodings. Cross-reference gb2312(5).tjr2003-11-081-1/+4
|
* Add gb2312 encoding.davidxu2003-11-051-0/+1
|
* Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, andmph2003-11-051-0/+3
| | | | | | | solar radii. The corresponding masses (m_earth, etc.) were already present. Source: "An Introduction to Modern Astrophysics," Carroll & Ostlie.
* Fix the case where the file is not in the current directory.des2003-11-041-1/+2
| | | | | Discovered by: Vladimir Kravchenko <jimson@mostcom.ru> Pointy hat to: des
* Be sure to restore foreground group to parent su before parent sudavidxu2003-11-041-1/+2
| | | | | exits, otherwise shell will be confused and does not set foreground group correctly for next su command. This sounds like a bug in sh.
* Reimplement in-place editing in a slightly less disgusting manner. Also,des2003-11-043-91/+84
| | | | | | | make an effort to preserve the ownership and mode of the file we are editing. Sponsored by: Registrar AS
OpenPOWER on IntegriCloud