summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
| * Check for (old|new)size + 1 overflows off_t.ache2015-11-031-2/+4
| | | | | | | | | | PR: 204230 MFC after: 1 week
| * Use meaningful errno for ssize_t overflow in read().ache2015-11-031-4/+22
| | | | | | | | | | | | | | Catch size_t overflow in malloc(). PR: 204230 MFC after: 1 week
* | Merge from headbapt2015-11-0145-507/+1223
|\ \ | |/
| * Make truss work for CloudABI processes on aarch64.ed2015-10-305-85/+247
| | | | | | | | | | | | | | | | | | | | This change copies over amd64-cloudabi64.c to aarch64-cloudabi.c and adjusts it to fetch the proper registers on aarch64. To reduce the amount of shared code, the errno conversion function is moved into a separate source file. Reviewed by: jhb, andrew Differential Revision: https://reviews.freebsd.org/D4023
| * Check archive_entry_new() result.bdrewery2015-10-291-0/+9
| | | | | | | | Coverity CID: 1331341
| * Use more appropriate ${SHAREDIR} rather than /usr/share.bdrewery2015-10-271-1/+1
| | | | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
| * Update NetBSD RCS IDs to reflect the changes being upstreamed.delphij2015-10-272-2/+2
| | | | | | | | | | MFC after: 13 days X-MFC-With: r290024
| * In gunzip(1), treat trailing garbage as a warning and not an error. Thisdelphij2015-10-262-3/+10
| | | | | | | | | | | | | | | | | | | | | | allows scripts to distinguish it between real fatal errors, for instance a CRC mismatch. Update manual page for the behavior change. PR: bin/203873 Submitted by: Eugene Grosbein <eugen grosbein net> MFC after: 2 weeks
| * Update some obsolete information in the HACKING document.theraven2015-10-261-13/+11
| | | | | | | | Reported by: bapt
| * Ensure that dtc is built in C++11 mode.theraven2015-10-261-0/+2
| | | | | | | | Reported by: George Abdelmalik
| * Lots of improvements to the BSD-licensed dtctheraven2015-10-2510-352/+511
| | | | | | | | | | | | | | | | | | | | - Various fixes to includes (including recursive includes) - Lots of testing that the output exactly matches GPL'd dtc - Lots of bug fixes to merging - Fix incorrect mmap usage - Ad-hoc memory management replaced with C++11 unique_ptr and similar Patrick Wildt has successfully run many (all?) of the GPL dtc test suite.
| * timeout(1): fix the acceptable range values for parse_signal()bapt2015-10-241-1/+1
| | | | | | | | | | | | | | | | | | Before both 0 and sys_nsig would be successfully returned by parse_signal() although being invalid signal numbers. PR: Alexandre Perrin <alex@kaworu.ch> MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D3990
| * Fix some mdoc(7) issuesbapt2015-10-241-17/+16
| | | | | | | | Obtained from: DragonflyBSD
| * Bump date. Missed in r289873.tuexen2015-10-241-1/+1
| | | | | | | | | | MFC after: 1 week X-MFC with: r289873
| * Add support to systat to display SCTP statistics.tuexen2015-10-245-1/+374
| | | | | | | | MFC after: 1 week
| * Replace gcc reference with 'cc' and document the default ${CC}.bdrewery2015-10-241-3/+7
| | | | | | | | MFC after: 1 week
| * Merge bmake 20151020sjg2015-10-231-2/+3
| |
| * dtc needs to be installed if MK_GPL_DTC is not set, which doesn't fit into thebdrewery2015-10-231-1/+3
| | | | | | | | | | | | | | | | | | | | SUBDIR.yes pattern well. This fixes installation of the BSDL dtc after r288904. Reported by: jhibbits Discussed with: imp Sponsored by: EMC / Isilon Storage Division
| * dpv(1) merged to stable/10 before release/10.2.0dteske2015-10-231-3/+3
| | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10
| * -C and -c allow at most one input file. Ensure this is the case when thegabor2015-10-221-5/+5
| | | | | | | | | | | | | | | | input files are specified through --files0-from. Submitted by: tim@OpenBSD Obtained from: OpenBSD MFC after: 1 week
| * Fix a ton of speelling errorseadler2015-10-2113-22/+22
| | | | | | | | | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
| * getconf(1): Fix typo. _POSIX_V6_LP64_OFFBIG -> _POSIX_V6_LPBIG_OFFBIG.bapt2015-10-191-1/+1
| | | | | | | | | | | | Submitted by: Sascha Wildner <saw@online.de> Obtained from: DragonflyBSD MFC after: 3 days
* | libc: Fix (and improve) nl_langinfo (CODESET)bapt2015-11-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output of "locale charmap" is identical to the result of nl_langinfo (CODESET) for any given locale. The logic for returning the codeset was very simplistic. It just returned portion of the locale name after the period (e.g. en_FR.ISO8859-1 returned "ISO8859-1"). When softlinks were added to locales, this broke. e.g.: en_US returned "" en_FR.UTF8 returned "UTF8" en_FR.UTF-8 returned "UTF-8" zh_Hant_HK.Big5HKSCS returned "Big5HKSCS" zh_Hant_TW.Big5 returned "Big5" es_ES@euro returned "" In order to fix this properly, the named locale cannot be used to determine the encoding. This information was almost available in the rune data. Unfortunately, all the single byte encodings were listed as "NONE" encoding. So I adjusted localedef tool to provide more information about the encoding. For example, instead of "NONE", the LC_CTYPE used by fr_FR.ISO8859-15 is now encoded as "NONE:ISO8859-15". The locale handlers now check if the first four characters of the encoding is "NONE" and if so, treats it as a single-byte encoding. The nl_langinfo handling of CODESET was adjusting accordingly. Now the following is returned: en_US returns "ISO8859-1" fr_FR.UTF8 returns "UTF-8" fr_FR.UTF-8 returns "UTF-8" zh_Hant_HK.Big5HKSCS returns "Big5" zh_Hant_TW.Big5 returns "Big5" es_ES@euro returns "ISO8859-15" as before, "C" and "POSIX" locales return "US-ASCII". This is a big improvement. The result of nl_langinfo can never be a zero-length string and it will always exclusively one of the values of the character maps of /usr/src/tools/tools/locale/etc/final-maps. Submitted by: marino Obtained from: DragonflyBSD
* | Actually only T_ISDIGIT should be flagged as _E4bapt2015-10-191-1/+1
| |
* | With regard to ctype, digits (e.g. 0 to 9) and xdigits (the 0 to 9 portionbapt2015-10-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | of hexidecimal numbers) are all considered "numbers". (Note that while all digits are numbers, not all numbers are digits). Enhance localedef to automatically set the "number" characteristic when it encounters a digit or xdigit definition. This fixes malfunctionning isalnum(3) Obtained from: DragonflyBSD
* | Merge from headbapt2015-10-1910-11/+112
|\ \ | |/
| * Make libxo depend on libutil because it uses humanize_number after r287111ngie2015-10-183-3/+3
| | | | | | | | | | | | | | | | Remove overlinking in lib/libxo/tests, sbin/savecore, and usr.bin/{iscsictl,wc,xo} PR: 203673 Sponsored by: EMC / Isilon Storage Division
| * Remove write-only variable.trasz2015-10-171-2/+0
| | | | | | | | | | | | Submitted by: Dominic Marks MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Add -w flag to iscsictl(8) utility, to make it wait for successfulltrasz2015-10-172-7/+89
| | | | | | | | | | | | | | | | | | session establishment. Scripting is kind of hard without it. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3872
| * Add support for ARM EABI.jkim2015-10-161-1/+12
| | | | | | | | MFC after: 1 week
| * mkimg: support fat16b partitions (MBR type 06h)emaste2015-10-154-0/+10
| | | | | | | | | | | | Reviewed by: marcel Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3894
* | Merge from headbapt2015-10-1320-202/+233
|\ \ | |/
| * Simplify syscall generation and ABI source file handling for the build.bdrewery2015-10-1320-202/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to make the Makefile more easily extendable for new ABIs. This also makes several other subtle changes: - The build now is given a list of ABIs to use based on the MACHINE_ARCH or MACHINE_CPUARCH. These ABIs have a related path in sys/ that is used to generate their syscalls. For each ABI to build check for a ABI.c, MACHINE_ARCH-ABI.c, or a MACHINE_CPUARCH-ABI.c. This matches the old behavior needed for archs such as powerpc* and mips*. - The ABI source file selection allows for simpler assignment of common ABIs such as "fbsd32" from sys/compat/freebsd32, or cloudabi64. - Expand 'fbsd' to 'freebsd' everywhere for consistency. - Split out the powerpc-fbsd.c file into a powerpc64-freebsd32.c to be more like the amd64-freebsd32.c file and to more easily allow the auto-generation of ABI handling to work. - Rename 'syscalls.h' to 'fbsd_syscalls.h' to lessen the ambiguity and avoid confusion with syscall.h (such as in r288997). - For non-native syscall header files, they are now renamed to be ABI_syscalls.h, where ABI is what ABI the Makefile is building. - Remove all of the makesyscalls config files. The "native" one being name i386.conf was a long outstanding bug. They were all the same except for the data they generated, so now it is just auto-generated as a build artifact. - The syscalls array is now fixed to be static in the syscalls header to remove the compiler warning about non-extern. This was worked around in the aarch64-fbsd.c file but not the others. - All syscall table names are now just 'syscallnames' since they don't need to be different as they are all static in their own ABI files. The alternative is to name them ABI_syscallnames which does not seem necessary. Reviewed by: ed, jhb MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D3851
* | eliminate need for "print" definitionbapt2015-10-131-0/+2
| | | | | | | | | | | | | | | | By having space automatically classified as "print" type, we can eliminate the print section from ctype src files completely (they are just "graph" plus "<space>". Obtained from: Dragonfly
* | Commit log from Dragonfly:bapt2015-10-131-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD extended ctypes to include numbers (e.g. isnumber()) but never actually implemented it. The isnumber() function was equivalent to the isdigit() function in every case. Now that DragonFly's ctype source files have number definitions, the number ctype can finally be implemented. It's given a new flag _CTYPE_N. The isalnum() and iswalnum() functions have been changed to use this flag rather than the _CTYPE_D digit flag. While isalnum(), isnumber(), and their wide equivalents now return different values in locale cases, the ishexnumber() and iswhexnumber() functions are unchanged. They are still aliases for isxdigit() and iswxdigit(). Also change ctype.h for isdigit and isxdigit to use sbistype like the other functions. Obtained from: dragonfly
* | Merge from headbapt2015-10-13311-5044/+88110
|\ \ | |/
| * Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in tongie2015-10-127-148/+274
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the FreeBSD test suite functional_test.sh was ported from bin/sh/tests/functional_test.sh, as a small wrapper around libarchive_test, bsdcpio_test, and bsdtar_test provided by upstream. A handful of testcases in lib/libarchive/tests have been disabled as they were failing when run with kyua test (see BROKEN_TESTS in lib/libarchive/tests/Makefile) As a sidenote: this removes the check/test targets from the Makefiles as they don't match the pattern used in the rest of the FreeBSD test suite. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
| | * Revert r289133; retry the mergengie2015-10-114-0/+336
| | |
| | * MFhead @ r289132ngie2015-10-114-336/+0
| | |
| | * MFhead @ r289100ngie2015-10-1012-173/+688
| | |\
| | * | Integrate the rest of the pieces from libarchive into thengie2015-10-077-144/+275
| | | | | | | | | | | | | | | | FreeBSD test suite (cpio, tar)
| | * | MFhead @ r288954ngie2015-10-061-207/+214
| | | |
| | * | MFhead @ r288943ngie2015-10-0639-79/+514
| | |\ \ | | | | | | | | | | | | | | | clang 3.7.0 upgrade
| | * | | ------------------------------------------------------------------------ngie2015-10-0628-84/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r288932 | ngie | 2015-10-06 10:15:07 -0700 (Tue, 06 Oct 2015) | 9 lines Refactor the test/ Makefiles per recent changes to bsd.test.mk and netbsd-tests.test.mk - Eliminate explicit SRCTOP setting - Eliminate explicit OBJ - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity ------------------------------------------------------------------------
| * | | | Update from svn-1.8.14 to 1.9.2.peter2015-10-1225-47/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Formal release notes are available: https://subversion.apache.org/docs/release-notes/1.9.html Of particular note, the client checkout format has *not* changed so upgrades should *not* be required. When reading a repository (file:// or running as a local server), an improved fsfs version 7 is available with significant performance improvements. An optional upgrade is possible to use the new features. Without the upgrade, this is fully read/write compatible with the version 6 fsfs as in svn-1.8. Relnotes: yes
| * | | | Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-1228-84/+20
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
| * | | Let -c imply -S (hide signal output).bdrewery2015-10-092-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this, the signals are shown seemingly randomly in the output before the final summary is shown. This is especially noticeable when there is not much output from the application being traced. Discussed with: jhb Relnotes: yes
| * | | Properly format pointer size independent CloudABI system calls.ed2015-10-084-18/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CloudABI has approximately 50 system calls that do not depend on the pointer size of the system. As the ABI is pretty compact, it takes little effort to each truss(8) the formatting rules for these system calls. Start off by formatting pointer size independent system calls. Changes: - Make it possible to include the CloudABI system call definitions in FreeBSD userspace builds. Add ${root}/sys to the truss(8) Makefile so we can pull in <compat/cloudabi/cloudabi_syscalldefs.h>. - Refactoring: patch up amd64-cloudabi64.c to use the CLOUDABI_* constants instead of rolling our own table. - Add table entries for all of the system calls. - Add new generic formatting types (UInt, IntArray) that we'll be using to format unsigned integers and arrays of integers. - Add CloudABI specific formatting types. Approved by: jhb Differential Revision: https://reviews.freebsd.org/D3836
| * | | Correct a comment.bdrewery2015-10-081-1/+1
| | | |
| * | | Remove support of ancient (pre-8.0R, 800041) FreeBSD releases.delphij2015-10-071-8/+0
| | | | | | | | | | | | | | | | MFC after: 2 weeks
OpenPOWER on IntegriCloud