aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Merge ^/head r305397 through r305430.Dimitry Andric2016-09-051-8/+55
|\ | | | | | | Notes: svn path=/projects/clang390-import/; revision=305431
| * Add a toggle to display the approximate amount of swap used by eachDag-Erling Smørgrav2016-09-051-8/+55
| | | | | | | | | | | | | | | | | | | | | | | | process. We don't *quite* pull that number out of our backside, as the actual number is difficult to determine without modifying the VM system to report it, but it's still useful to get an idea of what's going on when a machine unexpectedly starts swapping. MFC after: 1 week Notes: svn path=/head/; revision=305414
* | Some further micro-optimizations for the libllvm and lldb build.Dimitry Andric2016-09-041-1/+0
| | | | | | | | Notes: svn path=/projects/clang390-import/; revision=305387
* | Undo r305299, since it also sets up BINDIR, via usr.bin/Makefile.inc.Dimitry Andric2016-09-021-0/+5
| | | | | | | | | | | | | | Just set WARNS to zero instead. Notes: svn path=/projects/clang390-import/; revision=305302
* | Merge ^/head r305220 through r305300.Dimitry Andric2016-09-022-3/+7
|\| | | | | | | Notes: svn path=/projects/clang390-import/; revision=305301
| * When -n is specified, don't make bogus DNS queries. Instead,Hajimu UMEMOTO2016-09-022-3/+7
| | | | | | | | | | | | | | | | | | | | when -n is specified more than once, hostnames stored in utmp are attempted to resolve to display them as network addresses. PR: 212272 Notes: svn path=/head/; revision=305289
* | For now, undo the WARNS=3 setting for the clang and llvm tools. MoreDimitry Andric2016-09-021-5/+0
| | | | | | | | | | | | | | work needs to be done first to get everything compiling without warnings. Notes: svn path=/projects/clang390-import/; revision=305299
* | DIRDEPS_BUILD: Connect lld.Bryan Drewery2016-09-011-0/+26
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/projects/clang390-import/; revision=305243
* | DIRDEPS_BUILD: Connect the new clang build.Bryan Drewery2016-09-0129-0/+700
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/projects/clang390-import/; revision=305239
* | DIRDEPS_BUILD: Use libllvmminimal for tblgen for the host build.Bryan Drewery2016-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | The host tools are only ever built for the same reason as TOOLS_PREFIX, for running during the build. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/projects/clang390-import/; revision=305223
* | Merge ^/head r305087 through r305219.Dimitry Andric2016-09-017-7/+63
|\| | | | | | | Notes: svn path=/projects/clang390-import/; revision=305220
| * - Invert calloc(3) argument order.Marcelo Araujo2016-09-011-6/+6
| | | | | | | | | | | | | | MFC after: 4 weeks Notes: svn path=/head/; revision=305212
| * users: don't build when we don't have a C++ toolchainEd Maste2016-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | (On RISC-V MK_CXX is in BROKEN_OPTIONS, so users remains skipped there.) Reviewed by: bdrewery Differential Revision: https://reviews.freebsd.org/D7725 Notes: svn path=/head/; revision=305156
| * DIRDEPS_BUILD: Add some missing dirctories to the build.Bryan Drewery2016-08-313-0/+47
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=305148
| * DIRDEPS_BUILD: Update dependencies.Bryan Drewery2016-08-312-0/+9
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=305146
* | Add WITH_/WITHOUT_LLD knobs to enable the lld linkerEd Maste2016-08-311-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Use this to control inclusion of the libllvm functionality required by lld. Enable by default on arm64 and amd64, the two platforms where lld is most usable for testing. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7713 Notes: svn path=/projects/clang390-import/; revision=305158
* | Add lld MakefileEd Maste2016-08-301-0/+69
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/clang390-import/; revision=305089
* | Merge ^/head r305029 through r305080.Dimitry Andric2016-08-301-1/+1
|\| | | | | | | Notes: svn path=/projects/clang390-import/; revision=305081
| * Squelch clang 3.9.0 warnings about BASE (which is 32768) being convertedDimitry Andric2016-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | to -32768 when it is used as an argument to mp_itom(), in both libtelnet and newkey. This code has been wrong since r26238 (!), so after almost 20 years it is rather useless to try to correct it. MFC after: 1 week Notes: svn path=/head/; revision=305077
* | Merge ^/head r304885 through r304954.Dimitry Andric2016-08-281-0/+2
|\| | | | | | | Notes: svn path=/projects/clang390-import/; revision=304955
| * Fix build without INET6 and with gcc. A function definition was ifdefedBruce Evans2016-08-271-0/+2
| | | | | | | | | | | | | | for INET6, but its protototype was not, and gcc detects the error. Notes: svn path=/head/; revision=304895
* | Compile clang, lldb and related tools with WARNS=3 by default.Dimitry Andric2016-08-271-0/+2
| | | | | | | | Notes: svn path=/projects/clang390-import/; revision=304914
* | Centralize where LLVM_SRCS, CLANG_SRCS and LLDB_SRCS are defined.Dimitry Andric2016-08-273-6/+3
| | | | | | | | Notes: svn path=/projects/clang390-import/; revision=304889
* | Missed one .mk file where OBJTOP can be used.Dimitry Andric2016-08-271-4/+4
| | | | | | | | Notes: svn path=/projects/clang390-import/; revision=304887
* | Merge ^/head r304700 through r304884.Dimitry Andric2016-08-274-38/+115
|\| | | | | | | Notes: svn path=/projects/clang390-import/; revision=304885
| * Use printable ASCII instead of octal representation.Xin LI2016-08-271-1/+1
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=304875
| * bspatch: remove output file in the case of errorEd Maste2016-08-251-5/+32
| | | | | | | | | | | | | | | | | | Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7644 Notes: svn path=/head/; revision=304821
| * Add non-TRUSTEDBSD prefixed knobs for the _PC_ACL* and {CAP,INF,MAC}_PRESENT ↵Enji Cooper2016-08-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | knobs It's not necessarily intuitive that the variables to query contain TRUSTEDBSD in the prefix. Add non-TRUSTEDBSD prefixed knobs for querying things like "_PC_ACL_NFS4". MFC after: 1 week Relnotes: yes Reviewed by: wollman Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D7618 Notes: svn path=/head/; revision=304809
| * Capsicumize bspatchAllan Jude2016-08-251-12/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move all of the fopen() and open() calls to the top of main() Restrict each FD to least privilege (read/seek only, write only, etc) cap_enter(), and make all except the output FD read/seek only. Reviewed by: emaste, ed, oshogbo, delphij Approved by: so MFC after: 3 days Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D7358 Notes: svn path=/head/; revision=304807
| * Make the iSCSI parameter negotiation more flexible.Navdeep Parhar2016-08-251-25/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decouple the send and receive limits on the amount of data in a single iSCSI PDU. MaxRecvDataSegmentLength is declarative, not negotiated, and is direction-specific so there is no reason for both ends to limit themselves to the same min(initiator, target) value in both directions. Allow iSCSI drivers to report their send, receive, first burst, and max burst limits explicitly instead of using hardcoded values or trying to derive all of them from the receive limit (which was the only limit reported by the drivers prior to this change). Display the send and receive limits separately in the userspace iSCSI utilities. Reviewed by: jpaetzel@ (earlier version), trasz@ Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7279 Notes: svn path=/head/; revision=304787
* | Use SRCTOP and OBJTOP throughout the llvm/clang/lldb build.Dimitry Andric2016-08-273-11/+11
| | | | | | | | Notes: svn path=/projects/clang390-import/; revision=304884
* | Completely revamp the way llvm, clang and lldb are built.Dimitry Andric2016-08-2658-2754/+282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bootstrap llvm-tblgen and clang-tblgen with a minimal llvm static library, that has no other dependencies. * Roll up all separate llvm libraries into one big static libllvm. * Similar for all separate clang and lldb static libraries. * For all these libraries, generate their .inc files only once. * Link all llvm tools (including extra) against the big libllvm. * Link clang and clang-format against the big libllvm and libclang. * Link lldb against the big libllvm, libclang and liblldb. N.B.: This is work in progress, some details may still be missing. It also heavily depends on bsd.*.mk's support for SRCS and DPSRCS with relative pathnames, which apparently does not always work as expected. For building llvm, clang and lldb though, it seems to work just fine. The main idea behind this restructuring is maintainability and build peformance. The previous large number of very small libraries, each with their own generated files and dependencies was slow to traverse and hard to understand. Possible future improvements: * Only build certain targets, e.g. for most regular users having just one target will be fine. This will shave off some build time. * Building the big llvm, clang and lldb libraries as shared (private) libraries. * Adding other components from the LLVM project, such as lld. Notes: svn path=/projects/clang390-import/; revision=304867
* | Merge ^/head r304537 through r304699.Dimitry Andric2016-08-238-74/+81
|\| | | | | | | Notes: svn path=/projects/clang390-import/; revision=304700
| * Add support for _PC_ACL_NFS4 as TRUSTEDBSD_ACL_NFS4Enji Cooper2016-08-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | The TRUSTEDBSD prefix was chosen for consistency with the other related `_PC_ACL*` prefixed variables. MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=304698
| * Add `MIN_HOLE_SIZE` pathconf(2) support to getconfEnji Cooper2016-08-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | This allows shell programs to programmatically determine whether or not a filesystem supports sparse files MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=304694
| * Clean up trailing whitespaceEnji Cooper2016-08-231-2/+2
| | | | | | | | | | | | | | | | MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=304693
| * bspatch: apply style(9)Ed Maste2016-08-231-52/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | Make style changes (and trivial refactoring of open calls) now in order to reduce noise in diffs for future capsicum changes. Reviewed by: oshogbo No objection: cperciva Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7610 Notes: svn path=/head/; revision=304691
| * indent(1): have the memset invocation somewhat more canonical.Pedro F. Giffuni2016-08-231-1/+1
| | | | | | | | | | | | | | | | | | While correct, the previous invocation was somewhat more error prone. Pointed out by: delphij, bde Notes: svn path=/head/; revision=304686
| * indent(1): remove dead assignments.Pedro F. Giffuni2016-08-232-2/+1
| | | | | | | | | | | | | | Taken from: Piotr Sephaniak Notes: svn path=/head/; revision=304684
| * indent(1): Fix off-by-one in control flow leading dead code.Pedro F. Giffuni2016-08-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Coverity correctly reported that it's impossible for /comparison/ to be 0 here, because the only way for the for loop to end is by /comparison/ being < 0. Fortunately the consequences of this bug weren't severe; for duplicated entries in the typedef names file it would unnecessarily duplicate strings with strdup(), but pointers to those would replace existing ones. So this was a memory leak at worst. CID: 1361477 Obtained from: Piotr Stephaniak Notes: svn path=/head/; revision=304653
| * indent(1): add some comments to quiet down Coverity.Pedro F. Giffuni2016-08-232-1/+3
| | | | | | | | | | | | | | | | | | | | | | Hopefully adding comments should help explain the code to both static checkers and humans. CID: 976543, 976544, 976545 Obtained from: Piotr Stephaniak Notes: svn path=/head/; revision=304651
| * indent(1): Fix memory leaks pointed out by clang-analyzer.Pedro F. Giffuni2016-08-232-15/+11
| | | | | | | | | | | | | | | | | | | | | | | | Shift the responsibility of allocating memory for the string duplicate from the caller (set_option, add_typedefs_from_file) to the callee (add_typename) as it has more knowledge about when the duplication actually needs to occur. Taken from: Piotr Stefaniak Notes: svn path=/head/; revision=304650
* | Don't link the clang executable with unnecessary libraries.Dimitry Andric2016-08-201-3/+0
| | | | | | | | Notes: svn path=/projects/clang390-import/; revision=304541
* | Merge ^/head r304236 through r304536.Dimitry Andric2016-08-203-7/+5
|\| | | | | | | Notes: svn path=/projects/clang390-import/; revision=304538
| * Import the new automatically generated system call table for CloudABI.Ed Schouten2016-08-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we've switched over to using the vDSO on CloudABI, it becomes a lot easier for us to phase out old features. System call numbering is no longer something that's part of the ABI. It's fully based on names. As long as the numbering used by the kernel and the vDSO is consistent (which it always is), it's all right. Let's put this to the test by removing a system call (thread_tcb_set()) that's already unused for quite some time now, but was only left intact to serve as a placeholder. Sync in the new system call table that uses alphabetic sorting of system calls. Obtained from: https://github.com/NuxiNL/cloudabi Notes: svn path=/head/; revision=304478
| * Fix TAB replaced with spaces in prev. commit.Andrey A. Chernov2016-08-181-1/+1
| | | | | | | | Notes: svn path=/head/; revision=304374
| * Fix the output for scope statistics.Michael Tuexen2016-08-171-2/+2
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=304295
| * Use names for SCTP and UDPLite when reporting the input histogram.Michael Tuexen2016-08-171-2/+2
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=304292
* | Update build glue for lldb. Also comment out parts of theDimitry Andric2016-08-201-82/+87
| | | | | | | | | | | | | | | | initialization and termination code which reference plugins and components that we don't use. Notes: svn path=/projects/clang390-import/; revision=304536
* | Update build glue for clang and the llvm/clang extras.Dimitry Andric2016-08-1924-466/+445
|/ | | | Notes: svn path=/projects/clang390-import/; revision=304486