summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Whitespace cleanupdes2003-11-042-21/+21
|
* ANSIfydes2003-11-044-78/+33
|
* Correct style bugs in the in-place editing code.des2003-11-041-2/+2
|
* It seems when su executes in a shell scripts, there is a timing race,davidxu2003-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
* Build lint(1) on ia64.marcel2003-11-031-6/+1
|
* The size of a long double is 16 bytes, not 12 bytes.marcel2003-11-031-1/+1
|
* Change the buffer length test in NEEDSP() so that it does nottjr2003-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
* Removed (after the env(1)/printenv(1) split) extraneous argumentsru2003-11-021-9/+9
| | | | to the .Nm macro.
* Copy cur's snap_time to last when refreshing statistics. Fixes problemtjr2003-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
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-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)
* Attached is a small patch to ministat that separates thephk2003-10-312-19/+48
| | | | | | | avg/median/stddev bars onto two lines. Useful for datasets that overlap. Submitted by: Dan Nelson <dnelson@allantgroup.com>
* Rename logf --> chat_logf to avoid naming conflictskientzle2003-10-312-30/+29
| | | | | | with GCC built-in (and with C90 reserved library name). Approved by: gordon (Mentor)
* Replace -fno-builtin-logf with a -D argument to change the function name.peter2003-10-301-1/+1
|
* Cosmetic fix on some TIME related columns.iwasaki2003-10-301-6/+6
|
* Use (char *)NULL to terminated to argument list for execl().harti2003-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.
* Remove MD bits for unsupported architectures.tjr2003-10-3012-1238/+1
|
* Disclaim ownership of pppd/chat. It is vendor code, but has been badlypeter2003-10-291-3/+3
| | | | neglected here.
* Build the NgATM user space SSCOP tool (unless NOATM is defined).harti2003-10-294-0/+28
|
* take mux's fix to the next level, scan the names and make the field largerjmg2003-10-281-4/+15
| | | | | | as necessary... on sparcs where: atapci0 vec1996 is a bit too long
* Fix truss so that it doesn't abort/exit when a syscall has been givenmarcel2003-10-271-0/+5
| | | | a NULL-pointer for a sockaddr argument.
* Fix up warnings. There were some biggies here. There seems to be twopeter2003-10-261-13/+13
| | | | | | | different sets of definitions in /usr/include/rpcsvc, mostly compatable, but with different names. Will the real one please stand up? In order to get prototypes for yp_maplist, we had to use the 'other' naming system.
* Stop gcc warningspeter2003-10-262-2/+2
|
* Fix a warning that showed up on 64 bit systems. It was actually a realpeter2003-10-261-1/+1
| | | | bug that had been swept under the carpet.
* Fix warning about cgetent() argument.peter2003-10-261-1/+1
|
* More xdrproc_t issues.peter2003-10-261-4/+4
|
* More xdrproc_t warnings.peter2003-10-263-10/+14
|
* The math function logf() probably isn't doing us much good for loggingpeter2003-10-261-0/+1
| | | | stuff. Add -fno-builtin-logf.
* Move the -Wtraditional warning from the global cpp flags to when the -ppeter2003-10-261-2/+1
| | | | | | | (portability warnings) switch is used. Add -Wno-system-headers after it so that we dont get 500 screenfulls of warnings about #elif in /usr/include. I'm not entirely happy with this. Maybe cdefs.h shouldn't use #elif and instead nest #else clauses?
* Add coup d'état in Chile, 1973.grog2003-10-261-0/+1
|
* Add end and start dates for DST.grog2003-10-261-0/+3
|
OpenPOWER on IntegriCloud