summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Constify where appropriate.eadler2013-04-231-2/+2
| | | | | | Reported by: emaste Approved by: cperciva (mentor) MFC After: 3 days
* Cleanups to touch.ceadler2013-04-231-20/+22
| | | | | | | | | | - use const where appropriate - use static where appropriate - use explicit checks checks for error conditions Reviewed by: sbruno Approved by: cperciva (mentor) Obtained by: DragonFlyBSD
* Wrong cast.trociny2013-04-201-2/+1
| | | | MFC after: 1 month
* Sync gcore(1) with the recent changes in kernel code aimed at addingtrociny2013-04-202-203/+374
| | | | | | | procstat notes to a process core file. Suggested by: jhb MFC after: 1 month
* Make use of newly added libprocstat(3) ability to extract procstattrociny2013-04-202-17/+32
| | | | | | | | | | | | | | | | | | | | | | | | info from a process core file. So now one can run procstat(1) on a process core e.g. to get a list of files opened by a process when it crashed: root@lisa:/ # procstat -f /root/vi.core PID COMM FD T V FLAGS REF OFFSET PRO NAME 658 vi text v r r-------- - - - /usr/bin/vi 658 vi ctty v c rw------- - - - /dev/pts/0 658 vi cwd v d r-------- - - - /root 658 vi root v d r-------- - - - / 658 vi 0 v c rw------- 11 3208 - /dev/pts/0 658 vi 1 v c rw------- 11 3208 - /dev/pts/0 658 vi 2 v c rw------- 11 3208 - /dev/pts/0 658 vi 3 v r r----n-l- 1 0 - /tmp/vi.0AYKz3Lps7 658 vi 4 v r rw------- 1 0 - /var/tmp/vi.recover/vi.GaGYsz 658 vi 5 v r rw------- 1 0 - - PR: kern/173723 Suggested by: jhb MFC after: 1 month
* Use procstat_getkstack(3) for retrieving process kernel stackstrociny2013-04-203-55/+15
| | | | | | instead of direct sysctl calls. MFC after: 1 month
* Use libprocstat(3) to retrieve ELF auxiliary vector.trociny2013-04-203-96/+10
| | | | MFC after: 1 month
* Use libprocstat(3) to retrieve process command line arguments andtrociny2013-04-203-34/+22
| | | | | | environment variables. MFC after: 1 month
* Use libprocstat(3) when retrieving binary information for a process.trociny2013-04-203-29/+8
| | | | MFC after: 1 month
* Use procstat_getrlimit(3) for retrieving rlimit information instead oftrociny2013-04-203-18/+5
| | | | | | direct sysctl calls. MFC after: 1 month
* Use procstat_getumask(3) for retrieving umaks information instead oftrociny2013-04-201-13/+5
| | | | | | direct sysctl. MFC after: 1 month
* Use procstat_getgroups(3) for retrieving groups information instead oftrociny2013-04-203-30/+11
| | | | | | direct sysctl. MFC after: 1 month
* Use more generic procstat_getvmmap(3) for retrieving VM layout of a process.trociny2013-04-203-4/+4
| | | | MFC after: 1 month
* Use procstat_getprocs(3) for retrieving thread information instead oftrociny2013-04-204-66/+17
| | | | | | direct sysctl calls. MFC after: 1 month
* Add the Clang specific -Wmissing-variable-declarations to WARNS=6.ed2013-04-197-2/+15
| | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
* Replace hardcoded numbers. Also use interface-local scope name insteadae2013-04-161-9/+9
| | | | of node-local.
* Fix typo from previous commit.joel2013-04-141-1/+1
| | | | Submitted by: Ronald Klop <ronald-freebsd8@klop.yi.org>
* LSD first synthesised 16/11/38, not 7/4/43.joel2013-04-141-1/+1
| | | | | Submitted by: James J. Lippard Obtained from: OpenBSD
* Correct spelling is "Christiaan Huygens".joel2013-04-141-1/+1
| | | | | Submitted by: James J. Lippard Obtained from: OpenBSD
* Upgrade our copy of llvm/clang to trunk r178860, in preparation of thedim2013-04-1233-541/+467
| | | | | | | | | upcoming 3.3 release (branching and freezing expected in a few weeks). Preliminary release notes can be found at the usual location: <http://llvm.org/docs/ReleaseNotes.html> An MFC is planned once the actual 3.3 release is finished.
* - Do not bail out if stat(2) fails with ENOENT in the spool directory. Thisgahr2013-04-121-2/+26
| | | | | | | | | happens if another atrm process removes a job while we're scanning through the directory. - While at it, optimize a bit the directory scanning, so that we quit looping as soon as all jobs specified in argv have been dealt with. Approved by: cognet
* - Switch order of setting real uid and gid. If we set uid first, then wegahr2013-04-121-1/+1
| | | | | | | | don't have enough privileges to set gid. This looks like a long standing bug, just recently revealed by r241852. Approved by: cognet
* Fix bugs in the elapsed time calculation in ctlstat_standard()ken2013-04-111-7/+3
| | | | | | | | | | | | | | | | | | pointed out by bde: - Casting to long double isn't needed. - The division isn't needed, multiplication can be used. "When 1 nanosecond is in a floating point literal, the whole expression is automatically promoted correctly." - non-KNF indentation (1 tab) for the newly split line - different non-KNF indentation (5 spaces) for the previously split line - exessive parentheses around the division operation - bogus blank line which splits up the etime initialization - general verboseness from the above. Submitted by: bde MFC after: 3 days
* Minor spelling and grammar fixes.joel2013-04-111-1/+1
|
* Remove contractions.joel2013-04-111-8/+8
|
* fuser(1) requires a filename.eadler2013-04-111-1/+1
| | | | | | Reviewed by: lstewart Approved by: bcr (mentor) MFC after: 3 days
* Use kvm_counter_u64_fetch() to fix obtaining ipstat and tcpstat fromglebius2013-04-103-29/+69
| | | | | | kernel core files. Sponsored by: Nginx, Inc.
* Fix a time calculation error in ctlstat_standard().ken2013-04-101-2/+3
| | | | | | | | | | | ctlstat.c: When converting a timeval to a floating point number in ctlstat_standard(), cast the nanoseconds calculation to a long double, so we don't lose precision. Without the cast, we wind up with a time in whole seconds only. Sponsored by: Spectra Logic MFC after: 3 days
* Merge from projects/counters: TCP/IP stats.glebius2013-04-081-124/+130
| | | | | | | | | Convert 'struct ipstat' and 'struct tcpstat' to counter(9). This speeds up IP forwarding at extreme packet rates, and makes accounting more precise. Sponsored by: Nginx, Inc.
* Correct the path.jh2013-04-061-2/+2
| | | | | PR: 176256 Submitted by: jhs
* Add myself as a ports committer and my mentor relationship.wg2013-04-041-0/+1
| | | | | | While in the repository, add myself to calendar.freebsd. Approved by: jpaetzel (mentor)
* Update to bmake-20130330sjg2013-04-023-6/+7
|
* Make it possible to build CTL as a module.trasz2013-04-021-1/+2
| | | | | Reviewed by: ken Sponsored by: FreeBSD Foundation
* Update to upstream version 2.7fanf2013-03-284-216/+416
| | | | | | | | | | | The most notable new feature is support for processing multiple files in one invocation. There is also support for more make-friendly exit statuses. The most notable bug fix is #line directives now include the input file name. Obtained from: http://dotat.at/prog/unifdef
* Make `systat -vmstat` to use suffixes to display big floating point numbersmav2013-03-231-0/+8
| | | | | | that are not fitting into the specified field width, same as done for ints. In particular that allows to properly display disk tps above 100k, that are reachable with modern SSDs.
* MFV r248590,248594:mm2013-03-225-6/+49
| | | | | | | | | | | Update libarchive to 3.1.2 Some of new features: - support for lrzip and grzip compression - support for writing tar v7 format - b64encode and uuencode filters - support for __MACOSX directory in Zip archives - support for lzop compresion (external utility)
* Replace deprecated (or remove obsolete) libarchive 2.8 functionsmm2013-03-224-12/+8
| | | | with libarchive 3.0 counterparts
* find: Include nanoseconds when comparing timestamps of files.jilles2013-03-172-20/+29
| | | | | | | | | | | | | | | When comparing to the timestamp of a given file using -newer, -Xnewer and -newerXY (where X and Y are one of m, c, a, B), include nanoseconds in the comparison. The primaries that compare a timestamp of a file to a given value (-Xmin, -Xtime, -newerXt) continue to compare times in whole seconds. Note that the default value 0 of vfs.timestamp_precision almost always causes the nanoseconds part to be 0. However, touch -d can set a timestamp to the microsecond regardless of that sysctl. MFC after: 1 week
* Remove EOL whitespace accidentally introduced in r248393.joel2013-03-172-2/+2
|
* Move example to EXAMPLES.joel2013-03-171-7/+5
|
* Add a couple of examples.joel2013-03-162-2/+26
| | | | Obtained from: OpenBSD
* Fix version in the .Fx macro.pluknet2013-03-161-1/+1
| | | | Reported by: <deeptech71@gmail.com>
* Replace our (un)vis(1) commands with implementations from NetBSD tobrooks2013-03-158-608/+6
| | | | | | | | | | match our import of the (un)vis(3) APIs. This adds support for multibyte encoding and the -h and -m flags which support HTTP and MIME encoding respectively. PR: bin/175418 Obtained from: NetBSD
* No need to call an external program.obrien2013-03-131-2/+1
|
* Revert r246917, as it is causing incorrect behaviour as reported onmarkj2013-03-121-1/+1
| | | | | | | freebsd-current. PR: bin/175213 Approved by: emaste (co-mentor)
* Fix the 'C' field for a running thread to match the behavior describedjhb2013-03-111-2/+9
| | | | | | | | | in the manpage by having it display the current CPU (ki_oncpu) rather than the previously used CPU (ki_lastcpu). ki_lastcpu is still used for all other thread states. Reported by: Chris Ross <cross+freebsd@distal.com> MFC after: 1 week
* Fix spelling.glebius2013-03-111-2/+2
| | | | | PR: 176777 Submitted by: Andrey Simonenko <simon comsys.ntu-kpi.kiev.ua>
* Add forgotten .Elmelifaro2013-03-091-0/+1
| | | | MFC with: r248112
* Document netstat -Q flags meaning.melifaro2013-03-091-1/+6
| | | | MFC after: 1 week
* Garbage collect NWFS and NCP bits which are now completely disconnectedattilio2013-03-097-1105/+0
| | | | | | from the tree since few months. This patch is not targeted for MFC.
OpenPOWER on IntegriCloud