summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Bump dates in nestat(1) and route(8) man pages.melifaro2014-01-111-1/+1
| | | | | | | Fix several small errors introduced by r260524. Suggested by: glebius MFC after: 2 weeks
* Add -4/-6 shorthand for -finet/-finet6 in route(8) and netstat(8).melifaro2014-01-102-15/+38
| | | | MFC after: 2 weeks
* find: Fix two more problems with -lname and -ilname:jilles2014-01-052-2/+14
| | | | | | | | | | | | * Do not match symlinks that are followed because of -H or -L. This is explicitly documented in GNU find's info file and is like -type l. * Fix matching symlinks in subdirectories when fts changes directories. Also, avoid some readlink() calls on files that are obviously not symlinks (because of fts(3) restrictions, not all of them). MFC after: 1 week
* find: Fix -lname and -ilname.jilles2014-01-051-2/+5
| | | | | | | | | | | | The code did not take into account that readlink() does not add a terminating '\0', and therefore did not work reliably. As before, symlinks of length PATH_MAX or more are not handled correctly. (These can only be created on other operating systems.) PR: bin/185393 Submitted by: Ben Reser (original version) MFC after: 1 week
* The whois() function is called in a loop so make sure we close thekevlo2014-01-041-9/+9
| | | | | | socket to the whois server before returning. Obtained from: OpenBSD
* Properly document -u and -s.trasz2014-01-041-1/+5
| | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Explicitly free rt_tables to please Coverity.melifaro2013-12-311-1/+3
| | | | | | Reported by: Coverity Coverity CID: 1147174 MFC after: 2 weeks
* The devd part never got implemented; remove for now, until someone actuallytrasz2013-12-301-3/+0
| | | | | | | needs this feature and can talk to me about how it should look like. MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Fix typo.trasz2013-12-301-3/+3
| | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Claim copyright since I've almost rewritten this file in r256512.glebius2013-12-291-0/+1
|
* Generate client sample code which compiles without warnings.dfr2013-12-261-0/+6
| | | | For 'rpcgen -a', generate a makefile where 'make clean all' works.
* In usr.bin/sort/radixsort.c, pop_ls_mt() is only referenced ifdim2013-12-221-4/+4
| | | | | | | SORT_THREADS is defined, so make the whole function conditional, instead of just the pthread calls in it. MFC after: 3 days
* To avoid having to explicitly test COMPILER_TYPE for settingdim2013-12-221-3/+1
| | | | | | | | | | | | | | | clang-specific or gcc-specific flags, introduce the following new variables for use in Makefiles: CFLAGS.clang CFLAGS.gcc CXXFLAGS.clang CXXFLAGS.gcc In bsd.sys.mk, these get appended to the regular CFLAGS or CXXFLAGS for the right compiler. MFC after: 1 week
* Further split kvm(3) and sysctl interfaces for route table printing.melifaro2013-12-201-72/+89
| | | | | MFC after: 4 weeks Sponsored by: Yandex LLC
* Use more fine-grained kvm(3) symbol lookup: routing code retrieves onlymelifaro2013-12-207-97/+150
| | | | | | | | | | | necessary symbols needed per subsystem. Main kvm(3) init is now delayed as much as possbile. This finally fixes performance issues reported in kern/167204. Some non-working code (ng_socket.ko symbol addresses calculation) removed. Some global variables eliminated. PR: kern/167204 MFC after: 4 weeks
* If we cannot connect to casperd we don't enter sandbox, but if we can connectpjd2013-12-191-24/+10
| | | | | | | | to casperd, but we cannot access the service we need we exit with an error. This should not happen and just indicates some configuration error which should be fixed, so we force the user to do it by failing. Discussed with: emaste
* Restore corefiles handling via kvm(3).melifaro2013-12-183-1/+4
| | | | | Found by: John-Mark Gurney <jmg at funkthat.com> MFC after: 4 weeks
* Switch netstat -rn to use standard API for retrieving list of routesmelifaro2013-12-181-59/+121
| | | | | | | | | | | | | | | | | | | | instead of peeking inside in-kernel radix via kget. This permits us to change kernel structures without breaking userland. Additionally, this change provide more reliable and faster output. `Refs` and `Use` fields available in IPv4 by default (and via -W for other families) were removed. `Refs` is radix-specific thing which is not informative for users. `Use` field value is handy sometimes, but a) current API does not support it and b) I'm not sure we will support per-rte pcpu counters in near future. Old method of retrieving data is still supported (either by defining NewTree=0 or running netstat with -A). However, Refs/Use fields are hidden. Sponsored by: Yandex LLC MFC after: 4 weeks PR: kern/167204
* Enable llvm's integrated assembler for PowerPC, since it should now bedim2013-12-167-6/+13
| | | | | | | good enough for typical usage. Requested by: rdivacky MFC after: 1 week
* Include bsd.own.mk for MK_CASPER to work.pjd2013-12-151-0/+2
| | | | Reported by: nwhitehorn
* Make use of Casper's system.pwd and system.grp services when the -r optionpjd2013-12-152-3/+114
| | | | | | | | | is given to convert uids and gids to user names and group names even when running in capability mode sandbox. While here log on stderr when we successfully enter the sandbox. Sponsored by: The FreeBSD Foundation
* Some more cleanups and bug fixes in dtc for property printing / parsing.theraven2013-12-121-2/+7
| | | | Submitted by: Patrick Wildt
* Fix the version string in dts emission.theraven2013-12-121-1/+1
| | | | | Reported by: Patrick Wildt MFC after: 1 week
* calendar(1): use strlcpy instead of strncpyeadler2013-12-111-1/+1
| | | | use strlcpy instead of strncpy which avoids non-null-termination if the string is MAXPATHLEN bytes or longer.
* calendar(1): Add support for #include with absolute pathseadler2013-12-101-2/+5
| | | | | | | | Prior to the addition of cpp support into calendar itself #include </usr/share/calendar/calendar.all> was a legal construction in a calendar file. Permit this again
* Per the resolution of POSIX bug 0000779 (note 0002050) add support for using 'i'eadler2013-12-092-3/+4
| | | | | | | | as a case insensitive flag. PR: standards/184641 Requested by: David A. Wheeler <dwheeler@dwheeler.com> MFC After: 1 week
* Document -q and --quiet as discouraged compatibility option.delphij2013-12-071-1/+9
| | | | | Suggested by: eadler MFC after: 2 weeks
* Remove mention of the compatibility option 'q', which isdelphij2013-12-072-2/+2
| | | | | | | | | intentionally undocumented and its only purpose is that we do not bail out when used as a drop-in replacement of a different implementation. PR: docs/184550 MFC after: 2 weeks
* Add -F to flush output after each write. With this, I cantrhodes2013-12-052-4/+16
| | | | | | | | set up a pipe and allow a jr user to watch what I'm doing by running 'script -F pipefile' on it. While here, spell out the month in the .Dd tag like other manual pages.
* Add missing bits from the vendor's 2005-05-04 change toobrien2013-12-041-2/+6
| | | | | | | | contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by applications") so that applications have a hope of detecting newer FreeBSD YACC output from an older one. Submitted by: Juniper Networks
* Import svn-1.8.5. This contains a user-visible fix for svn:externalspeter2013-11-251-2/+2
| | | | | handling (there are no svn:externals in freebsd repo), and two security fixes for modules that we don't build for the apache http server stack.
* Add static where appropriate.eadler2013-11-211-8/+6
| | | | | | Sync with some of DragonflyBSD's latest cleanups Reviewed by: mjg
* Change introduction history.peter2013-11-201-2/+2
|
* Bump .Dd for recent changeeadler2013-11-181-1/+1
|
* Indicate which options are extensions to POSIX.eadler2013-11-181-0/+6
| | | | Inspired by: DragonFlyBSD
* Replace CAP_POLL_EVENT and CAP_POST_EVENT capability rights (which I hadpjd2013-11-151-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | a very hard time to fully understand) with much more intuitive rights: CAP_EVENT - when set on descriptor, the descriptor can be monitored with syscalls like select(2), poll(2), kevent(2). CAP_KQUEUE_EVENT - When set on a kqueue descriptor, the kevent(2) syscall can be called on this kqueue to with the eventlist argument set to non-NULL value; in other words the given kqueue descriptor can be used to monitor other descriptors. CAP_KQUEUE_CHANGE - When set on a kqueue descriptor, the kevent(2) syscall can be called on this kqueue to with the changelist argument set to non-NULL value; in other words it allows to modify events monitored with the given kqueue descriptor. Add alias CAP_KQUEUE, which allows for both CAP_KQUEUE_EVENT and CAP_KQUEUE_CHANGE. Add backward compatibility define CAP_POLL_EVENT which is equal to CAP_EVENT. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* Fix whitespace.ed2013-11-131-8/+8
|
* Somewhat mimic how the devel/subversion port prepopulatesgjb2013-11-131-0/+9
| | | | | | | | | | | | | | | 'Sponsored by:' in the FreeBSD commit template. Support for this has already existed ^/head/contrib/subversion but it was not enabled in usr.bin/svn/svn/Makefile. To use the pre-populated 'Sponsored by:' entry, set ORGANIZATION in make.conf(5), for example: ORGANIZATION= "The FreeBSD Foundation" Reviewed by: peter Sponsored by: The FreeBSD Foundation
* Update svn from 1.8.1 to 1.8.4 - minor security fixes and client sidepeter2013-11-111-4/+4
| | | | merge handling bug fixes (reintegrate, mergeinfo etc)
* - Add myself as port committer and my mentor's relationship.alexey2013-11-101-0/+1
| | | | | | - Add myself to calendar.freebsd. Approved: wg (mentor)
* Fix typo in "iscsictl -v".trasz2013-11-101-1/+1
| | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Add missed DPADDeadler2013-11-091-0/+1
| | | | Reported by: swildner@DragonflyBSD.org
* Change manual string conversion to expand_numbereadler2013-11-092-16/+5
| | | | Reviewed by: adrian
* Build and install the atf tests.jmmv2013-11-087-3/+46
| | | | | Reviewed by: freebsd-testing Approved by: rpaulo (mentor)
* Subsume the functionality of MK_ATF into MK_TESTS.jmmv2013-11-081-4/+4
| | | | | | | | | | There is no reason to keep the two knobs separate: if tests are enabled, the ATF libraries are required; and if tests are disabled, the ATF libraries are not necessary. Keeping the two just serves to complicate the build. Reviewed by: freebsd-testing Approved by: rpaulo (mentor)
* When writing DTS to a file, don't write some of it to stderr.theraven2013-11-051-1/+1
| | | | Reported by: ray
* Add myself to the calendar.markj2013-11-051-0/+1
|
* Add myself to the committers-src list and to the calendar.jmmv2013-11-041-0/+1
| | | | Approved by: rpaulo (mentor)
* sh(1),limits(1): Document kqueues (-k) rlimit.jilles2013-11-011-3/+7
|
* Remove the dependency on procfs.pluknet2013-11-011-19/+1
| | | | | | Reviewed by: kib MFC after: 1 week X-MFC with: r257430
OpenPOWER on IntegriCloud