summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix installation of makewhatis.local(1) since r283777.bdrewery2016-02-181-5/+0
| | | | | | | | The wrapper script has moved to libexec/makewhatis.local since it is not directlry related to the older makewhatis(1) utility that has been replaced by the usr.bin/mandoc version. Reported by: vangyzen
* DIRDEPS_BUILD: Hookup CLANG_EXTRAS.bdrewery2016-02-1623-0/+1140
| | | | Sponsored by: EMC / Isilon Storage Division
* Remove an unused variable that snuck into the previous revision.jhb2016-02-161-1/+0
|
* Fetch the current thread and it's syscall state from the trussinfo objectjhb2016-02-163-24/+27
| | | | | | instead of passing some of that state as arguments to print_syscall() and print_syscallret(). This just makes the calls of these functions shorter and easier to read.
* Fix naive use of ftell(3).pfg2016-02-161-1/+1
| | | | Secure coding practices, FIO19-C.
* Add myself as ports committer (including calendar)olivier2016-02-161-0/+1
| | | | | Approved by: jadawin Differential Revision: https://reviews.freebsd.org/D5295
* DIRDEPS_BUILD: Update dependencies.bdrewery2016-02-163-12/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* Test directories can build in parallel fine.bdrewery2016-02-161-0/+3
| | | | Sponsored by: EMC / Isilon Storage Division
* Correct the ABI name for Linux/i386 binaries under FreeBSD/i386.jhb2016-02-151-1/+1
| | | | | | This allows truss to work for these binaries again after r288424. MFC after: 3 days
* Sign extend the error value for failing Linux/i386 system calls. Thisjhb2016-02-151-0/+2
| | | | | restores the mapping of Linux errors to native FreeBSD errno values after the refactoring in r288424.
* Fix a bug that caused nothing to be skipped when skipping exactly thekevlo2016-02-141-1/+1
| | | | | | number of bytes present in a regular file was requested. Obtained from: OpenBSD
* elfcopy: enable PE and EFI supportemaste2016-02-121-3/+4
| | | | Sponsored by: The FreeBSD Foundation
* Rename variable to reflect the condition.kib2016-02-091-4/+4
| | | | | Suggested by: jhb Sponsored by: The FreeBSD Foundation
* Rename P_KTHREAD struct proc p_flag to P_KPROC.kib2016-02-091-4/+4
| | | | | | | | I left as is an apparent bug in ntoskrnl_var.h:AT_PASSIVE_LEVEL() definition. Suggested by: jhb Sponsored by: The FreeBSD Foundation
* Increase max allowed backlog for listen socketsalfred2016-02-023-9/+10
| | | | | | | | from short to int. PR: 203922 Submitted by: White Knight <white_knight@2ch.net> MFC After: 4 weeks
* Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions.jhb2016-01-3015-21/+21
| | | | | | Suggested by: jmallett Reviewed by: bdrewery, jmallett Differential Revision: https://reviews.freebsd.org/D5123
* Augment struct tcpstat with tcps_states[], which is used for book-keepingglebius2016-01-271-1/+1
| | | | | | | the amount of TCP connections by state. Provides a cheap way to get connection count without traversing the whole pcb list. Sponsored by: Netflix
* Bump copyrightdteske2016-01-271-1/+1
|
* Add `-k' for dpv(3) `keep_tite' config optiondteske2016-01-262-4/+13
| | | | | | For scripts using dialog(1) several times, it can be visually distracting running dpv(1) several times amidst other dialogs. The `-k' option, similar to dialog(1) `--keep-tite', enables the same functionality to smooth ti/te.
* Add support to libsysdecode for decoding system call names.jhb2016-01-2620-191/+83
| | | | | | | | | | | | | | | | | | | | | | | | A new sysdecode_syscallname() function accepts a system call code and returns a string of the corresponding name (or NULL if the code is unknown). To support different process ABIs, the new function accepts a value from a new sysdecode_abi enum as its first argument to select the ABI in use. Current ABIs supported include FREEBSD (native binaries), FREEBSD32, LINUX, LINUX32, and CLOUDABI64. Note that not all ABIs are supported by all platforms. In general, a given ABI is only supported if a platform can execute binaries for that ABI. To simplify the implementation, libsysdecode's build reuses the existing pre-generated files from the kernel source tree rather than duplicating new copies of said files during the build. kdump(1) and truss(1) now use these functions to map system call identifiers to names. For kdump(1), a new 'syscallname()' function consolidates duplicated code from ktrsyscall() and ktrsyscallret(). The Linux ABI no longer requires custom handling for ktrsyscall() and linux_ktrsyscall() has been removed as a result. Reviewed by: bdrewery Differential Revision: https://reviews.freebsd.org/D4823
* Disable gprof and users on RISC-V, they don't build.br2016-01-251-1/+4
|
* elfdump: handle STT_SPARC_REGISTERemaste2016-01-251-4/+24
| | | | | | | | | | STT_SPARC_REGISTER is a SPARC-specific symbol type specified by the Sparcv9 ABI to provide some information on register use by the object. Also rework st_info type lookup to avoid out-of-bounds array access. MFC after: 1 week Sponsored by: The FreeBSD Foundation
* We don't support a.out executables on RISC-V.br2016-01-241-2/+2
| | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5048
* Fix a regression in the .de and .dk whois special casesfanf2016-01-231-7/+15
| | | | | | | | | | Ensure the special cases trigger whether we come via a referral or via the -c option. Match host names case-insensitively. Use the default character set supported by .de (UTF-8) since that is more compatible with the modern world than ISO 8859-1. Persuade them to give us a useful answer whether an internationalized domain name is given in UTF-8 or in punycode.
* A lot of the cleverness in whois is no longer needed!fanf2016-01-232-189/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | The IANA whois server has the right referral information for domain names, IP addresses, and AS numbers, so whois does not need to be able to choose servers itself (except for a few cases where referrals do not work). We can delete a chunk of code, which is always fun. This change improves the referral handling to be less sensitive to all the various formats, and to allow multi-hop referral chains, such as IANA -> registry -> registrar. ARIN queries have the "+" flag added if no flags are present, so we get full details if the query matches multiple objects. The Verisign anti-spam logic is also now suppressed if the user provided a non- trivial query string. Uninformative rubric is now trimmed by default. The -S option turns off trimming, and disables query fettling. The -i option is back to its traditional pre-1999 hostname, since whois.internic.net is more useful than whois.networksolutions.com. Note that the old fallback/default server whois.crsnic.net is an alias for whois.internic.net. The manual is more informative about query syntax.
* Update whois synopsis and usage with new optionsfanf2016-01-222-2/+2
|
* Bump .Dd after r294575bjk2016-01-221-1/+1
|
* A few `whois` usability improvementsfanf2016-01-222-56/+80
| | | | | | | | | Look up AS numbers at ARIN. Handle more referral formats. Suppress spammy nameserver objects when querying the .com and .net whois servers by explicitly querying for domain names by default.
* Add support for RISC-V ISA.br2016-01-222-0/+56
| | | | | | | Reviewed by: andrew Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5014
* Fix usr.bin.truncate.truncate_test.bad_truncate with ZFS /tmp.asomers2016-01-191-7/+4
| | | | | | | | | | | | The bad_truncate test sets the uimmutable flag to produce an error in truncate, but that flag isn't supported by ZFS. If /tmp is on a ZFS filesystem, the test will fail. Change it to use readonly permissions and an unpriveleged user instead. Reviewed by: jilles MFC after: 1 week Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4862
* Import misc.c,v 1.46 from OpenBSD (by espie@)bapt2016-01-181-1/+3
| | | | Yet another missed ferror call
* Fix printing multibyte printing when performing a networked finger(1) requestbapt2016-01-181-6/+7
| | | | MFC after: 1 week
* mdoc: sort Xrjoel2016-01-181-3/+3
|
* Update mandoc to 20160116bapt2016-01-151-2/+4
|
* - Add support for zip to lesspipe.shak2016-01-151-0/+3
| | | | Approved by: des
* - Match directory extraction message with Infozip [1]ak2016-01-151-2/+5
| | | | | | | - Add comment explaining masks in check_binary() Obtained from: NetBSD [1] Approved by: des
* - Extract common code from extract()/extract_stdout() to extract2fd()ak2016-01-152-143/+91
| | | | | | | - Update information about central directory handling Obtained from: NetBSD Approved by: des
* Set -mlong-calls where needed to get a static clang and lldb 3.8.0andrew2016-01-142-0/+7
| | | | | | | | | | | linking. These are too large for a branch instruction to branch from an earlier point in the code to somewhere later. This will also allow these to be build with Thumb-2 when we get this infrastructure. Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D4855
* numactl: fix CPU affinity when modifying an existing process or threadvangyzen2016-01-141-5/+6
| | | | | | | | | | numactl was only modifying its own CPU affinity, which is fine when creating a new process, but not very helpful when modifying an existing processes. Reviewed by: adrian Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D4927
* New sendfile(2) syscall. A joint effort of NGINX and Netflix from 2013 andglebius2016-01-081-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | up to now. The new sendfile is the code that Netflix uses to send their multiple tens of gigabits of data per second. The new implementation features asynchronous I/O, when I/O operations are launched, but not awaited to be complete. An explanation of why such behavior is beneficial compared to old one is going to be too long for a commit message, so we will skip it here. Additional features of new syscall are extra flags, which provide an application more control over data sent. The SF_NOCACHE flag tells kernel that data shouldn't be cached after it was sent. The SF_READAHEAD() macro allows to specify readahead size in pages. The new syscalls is a drop in replacement. No modifications are required to applications. One can take nginx binary for stable/10 and run it successfully on head. Although SF_NODISKIO lost its original sense, as now sendfile doesn't block, and now means something completely different (tm), using the new sendfile the old way is absolutely safe. Celebrates: Netflix global launch! Sponsored by: Nginx, Inc. Sponsored by: Netflix Relnotes: yes
* DIRDEPS_BUILD: Update dependencies.bdrewery2016-01-072-5/+0
| | | | Sponsored by: EMC / Isilon Storage Division
* Make cap_mkdb and services_mkdb file operations syncgarga2016-01-071-1/+1
| | | | | | | | | | | | Similar fix was done for passwd and group operations in r285050. When a temporary file is created and then renamed to replace official file there are no checks to make sure data was written to disk and if a power cycle happens at this time, system can end up with a 0 length file Approved by: bapt MFC after: 1 week Sponsored by: Netgate Differential Revision: https://reviews.freebsd.org/D2982
* Update dependencies after r292622 moved the ioctl script.bdrewery2016-01-071-3/+0
| | | | Sponsored by: EMC / Isilon Storage Division
* MFV r293125: less v481.delphij2016-01-051-0/+5
| | | | | MFC after: 1 month Relnotes: yes
* Drop the clang patch which adds recognition of 'CC' suffixes as aliasesdim2015-12-302-1/+7
| | | | | | | for --driver-mode=g++, since this was never upstreamed. For backwards compatibility, add a wrapper shell script. MFC after: 1 week
* Improvements to BSD-licensed DTC.theraven2015-12-298-136/+792
| | | | | | | - Added an expression parser so that expressions from headers are now working - Fixed missing null terminators on cross references - Disabled exceptions / RTTI in the build for smaller binaries - Changed phandle order generation to be identical to GPL'd dtc
* Fix type mismatches for malloc(3) and Co.uqs2015-12-293-5/+5
| | | | | | | | | This is rather pedantic, as for most architectures it holds that sizeof(type *) == sizeof(type **) Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722
* Add on systat -vm the ability to display the physical and kernel memoryaraujo2015-12-281-1/+13
| | | | | | | | | percent usage. PR: bin/203917 Submitted by: ota <ota@j.email.ne.jp> Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4281
* Merge bmake-20151220sjg2015-12-251-2/+2
| | | | Fixed clearing suffixes impact on null suffix
* Since removal of oldnfs support linking to kvm is not needed anymorebapt2015-12-242-3/+0
|
OpenPOWER on IntegriCloud