summaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create branch 'RELENG_5_2'.cvs2svn2003-12-079-1391/+0
| | | | Notes: svn path=/releng/5.2/; revision=123193
* 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
* take mux's fix to the next level, scan the names and make the field largerJohn-Mark Gurney2003-10-281-4/+15
| | | | | | | | | as necessary... on sparcs where: atapci0 vec1996 is a bit too long Notes: svn path=/head/; revision=121626
* Fix truss so that it doesn't abort/exit when a syscall has been givenMarcel Moolenaar2003-10-271-0/+5
| | | | | | | a NULL-pointer for a sockaddr argument. Notes: svn path=/head/; revision=121606
* Fix up warnings. There were some biggies here. There seems to be twoPeter Wemm2003-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. Notes: svn path=/head/; revision=121551
* Stop gcc warningsPeter Wemm2003-10-262-2/+2
| | | | Notes: svn path=/head/; revision=121550
* Fix a warning that showed up on 64 bit systems. It was actually a realPeter Wemm2003-10-261-1/+1
| | | | | | | bug that had been swept under the carpet. Notes: svn path=/head/; revision=121548
* Fix warning about cgetent() argument.Peter Wemm2003-10-261-1/+1
| | | | Notes: svn path=/head/; revision=121547
* More xdrproc_t issues.Peter Wemm2003-10-261-4/+4
| | | | Notes: svn path=/head/; revision=121546
* More xdrproc_t warnings.Peter Wemm2003-10-263-10/+14
| | | | Notes: svn path=/head/; revision=121545
* The math function logf() probably isn't doing us much good for loggingPeter Wemm2003-10-261-0/+1
| | | | | | | stuff. Add -fno-builtin-logf. Notes: svn path=/head/; revision=121544
* Move the -Wtraditional warning from the global cpp flags to when the -pPeter Wemm2003-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? Notes: svn path=/head/; revision=121528
* Add coup d'état in Chile, 1973.Greg Lehey2003-10-261-0/+1
| | | | Notes: svn path=/head/; revision=121522
* Add end and start dates for DST.Greg Lehey2003-10-261-0/+3
| | | | Notes: svn path=/head/; revision=121519
* Use 'k' as suffix for KiloPoul-Henning Kamp2003-10-241-1/+1
| | | | | | | Pointed out by: several. Notes: svn path=/head/; revision=121485
* Print the correct ICMP statistics for "no return routes".Ruslan Ermilov2003-10-231-1/+1
| | | | Notes: svn path=/head/; revision=121424
* Add myself.Sergei Kolobov2003-10-211-0/+1
| | | | | | | Approved by: krion (mentor) Notes: svn path=/head/; revision=121314