aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Change the select timeout from 100ms to 2 seconds now that SIGCHILD isScott Long2003-12-191-2/+2
| | | | | | | handled. Notes: svn path=/head/; revision=123659
* Add a bunch of Russian holidays.Maxim Konovalov2003-12-154-13/+101
| | | | | | | | PR: docs/50013 Submitted by: osa Notes: svn path=/head/; revision=123550
* Install a SIGCHLD handler so select(2) will be interrupted when a childDag-Erling Smørgrav2003-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 Notes: svn path=/head/; revision=123513
* Fixed misplacement of __FBSDID(). Backed out editing of vendor id lines.Bruce Evans2003-12-111-6/+7
| | | | | | | Just wrap them in #if 0...#endif. Notes: svn path=/head/; revision=123441
* Revert part of revision 1.74 after bde reminded me of a detail I'dDag-Erling Smørgrav2003-12-111-4/+7
| | | | | | | | forgotten about how sysctl works. This removes a potential (though not very likely) race that 1.74 introduced. Notes: svn path=/head/; revision=123438
* Whitespace cleanup.Dag-Erling Smørgrav2003-12-101-36/+36
| | | | Notes: svn path=/head/; revision=123414
* Remove debugging printfDag-Erling Smørgrav2003-12-101-1/+0
| | | | Notes: svn path=/head/; revision=123411
* Document the simpler -a semantics.Dag-Erling Smørgrav2003-12-101-3/+0
| | | | Notes: svn path=/head/; revision=123410
* Fix a couple of issues in the interrupt code:Dag-Erling Smørgrav2003-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 Notes: svn path=/head/; revision=123409
* s/u_(int|long)\>/unsigned \1/Dag-Erling Smørgrav2003-12-101-15/+15
| | | | Notes: svn path=/head/; revision=123407
* Fix a couple of warnings (const a function parameter and change someDavid Malone2003-12-101-4/+3
| | | | | | | | | | ints to size_ts to better match the types of variables they are used with). Glanced at by: des Notes: svn path=/head/; revision=123401
* Use .St -susv2 rather than "The Single UNIX specification".Maxim Konovalov2003-12-101-2/+3
| | | | | | | Submitted by: osa Notes: svn path=/head/; revision=123380
* First pass at attempted debrucification:Peter Wemm2003-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. :-) Notes: svn path=/head/; revision=123306
* Unbreak vmstat -i on ia64:Marcel Moolenaar2003-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. Notes: svn path=/head/; revision=123290
* The uuidgen(1) program is WARNS=6 clean, so flag it as such.Maxime Henrion2003-12-071-1/+1
| | | | | | | Tested on: i386, sparc64 Notes: svn path=/head/; revision=123258
* Finish the transition from libkvm to sysctl that I started a while ago.Dag-Erling Smørgrav2003-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. Notes: svn path=/head/; revision=123250
* Add a -E (elapsed time) flag to kdump. This is like -T, except it isPeter Wemm2003-12-072-2/+12
| | | | | | | | | relative to start of the dump. Approved by: re (scottl) Notes: svn path=/head/; revision=123187
* Add Japan's real entry into the Second World War.Greg Lehey2003-12-061-0/+1
| | | | | | | http://www.abcmalaysia.com/tour_malaysia/kltn_japivsn.htm Notes: svn path=/head/; revision=123174
* Fix some minor nits in netstat whereby large interface names would beBruce M Simpson2003-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) Notes: svn path=/head/; revision=123030
* Grammar, spelling and punctuation sweep.Christian Brueffer2003-11-261-9/+9
| | | | | | | Approved by: re (rwatson) Notes: svn path=/head/; revision=122992
* /rescue/b{,un}zip exists, so build this dynamically now.David E. O'Brien2003-11-171-2/+0
| | | | Notes: svn path=/head/; revision=122836
* Update cross references after utf2/euc move.Tim J. Robbins2003-11-151-2/+2
| | | | Notes: svn path=/head/; revision=122731
* Do not ignore any possible errors that fseeko() may have. The factMarcel Moolenaar2003-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... Notes: svn path=/head/; revision=122606
* make minimum column size for interrupt name be the heading (depends uponJohn-Mark Gurney2003-11-091-1/+1
| | | | | | | | | Total being shorter than interrupt).. Pointed out by: bde Notes: svn path=/head/; revision=122365
* Port truss(1) to 64-bit architectures:Marcel Moolenaar2003-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. Notes: svn path=/head/; revision=122348
* fix an overflow bug when scanning for length of names that I introduced inJohn-Mark Gurney2003-11-081-6/+6
| | | | | | | | | | | the last commit... include some minor style changes and fixes that bde sent me Submitted by: bde Notes: svn path=/head/; revision=122300
* Add GB2312 to the list of supported encodings. Cross-reference gb2312(5).Tim J. Robbins2003-11-081-1/+4
| | | | Notes: svn path=/head/; revision=122289
* Add gb2312 encoding.David Xu2003-11-051-0/+1
| | | | Notes: svn path=/head/; revision=122145
* Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, andMatthew Hunt2003-11-051-0/+3
| | | | | | | | | | solar radii. The corresponding masses (m_earth, etc.) were already present. Source: "An Introduction to Modern Astrophysics," Carroll & Ostlie. Notes: svn path=/head/; revision=122143
* Fix the case where the file is not in the current directory.Dag-Erling Smørgrav2003-11-041-1/+2
| | | | | | | | Discovered by: Vladimir Kravchenko <jimson@mostcom.ru> Pointy hat to: des Notes: svn path=/head/; revision=122084
* Be sure to restore foreground group to parent su before parent suDavid Xu2003-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. Notes: svn path=/head/; revision=122061
* Reimplement in-place editing in a slightly less disgusting manner. Also,Dag-Erling Smørgrav2003-11-043-91/+84
| | | | | | | | | | make an effort to preserve the ownership and mode of the file we are editing. Sponsored by: Registrar AS Notes: svn path=/head/; revision=122049
* Whitespace cleanupDag-Erling Smørgrav2003-11-042-21/+21
| | | | Notes: svn path=/head/; revision=122045
* ANSIfyDag-Erling Smørgrav2003-11-044-78/+33
| | | | Notes: svn path=/head/; revision=122044
* Correct style bugs in the in-place editing code.Dag-Erling Smørgrav2003-11-041-2/+2
| | | | Notes: svn path=/head/; revision=122043
* It seems when su executes in a shell scripts, there is a timing race,David Xu2003-11-031-0/+2
| | | | | | | | | | | sometimes, su will receive a SIGTTOU when parent su tries to set child su's process group as foreground group, and su will be stopped unexpectly, ignoring SIGTTOU fixes the problem. Noticed by: fjoe Notes: svn path=/head/; revision=122013
* Build lint(1) on ia64.Marcel Moolenaar2003-11-031-6/+1
| | | | Notes: svn path=/head/; revision=121928
* The size of a long double is 16 bytes, not 12 bytes.Marcel Moolenaar2003-11-031-1/+1
| | | | Notes: svn path=/head/; revision=121927
* Change the buffer length test in NEEDSP() so that it does notTim J. Robbins2003-11-021-1/+2
| | | | | | | | | | | subtract one unsigned number from another potentially smaller one, leading to wraparound (and heap corruption, eventually). PR: 58813 MFC after: 2 weeks Notes: svn path=/head/; revision=121915
* Removed (after the env(1)/printenv(1) split) extraneous argumentsRuslan Ermilov2003-11-021-9/+9
| | | | | | | to the .Nm macro. Notes: svn path=/head/; revision=121909
* Copy cur's snap_time to last when refreshing statistics. Fixes problemTim J. Robbins2003-11-011-0/+2
| | | | | | | | | | | where MB/s and tps statistics would always be zero, presumably because they were being averaged out over the time between now and when the system booted instead of a few seconds. PR: 58683 Notes: svn path=/head/; revision=121836
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-312-19/+8
| | | | | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname) Notes: svn path=/head/; revision=121816
* Attached is a small patch to ministat that separates thePoul-Henning Kamp2003-10-312-19/+48
| | | | | | | | | | avg/median/stddev bars onto two lines. Useful for datasets that overlap. Submitted by: Dan Nelson <dnelson@allantgroup.com> Notes: svn path=/head/; revision=121795
* Rename logf --> chat_logf to avoid naming conflictsTim Kientzle2003-10-312-30/+29
| | | | | | | | | with GCC built-in (and with C90 reserved library name). Approved by: gordon (Mentor) Notes: svn path=/head/; revision=121784
* Replace -fno-builtin-logf with a -D argument to change the function name.Peter Wemm2003-10-301-1/+1
| | | | Notes: svn path=/head/; revision=121764
* Cosmetic fix on some TIME related columns.Mitsuru IWASAKI2003-10-301-6/+6
| | | | Notes: svn path=/head/; revision=121746
* Use (char *)NULL to terminated to argument list for execl().Hartmut Brandt2003-10-301-1/+1
| | | | | | | | Without this cast the compiler cannot know that it has to convert the null pointer constant NULL to a null pointer. Notes: svn path=/head/; revision=121741
* Remove MD bits for unsupported architectures.Tim J. Robbins2003-10-3012-1238/+1
| | | | Notes: svn path=/head/; revision=121735
* Disclaim ownership of pppd/chat. It is vendor code, but has been badlyPeter Wemm2003-10-291-3/+3
| | | | | | | neglected here. Notes: svn path=/head/; revision=121701
* Build the NgATM user space SSCOP tool (unless NOATM is defined).Hartmut Brandt2003-10-294-0/+28
| | | | Notes: svn path=/head/; revision=121666