summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* find: Do not pass fd to save current directory to child processes.jilles2012-09-261-1/+1
| | | | | | | This removes one of the two wrongly passed file descriptors. The other one appears to be from fts(3). MFC after: 1 week
* Teach getent(1) to look up a hostname and find IPv6 addresses.kevlo2012-09-261-12/+22
| | | | | PR: bin/161548 Submitted by: matthew
* kdump: Pretty-print signal codes.jilles2012-09-222-5/+57
| | | | MFC after: 1 week
* yes(1) actually comes from V7.obrien2012-09-171-1/+1
| | | | Submitted by: Simon Gerraty <sjg@juniper.net>
* Make systat(1) accept fractional number of seconds.melifaro2012-09-1710-97/+159
| | | | | | Make old alarm(3)-based code use select(2). MFC after: 2 weeks
* Remove references to userstat(1) and jailstat(1). Those tools were nevertrasz2012-09-161-4/+2
| | | | | | | | merged from the Perforce branch. They might be brought in when %CPU limits go into the tree. PR: docs/171240 MFC after: 2 weeks
* - Make truss thread-aware.zont2012-09-1614-721/+804
| | | | | Approved by: kib (mentor) MFC after: 2 weeks
* - Add myself as a new src committer.peterj2012-09-161-0/+1
| | | | | | | - Sort jhb's mentees - Add grog's (ex-)mentor Approved by: jhb (co-mentor), grog (co-mentor)
* Handle AT_TIMEKEEP in procstat(1) -x [1]. Remove the AT_COUNT switchkib2012-09-161-2/+4
| | | | | | | | case, since AT_COUNT is not an aux vector, it is the counter of total number of defined vectors. PR: bin/171662 [1] MFC after: 1 week
* sh: Prefer internal nextopt() to libc getopt().jilles2012-09-151-4/+10
| | | | | | | | | This reduces code duplication and code size. /usr/bin/printf is not affected. Side effect: different error messages when certain builtins are passed invalid options.
* Correct double "the the"eadler2012-09-141-1/+1
| | | | | Approved by: cperciva MFC after: 3 days
* Bump date missed in r202756eadler2012-09-146-6/+6
| | | | | | | PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days
* Use libmd if and only if OpenSSL is not available.des2012-09-141-3/+4
| | | | | PR: bin/171402 MFC after: 3 days
* Switch batch to an SLIST.ed2012-09-121-11/+9
| | | | This code requires none of the features of LIST.
* Add MK_KDUMP.obrien2012-09-121-2/+7
|
* - Fix detaching under some circumstances.zont2012-09-123-14/+37
| | | | | | | | | | | | | | | | | | | | | When truss is detaching from very active process it is possible to hang on waitpid(2) in restore_proc() forever, because ptrace(PT_SYSCALL) must be called before detaching, to allow the debugging process to continue execution. Also when truss called with '-c' argument, it does not print anything after detach, because it immediately exits from restore_proc(). To fix these two problems make detaching deferred, but then it is impossible to detach from a process which does not do any system call. To fix this issue use sigaction(2) instead of signal(3) to disable SA_RESTART flag for waitpid(2) that makes it non-restartable. Remove global variable child_pid, because now detaching is handled in context where child's pid is known. Reported by: mjg Tested by: mjg, swills Approved by: kib (mentor) MFC after: 2 weeks
* WARNS is now default to 6.delphij2012-09-111-2/+0
|
* Minor mdoc fix.joel2012-09-111-13/+13
|
* Ensure mkcsmapper and mkesdb compile with clang, if WITH_ICONV isdim2012-09-112-0/+2
| | | | | | | | | defined. Submitted by: zeising PR: bin/167481 MFC after: 3 days X-MFC-With: r238197
* - Remove unused variables.zont2012-09-111-6/+3
| | | | | | - Remove redundant return after err(3) call. Approved by: kib (mentor)
* - Add myself to calendar.freebsdjhale2012-09-111-0/+1
| | | | | | - Add my mentor relationships to committers-ports.dot Approved by: makc (mentor)
* mdocify the chat(8) manual page.joel2012-09-101-332/+401
| | | | Reviewed by: brueffer
* Note that -quit terminates successfully.des2012-09-101-1/+1
| | | | Requested by: jmg@
* Document -quit, four and a half years after it was implemented.des2012-09-091-1/+5
| | | | | MFC after: 3 days Pointy hat to: imp@
* Remove clause 3 and 4 from the NetBSD Foundation copyright header, missedjoel2012-09-091-7/+0
| | | | in r203971.
* Remove trailing whitespace.joel2012-09-091-2/+2
|
* Merge the projects/pf/head branch, that was worked on for last six months,glebius2012-09-081-5/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into head. The most significant achievements in the new code: o Fine grained locking, thus much better performance. o Fixes to many problems in pf, that were specific to FreeBSD port. New code doesn't have that many ifdefs and much less OpenBSDisms, thus is more attractive to our developers. Those interested in details, can browse through SVN log of the projects/pf/head branch. And for reference, here is exact list of revisions merged: r232043, r232044, r232062, r232148, r232149, r232150, r232298, r232330, r232332, r232340, r232386, r232390, r232391, r232605, r232655, r232656, r232661, r232662, r232663, r232664, r232673, r232691, r233309, r233782, r233829, r233830, r233834, r233835, r233836, r233865, r233866, r233868, r233873, r234056, r234096, r234100, r234108, r234175, r234187, r234223, r234271, r234272, r234282, r234307, r234309, r234382, r234384, r234456, r234486, r234606, r234640, r234641, r234642, r234644, r234651, r235505, r235506, r235535, r235605, r235606, r235826, r235991, r235993, r236168, r236173, r236179, r236180, r236181, r236186, r236223, r236227, r236230, r236252, r236254, r236298, r236299, r236300, r236301, r236397, r236398, r236399, r236499, r236512, r236513, r236525, r236526, r236545, r236548, r236553, r236554, r236556, r236557, r236561, r236570, r236630, r236672, r236673, r236679, r236706, r236710, r236718, r237154, r237155, r237169, r237314, r237363, r237364, r237368, r237369, r237376, r237440, r237442, r237751, r237783, r237784, r237785, r237788, r237791, r238421, r238522, r238523, r238524, r238525, r239173, r239186, r239644, r239652, r239661, r239773, r240125, r240130, r240131, r240136, r240186, r240196, r240212. I'd like to thank people who participated in early testing: Tested by: Florian Smeets <flo freebsd.org> Tested by: Chekaluk Vitaly <artemrts ukr.net> Tested by: Ben Wilber <ben desync.com> Tested by: Ian FREISLICH <ianf cloudseed.co.za>
* Free memory allocated by procstat_getfiles(), which may make differencetrociny2012-09-041-0/+1
| | | | | | | when procstat(1) is run with -a option. Submitted by: Daniel Dettlaff <dmilith gmail com> MFC after: 1 week
* - Style(9) cleanup.zont2012-09-0215-2132/+2202
| | | | Approved by: kib (mentor)
* Rework all non-contributed files that use `struct timezone'.ed2012-09-014-24/+20
| | | | | | | | | | | | | | This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead.
* Improve description for "rctl -l".trasz2012-09-011-2/+7
| | | | MFC after: 2 weeks
* - Remove unused variables.zont2012-08-302-4/+2
| | | | | | - Fix warnings about comparing signed and unsigned ints. Approved by: kib (mentor)
* Sprinkle a bit of style.Makefile(5) across various clang Makefiles. Nodim2012-08-231-4/+4
| | | | | | functional changes. MFC after: 3 days
* - Put arguments for print_syscall_ret() function in proper order.zont2012-08-231-1/+1
| | | | | | Bug was introduced in r192025. Approved by: kib (mentor)
* When WITH_CLANG_EXTRAS is enabled, avoid needlessly building the llvmdim2012-08-211-1/+1
| | | | | | and clang extras in the cross-tools stage. MFC after: 1 week
* Support the WITH_SHARED_TOOLCHAIN setting that was introduced in r234782dim2012-08-211-0/+4
| | | | | | | for the clang executable. Build it statically by default, like the gcc executables, which should improve performance a little bit. MFC after: 1 week
* - Use pid_t type instead of just int.zont2012-08-214-7/+7
| | | | Approved by: kib (mentor)
* - Add myself to the calendar.zont2012-08-211-0/+1
| | | | Approved by: kib (mentor)
* Upgrade our copy of llvm/clang to trunk r162107. With thanks todim2012-08-2031-3638/+2809
| | | | Benjamin Kramer and Joerg Sonnenberger for their input and fixes.
* Cleanup use of 'host' when running 'rpcinfo -p'.kevlo2012-08-181-5/+11
| | | | Obtained from: NetBSD
* Merging of projects/armv6, part 3gonzo2012-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | r238211: Support TARGET_ARCH=armv6 and TARGET_ARCH=armv6eb This adds a new TARGET_ARCH for building on ARM processors that support the ARMv6K multiprocessor extensions. In particular, these processors have better support for TLS and mutex operations. This mostly touches a lot of Makefiles to extend existing patterns for inferring CPUARCH from ARCH. It also configures: * GCC to default to arm1176jz-s * GCC to predefine __FreeBSD_ARCH_armv6__ * gas to default to ARM_ARCH_V6K * uname -p to return 'armv6' * make so that MACHINE_ARCH defaults to 'armv6' It also changes a number of headers to use the compiler __ARM_ARCH_XXX__ macros to configure processor-specific support routines. Submitted by: Tim Kientzle <kientzle@freebsd.org>
* In usr.bin/make/var.c, function ParseModifier(), initialize the 'error'dim2012-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | variable to NULL, to avoid using it uninitialized in certain cases. This fixes the following clang 3.2 warning: usr.bin/make/var.c:1770:10: error: variable 'error' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (vp->execute) { ^~~~~~~~~~~ usr.bin/make/var.c:1777:10: note: uninitialized use occurs here if (error) ^~~~~ usr.bin/make/var.c:1770:6: note: remove the 'if' if its condition is always true if (vp->execute) { ^~~~~~~~~~~~~~~~~ usr.bin/make/var.c:1768:23: note: initialize the variable 'error' to silence this warning const char *error; ^ = NULL MFC after: 1 week
* - Add myself to calendar.freebsdbdrewery2012-08-011-0/+1
| | | | | | - Add my mentor relationships to committers-ports.dot Approved by: eadler (mentor)
* find: Remove unnecessary and inconsistent initialization.jilles2012-07-311-1/+1
| | | | Submitted by: jhb
* Mention when -d, -p and -r first hit FreeBSD.brian2012-07-301-2/+4
| | | | | | | Bump the document date to when the change was made (rather than when the PR was submitted). Suggested by: pluknet
* Add d, p and r switches for recording script sessions with timing databrian2012-07-302-24/+216
| | | | | | | | and playing sessions back with or without time delays. PR: 114465 Submitted by: ighighi at gmail dot com MFC after: 3 weeks
* Update libarchive to 3.0.4mm2012-07-284-20/+11
|
* Document -g option in the usage string.pluknet2012-07-261-1/+1
|
* find: Implement real -ignore_readdir_race.jilles2012-07-256-8/+38
| | | | | | | | | | If -ignore_readdir_race is present, [ENOENT] errors caused by deleting a file after find has read its name from a directory are ignored. Formerly, -ignore_readdir_race did nothing. PR: bin/169723 Submitted by: Valery Khromov and Andrey Ignatov
* Align the header with output.trociny2012-07-241-1/+1
| | | | MFC after: 3 days
OpenPOWER on IntegriCloud