summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* In change 1.15, an arbitrary setting of the max RPC record size torwatson2006-05-171-11/+0
| | | | | | | | | | | | | | | | RPC_MAXDATASIZE was introduced. This is believed to have been debugging code committed accidentally, although I've been unable to reach the committer to confirm this. The effect was to limit the size of RPCs on TCP and UDP to 9k, well below the default protocol limits in the libc rpc code. This change simply removes these introduced limits, falling back on the libc definitions. PR: 88856 Reported by: Keith Bostic <bostic at sleepycat dot com> Testing by: Susan LoVerso <sue at loverso dot southborough dot ma dot us> Reveiwed by: cel, rees Review timeout: alfred, mbr MFC after: 2 weeks
* - Fix warning when compiling with -DDEBUGpav2006-05-151-1/+1
| | | | Approved by: alfred
* - Add decoding of kse_release, kevent, sigprocmask, unmount, socket, getrusage,pav2006-05-157-153/+578
| | | | | | | | | | | | | | | | | | | rename, __getcwd, shutdown, getrlimit, setrlimit, _umtx_lock, _umtx_unlock, pathconf, truncate, ftruncate, kill - Decode more arguments of open, mprot, *stat, and fcntl. - Convert all constant-macro and bitfield decoding to lookup tables; much cleaner than previous code. - Print the timestamp of process exit and signal reception when -d or -D are in use - Try six times with 1/2 second delay to debug the child PR: bin/52190 (updated) Submitted by: Dan Nelson <dnelson@allantgroup.com> Approved by: alfred
* - Fix crash when hitting unknown syscall. Copied from i386-fbsd.cpav2006-05-155-5/+10
| | | | Approved by: alfred
* o Fix typo in a comment.maxim2006-05-151-1/+1
| | | | | | PR: bin/97292 Submitted by: clsung MFC after: 3 days
* The last execution of -exec {} + is not done if the -exec primary iskrion2006-05-144-4/+21
| | | | | | | | | | | not on the top-level -and sequence, e.g. inside of ! or -or. Create a separate linked list of all active -exec {} + primaries and do the last execution for all at termination. PR: bin/79263 Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 7 days
* Handle SIGINFO in time(1) by printing the time the given command is running.pjd2006-05-142-37/+72
| | | | I find it quite handy to just hit ^T and see the time.
* So, what's it supposed to say when you type "make love"?ru2006-05-111-0/+1
|
* Use sysctlbynamephk2006-05-111-6/+1
|
* Add myself to the freebsd calendar.cokane2006-05-081-0/+1
|
* Add myself.itetcu2006-05-081-0/+1
| | | | Approved by: tmclaugh (mentor)
* Add myselfsat2006-05-071-0/+1
| | | | Approved by: krion
* o Implement "-n" flag: ignore files and directories with user "nodump"maxim2006-05-062-3/+14
| | | | | | | | | flag set. Useful for calculation dump -h dump size. PR: bin/96864 Submitted by: Dmitry Kazarov Obtained from: NetBSD (man page) MFC after: 1 month
* The port number must be network byte order.ume2006-05-041-4/+3
|
* o style: WARNS= -> WARNS?=.maxim2006-05-041-1/+1
| | | | Spotted by: ru
* o By popular demand import getent(1) utility: a program retrievesmaxim2006-05-044-0/+701
| | | | | | | | | | | and displays entries from the administrative database specified by database, using the lookup order specified in nsswitch.conf(5). PR: bin/79903, bin/88460, bin/96536 Submitted by: Julien Gabel, Dan Nelson, Daniel J. O'Connor Obtained from: NetBSD Discussed with: ume, soc-bushman MFC after: 1 month
* Move the formatting of the NICE column to a new function format_nice()bde2006-05-041-20/+30
| | | | | | | | so that it can be more easily unbroken and extended. Try to use `static', `const' (as appropriate), prototypes declared together, and parameter names in prototypes for all private functions, not just the new one.
* Fixed some style bugs (mainly missing and wrong splitting of long lines).bde2006-05-041-48/+54
|
* Avoid coredumps if stddev cannot be computed (if all datapoints are identical)phk2006-05-021-12/+16
| | | | Small cleanup of label printing.
* For the vmstat sub-display:bde2006-05-012-36/+45
| | | | | | | | | | | | | | | | | | vmstat.c: Move totfr to be under daefr and prcfr since it logically belongs there. Move all the count fields (wire, act, inact, cache and free) to near the bottom of the sub-display (after all the rate fields) to reduce competition with adjoining sub-displays. systat.1: Move things as above. Attempt to improve missing and poor wording in the description of the fields. The long sentence was hard to parse and didn't say anything about the different units. Increment .Dd.
* In the examples, use "tar.gz" as the extension forkientzle2006-05-011-3/+3
| | | | | | gzip-compressed tar archives. Thanks to: Mike Hunter
* Unbreak the support for 24-row terminals in the vmstat display. Thebde2006-05-011-2/+4
| | | | | | | | | | | | | part that handled the 17th and 18th rows of the vmstat-proper subdisplay was deleted in rev.1.10 when these rows stopped being used and was not restored when the 17th row was used again. For such terminals, we now lose the `buf' field instead of making a mess with it. Terminals with fewer than 24 rows have never been supported. The problem is not avoided by using curses since we use the last line for data entry and don't use a separate subwindow for this line. Some other things in the vmstat display could be handled better using subwindows.
* Sort the ex-extended vmstat fields into their documented order in thebde2006-04-301-38/+38
| | | | | | | | | | | | | | | | output too. Fine tune all coordinates and most field widths in the vmstat (sub)display for this and previous changes now that we have to change almost all of them just to move the ex-extended fields: - change VMSTATROW back to 7. It was 6 due to a hack in the extended vm stats changes. - reduce the maximum field width that we try for from 9 to 8. 4 or 5 is enough for most fields but we try to use the same width for all fields. 8 is enough to display everything without changing units memory sizes exceed 100GB. Fix some unrelated coordinates and field widths in comments.
* Eliminate the "extended" vm stats. Move all fields in the extendedbde2006-04-301-34/+10
| | | | | | vm stats to the normal vm stats. Sort them into the normal stats according to the man page only in the source code so that diffs are almost readable. Reduce style bugs in printing the value of %ozfod.
* Update for moving some fields to the new vnstat display.bde2006-04-301-8/+16
| | | | | | Don't say that `cache' is for the buffer cache. Describe the uselessnes of `buf'.
* Reduce the namei (sub)display by 5 columns to make enough space for abde2006-04-301-17/+19
| | | | | | | | | | | | | | new vnstat display to the right of the namei display. Move the non-vmstat fields {des,num,fre}vn from the vmstat display to a new vnstat display. Move the dtbuf field there too. The buf and dtbuf fields are non-vmstat and non-vnstat, so there is no good place to display them. I need to move at least 1 of them out of the vm stats for further cleanups of the vm stats, and there is only space for 1 of them in the vn stats. (The best place for the current buf field is actually /dev/null, since it has been completely broken for about 10 years and broken for longer. It gives an uninteresting virtual memory count where an interesting real memory count is wanted.)
* Removed the description of the nonexistent want_fd command. want_fd existedbde2006-04-301-2/+0
| | | | | for only 2 weeks in 1998-1999. It was replaced by general commands to select the set of disk drives displayed.
* Don't redraw the disk names on every update. This was apparently donebde2006-04-301-6/+0
| | | | | | | | | | | to handle changes to the set of disks selected, but it is unnecessary for that since the whole screen is redrawn when this set is changed. It was also buggy: - MAXDRIVES*6 = 42 was hard-coded as only 30 spaces in a string literal, the last 2 disk names were not cleared as intended - when the extended vmstats are active, clearing of even 30 columns overruns the ozfod value field by 3 columns. This was harmless because the field is much wider than necessary.
* Fix "slow (on-the-fly) zero fills percentage (`%slo-z')" some more. Thebde2006-04-302-4/+4
| | | | | | | | | | | | | | | | | | | value printed is actually the optimized (i.e., the non-slow, not-on-the-fly zero fills percentage) except in overflow cases. Describe it as %ozfod in the display. Move the field descriptor 1 to the left so that there is space for 5 characters after the % sign (this leaves no space between the number and the descriptor but the % character serves well as a separator). Fixed integer overflow at z.ozfod = UINT_MAX/100 in the calculation of %ozfod. This value can be reached just a few hours or minutes after booting, so %ozfod was usually garbage in boot mode. Now %ozfod is correct in boot mode for a few days or hours. Print a non-dummy %ozfod when the division for it isn't division by 0 instead of when the result will be less than 100%. A result of 100% may be correct, though a result of more than 100% indicates overflow of one or both counters.
* If DEBUG is defined, then fill numeric fields with asterisks instead ofbde2006-04-301-0/+15
| | | | spaces and numbers for temporary(?) debugging.
* Remove trailing whitespace.bde2006-04-3011-38/+38
| | | | | Submitted by: Se=E1n Farley <sean-freebsd at farley dot org> PR: bin/81874
* Show the load average in the tcp display (it was already shown, perhapsbde2006-04-3014-321/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not very usefully, in all other displays). This was the original point of the PR. Move the load average up by 2 so that it starts in row 0 for all windows (2 lines above it were wasted for all other windows except vmstat). Move everything below it up by 2 or 3 (3 for icmp and icmp6 which had an extra blank line due from not compensating for the foot-shooting in note (3); only ip and ip6 compensated). Reduce the magic numbers related to this. Notes by the submitter: %%% 1. All the subwin() calls are identical using #define MAINWIN_ROW 3 (systat.h). 2. The load average is at the top of the window. 3. Each display starts on the fourth line. I made changes to those displays that shifted the start line (i.e., icmp). This entailed a lot of changes within the comments at the top of those displays. 4. For ip6, I shifted the "Input next-header histogram" column down one row to separate it from "IPv6 Output". I raised "bad scope packets" and "address selection failed" up one row to stay with "IPv6 Input" (valid?). They were down one row to probably line up at the bottom, but I think they should stick with their fellow items in a column. 5. I condensed ifstat a bit. It had a lot of empty rows. %%% Submitted by: Se=E1n Farley <sean-freebsd at farley dot org> PR: bin/81874
* Edit the interrupt name strings to shorten them. This is believed tobde2006-04-301-2/+33
| | | | | | | | | | | | | | | | | | | only affect amd64 and i386. alpha uses "intr N" instead of "irqN" and mostly has no device names. ia64 uses only device names. - Edit interrupt names once after they are read from the kernel and not every time they are displayed. - Discard bogus trailing spaces so that the next step doesn't move things to oblivion. - If an interrupt name starts with "irqN:" (as it usually does in on amd64 and i386), then move "irqN" to the end and strip ":", since we have no space for the ":" and don't want to start descriptions with "N" after stripping "irq" in the next step (since "N" would look like a count). This step may need reworking for interrupt names containing several device names -- then moving the irq number to the end would lose it instead of losing some device names. - Remove "irq" from an interrupt name if and only if the original name is too long to display.
* Backed out rev.1.49 since it had buffer overruns and only workedbde2006-04-301-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | accidentally. Read buffer overruns: The size of the target array (TSOTTA == 10) is a wrong limit to use for scanning the source string. Write buffer overruns: TSOTTA is also a wrong limit to use for copying to the target buffer, since we want to add a NUL terminator afterwards. TSOTTA was also 1 too small for holding both the desired number of visible characters and the NUL. Worked accidentally: There is error in the algorithm that tends to result in the space saved by stripping "irq" not actually being used, but some cases worked accidentally provided "irqN" is near the end of the source string and "N" is only 1 digit. Starting with 5.mumble-CURRENT, "irqN" is at the beginning of the string on all (?) arches that have it and the accidents don't happen. E.g. on i386's, the keyboard irq is now named "irq1: atkbd0<bogus blank padding>" by the kernel, and this name was converted to "1: atkb" -- not only the device number but part of the device name has been lost --, while before 5.mumble the kernel name was "atkbd0 irq1" and systat accidentally preserved the irq number to give "atkbd0 1". The ":" in the string wastes precious space, and stripping "irq" results in descriptions starting with numbers which makes them look too much like counts. This commit just fixes the last problem.
* Abbreviate long field descriptors at write time so that they don't getbde2006-04-292-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | clobbered at runtime: dirtybuf -> dtbuf desiredvnodes -> desvn numvnodes -> numvn freevnodes -> frevn The vmstats column has only 5 characters available for descriptors, but up to 13 were used. The extras get clobbered at runtime by interrupt values and/or descriptors on systems with more than 12 interrupt sources. %slo-z -> %sloz This one is in the "extended" vmstats area and doesn't get clobbered now. Removed stale documentation of desvn. Changed a descriptor: tfree -> totfr so that it is consistent with the abbreviations for other free counts (daefr and prcfr) and thus almost decodeable. Fixed missing documentation of tfree/totfr. This and everything else in the extended vmstats area is misdocumented as being in a certain place in the vmstats column.
* ru@ recently changed lorder to support library archives. Documentimp2006-04-271-1/+9
| | | | this new feature prominently. Bump date while I'm here.
* Fix a typo.jkoshy2006-04-221-2/+2
| | | | | Submitted by: Pawel Worach <pawel.worach at gmail dot com> MFC after: 1 week
* Because optarg and optind are defined in unistd.h,delphij2006-04-211-3/+0
| | | | remove the defination here.
* Indentation fixesbrueffer2006-04-191-9/+9
|
* o Close an output file -o flag opened before execvp(3) in a child.maxim2006-04-161-0/+2
| | | | | | PR: bin/89666 Submitted by: Arne H Juul MFC after: 1 month
* Fix indentation for "Ostersonntag".brueffer2006-04-161-1/+1
| | | | Obtained from: OpenBSD
* Add missing library dependencies.ru2006-04-131-1/+1
|
* Fix Mother's/Father's day in most case.flz2006-04-132-3/+4
| | | | | | | PR: misc/79415 Submitted by: thierry Approved by: cperciva (mentor) MFC after: 1 week
* libc_r is no longer provided, and on alpha and sparc64, libthrru2006-04-121-1/+1
| | | | | is (sym)linked to libpthread. Account for this change and check for MK_LIBTHR instead of MK_LIBC_R where appropriate.
* Allow to specify size in terabytes by using T or t suffix.pjd2006-04-092-5/+10
| | | | | | | | | | | | This speeds up my testing a bit. Because truncate(1) doesn't allocate blocks on file system before they are used, it is very useful to emulate huge file systems: # truncate -s 16T fs.img # mdconfig -a -f fs.img # newfs /dev/mdX (-t swap can be used as well)
* Update comment about var modifiers (add 'N' and 'O' descriptions).fjoe2006-04-081-2/+5
|
* Add :u var modifier (remove adjacent duplicate words like uniq(1).fjoe2006-04-082-0/+43
| | | | | Reviewed by: harti Obtained from: NetBSD (mostly)
* Fix options broken when the birthtime related primaries were added.ceri2006-04-051-11/+11
| | | | | | | | | Note to self: if a comment says a list must be lexically sorted, sort the list lexically. Submitted by: Pawel Worach Approved by: jhb MFC after: 2 weeks
* Add my birthday.alepulver2006-04-041-0/+1
| | | | Approved by: garga (mentor)
* - Add my birthdayjmelo2006-04-041-0/+1
| | | | Approved by: mnag (mentor)
OpenPOWER on IntegriCloud