summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* __MAKE_CONF doesn't really belong here because it isyar2005-10-121-10/+1
| | | | | | | a FreeBSD extension of sys.mk. A xref to make.conf(5) will be enough here. Requested by: ru
* Clarify the usage and effects of sys.mk, make.conf(5), and __MAKE_CONF.yar2005-10-101-4/+13
| | | | MFC after: 2 weeks
* Make sure that the created fifo gets deleted if the top level make instancescottl2005-10-091-0/+2
| | | | exits due to a signal.
* Finish off style(9) fixes which I started two revisions ago. This basicallycsjp2005-10-091-20/+24
| | | | | changes the indentation style from 4 spaces to 8 spaces which we expect to see in other FreeBSD source files.
* Catch up with increasing the resolution suitable for high-res kernelbde2005-10-071-3/+13
| | | | | | | profiling from microseconds to nanoseconds in 1996. Picoseconds are already needed. Describe the choice of units for the per-call times in detail.
* Do not ignore ENOENTcsjp2005-10-071-88/+68
| | | | Pointed out by: Amir Shalem
* Improve printing of self times in the flat profile for functions thatbde2005-10-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | appear to be never called: (1) If a function is never called according to its call count but it must have been called because its child time is nonzero, then print it in the flat profile. Previously, if its call count was zero then we only printed it in the flat profile if its self time was nonzero. (2) If a function has a zero call count but has a nonzero self or child time, then print its total self time in the self time per call column as a percentage of the total (self + child) time. It is not possible to print the times per call in this case because the call count is zero. Previously, this was handled by leaving both per-call columns blank. The self time is printed in another column but there was no way to recover the total time. (1) partially fixes the case of the "never called" function main() and prepares for (2) to apply to main() and other functions. Profiling of main() was lost in the conversion from a.out to ELF, so main()'s call count has always been zero for many years; then in the common case where main() is a tiny function, it gets no profiling ticks, so main() was completely lost in the flat profile. (2) improves mainly cases like kernel threads. Most kernel threads appear to be never called because they are always started before userland can run to turn on profiling. As for main(), the fact that they are called is not very interesting and their callers are uninteresting, but their relative self time is interesting since they are long-running. Almost always printing percentages in the per-call columns would be more useful than almost always printing 0.0ms. 0.1ms is now a long time, so only very large functions take that long per call. The accuracy per call can approach 1-10 nsec provided programs are run for about 100000 times as long as is necessary to get this accuracy with high resolution kernel profiling.
* Sync usage screen with manpage.yar2005-10-071-7/+6
| | | | MFC after: 5 days
* Document the -d flag to mail(1) better, which comes handy whenyar2005-10-071-6/+15
| | | | | | | | | you want to see, e.g., sendmail arguments mail(1) will use. -H is not an independent flag, it's a modifier. Also explicitly say that -H will cause mail(1) to exit as soon as it prints the headers. MFC after: 5 days
* Adding myself to calendar.freebsdehaupt2005-10-061-0/+1
| | | | Approved by: novel (mentor)
* Un-break handling of -t 0 which was broken in my previous commit.csjp2005-10-051-5/+6
| | | | | | | | Add a flags argument to wait_for_lock so that O_NONBLOCK can be passed to open if a user doesn't want the open to sleep until the lock becomes available. Submitted by: Amir Shalem (partially modified)
* Fix long standing race condition associated with how lockf uses open(2)csjp2005-10-051-30/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | for mutual exclusion: A brief description of the problem: 1) Proc A picks up non-blocking lock on file X 2) Proc B attempts to pickup lock, fails then waits 3) Proc C attempts to pickup lock, fails then waits 4) Proc A releases lock 5) Proc B acquires lock, release it to pickup a non-blocking version 6) Proc C acquires lock, release it to pickup a non-blocking version 7) Both process B and C race each other to pickup lock again This occurs mainly because the processes do not keep the lock after they have been waiting on it. They drop it, attempt to re-acquire it. (They use the wait to notify when the lock has become available then race to pick it up). This results in additional CPU utilization during the race, and can also result in processes picking locks up out of order. This change attempts to correct this problem by eliminating the test/acquire race and having the operating system handle it. Reported by: kris Tested by: kris MFC after: 1 week
* A minor overhaul: added comments, split cmds in 2, changed synopsis.garys2005-09-301-105/+133
| | | | | | | | | | | | Split commands into two groups: one with optional count and one with required argument. Changed synopsis line accordingly. Added some hopefully-helpful comments based on experiments, knowing that not all hardware works the same. PR: docs/84101 Approved by: keramida MFC after: 3 days
* Oops, revert last commit (the manpage is still built in objdir).ru2005-09-281-1/+0
|
* Add NO_OBJ.ru2005-09-281-0/+1
|
* Remove bridge(4) from the tree. if_bridge(4) is a full functionalmlaier2005-09-274-51/+2
| | | | | | | | replacement and has additional features which make it superior. Discussed on: -arch Reviewed by: thompsa X-MFC-after: never (RELENG_6 as transition period)
* - Print space character in show_stat(). Remove a lot of priuntf(" ").glebius2005-09-271-37/+29
| | | | | - Utilize show_stat() in sidewaysintpr() loop. This makes periodic statistics to honor -h flag.
* Remove redundant `\&' escapes.ru2005-09-271-28/+28
|
* Fixup previous commit.ru2005-09-271-3/+2
|
* Please ship the pointy hat to its home position.phk2005-09-261-2/+0
|
* Update coordinates for "mph" hash generator now that it lives in ports.phk2005-09-261-1/+1
|
* Add a .sinclude directive which does the exact same as .include, exceptphk2005-09-264-20/+45
| | | | whine when the file cannot be found and opened.
* Fix -u with absolute paths (e.g., "tar -uf foo.tar /bar") by handlingkientzle2005-09-241-12/+12
| | | | | | pathname edits before comparing pathnames on disk to those in the archive. Thanks to: Gareth Bailey, Lowell Gilbert
* Detect Mac OS X's broken ACL library.kientzle2005-09-242-1/+8
| | | | Thanks to: Diego "Flameeyes" Petten?
* The function inplace_edit() doesn't exist anymore, remove the prototype.stefanf2005-09-241-1/+0
| | | | Submitted by: Leonardo Chiquitto Filho
* Add myself to FreeBSD calendarmnag2005-09-231-0/+1
| | | | Approved by: pav (mentor)
* Fix vgrind(1) indexing I broke in previous revision.ru2005-09-231-0/+2
| | | | | PR: bin/86343 Submitted by: Matej Vela <vela@debian.org>
* Frank Lloyd Wright birth year is 1867, not 1869.krion2005-09-231-1/+1
| | | | | PR: conf/82051 Submitted by: Derek Jones <derek at wahila dot com>
* Fix typo, FRG and GDR became UNO members in 1973, not in 1993.krion2005-09-231-1/+1
| | | | | PR: conf/86193 Submitted by: Matthias Buelow <mkb at incubus dot de>
* Style fix: Correct a compiler warning from GCC 4kientzle2005-09-211-0/+1
| | | | | Thanks to: Divacky Roman PR: bin/84993
* Setting .nofinger will not hide you from root.dds2005-09-194-1/+6
|
* Connect smbfs build on powerpc.imura2005-09-191-0/+4
|
* Use is '-' to imply that the flag is not set, rather than '.'.csjp2005-09-151-1/+1
|
* Print a warning if we fail to retrieve the process name for any reason.csjp2005-09-131-1/+3
|
* If there are'nt any bpf descriptors to process than dont bother attempting tocsjp2005-09-131-0/+2
| | | | | | retrieve statistic information for them. Pointed out by: Pawel Worach < pawel.worach at gmail.com >
* Free the bpf descriptor array after we are done with it. This probably isntcsjp2005-09-071-0/+1
| | | | | that critical as the program exits after this point anyway, but this may not always be the case.
* Update usage to reflect the new option.csjp2005-09-071-1/+2
| | | | Pointed out by: ru
* Several changes: Added a BUGS section with several bugs. Andgarys2005-09-071-26/+94
| | | | | | | | | | | | -- Made the synopses more precise. -- Added argument to flag in option description. -- Moved -b default and limits to option description (to un-hide). -- Noted several behaviors that were not mentioned. -- A few more trivial changes. PR: docs/46787 Approved by: keramida MFC after: 3 days
* Merge bpfstat's functionality into the netstat(1) utility. This addscsjp2005-09-075-3/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | a -B option which causes bpf peers to be printed. This option can be used in conjunction with -I if information about specific interfaces is desired. This is similar to what NetBSD added to their version of netstat. $ netstat -B Pid Netif Flags Recv Drop Match Sblen Hblen Command 1137 lo0 p--s-- 0 0 0 0 0 tcpdump 205 sis0 -ifs-l 37331 0 1 0 0 dhclient $ $ netstat -I lo0 -B Pid Netif Flags Recv Drop Match Sblen Hblen Command 1174 lo0 p--s-- 0 0 0 0 0 tcpdump $ -Add bpf.c which stores all the code for retrieving and parsing bpf related statistics. -Modify main.c to add support for the -B option and hook it into the program logic. -Add bpf.c to the build. -Document this new functionality in the man page and bump the revision date. -Add prototype for bpf_stats function.
* Mention that uuidgen(1) generates DCE version 1 UUIDs onlyrse2005-09-071-2/+3
|
* Fix the type of the variable 'debug'. It is used as a bitmap, so theharti2005-09-071-1/+1
| | | | | | | | type should be int rather than Boolean. PR: bin/84528 Submitted by: Max Okumoto <okumoto@ucsd.edu> MFC after: 3 weeks
* In version 1.8 I botched findval()'s type, fix.stefanf2005-09-021-1/+1
|
* Use socklen_t variables when passing sizes to getsockname() andstefanf2005-09-021-4/+4
| | | | getsockopt().
* The appropriate argument is -K -1, not -k -1.stefanf2005-09-021-2/+2
|
* Fix a syntax error in the generated code when invoked with -P. Note thatstefanf2005-09-021-1/+0
| | | | | the generated code still doesn't compile as we lack tinfo, t_getinfo and friends.
* - Do not allocate memory to entries in /var/rwho which have been down forssouhlal2005-09-021-3/+3
| | | | | | | more than 4 days - waste of memory. Obtained from: DragonFlyBSD (liamfoy) MFC after: 3 days
* Stop generating the `register' keyword.stefanf2005-09-023-4/+4
|
* Don't generate K&R C code. The -C flag is kept for backwards compatibility.stefanf2005-09-029-402/+125
| | | | Also remove the SIG_PF macro, there is no need to cast closedown.
* Only write the dispatch table function prototypes to the header if the -hstefanf2005-09-013-25/+24
| | | | | | | | flag was specified. If all files are generated at once, those functions are static and shouldn't appear in the header. PR: 84450 Reviewed by: alfred
* - Use prototypes in headers.stefanf2005-08-3110-43/+49
| | | | | - Include rpc_scan.h before rpc_util.h for the tok_kind enum. - Nuke unused declarations.
OpenPOWER on IntegriCloud