aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | Add missing macro in man page.Mariusz Zaborski2018-01-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: brueffer@ Notes: svn path=/head/; revision=327539
| * | | | | | | Document services which we have in libcasper.Mariusz Zaborski2018-01-031-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: bcr@ Differential Revision: https://reviews.freebsd.org/D13734 Notes: svn path=/head/; revision=327511
| * | | | | | | Remove unused includes.Xin LI2018-01-011-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=327463
| * | | | | | | cacos(3): correct spelling of 'I'Eitan Adler2017-12-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases we had 'i' instead of 'I'. PR: 195517 Submitted by: stephen Notes: svn path=/head/; revision=327400
| * | | | | | | isgreater(3): correct description of isunordered macroEitan Adler2017-12-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 211376 Submitted by: Duane <parakleta@darkreality.org> MFC After: 1 week Notes: svn path=/head/; revision=327398
| * | | | | | | libc/locale: fix an off-by-one in newlocaleEitan Adler2017-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: zrj@DragonFlyBSD.org Notes: svn path=/head/; revision=327343
* | | | | | | | Merge ^/head r327169 through r327340.Dimitry Andric2017-12-2918-305/+313
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327341
| * | | | | | | humanize_number(3): fix math edge case in rounding large numbersBartek Rutkowski2017-12-283-287/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for remainder overflow, when in rare cases adding remainder to divider exceeded 1 and turned the total to 1000 in final formatting, taking up the space for the unit character. The fix continues the division of the original number if the above case happens -- added the appropriate check to the for loop performing the division. This lowers the value shown, to make it fit into the buffer space provided (1.0M for 4+1 character buffer, as used by ls). Add test case for the reported bug and extend test program to support providing buffer length (ls -lh uses 5, tests hard-coded 4). PR: 224498 Submitted by: Pawel Biernacki <pawel.biernacki@gmail.com> Reported by: Masachika Ishizuka <ish@amail.plala.or.jp> Reviewed by: cem, kib Approved by: cem, kib MFC after: 1 week Sponsored by: Mysterious Code Ltd. Differential Revision: D13578 Notes: svn path=/head/; revision=327317
| * | | | | | | Close slave on fork error to prevent pty fd leak.Warner Losh2017-12-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CID: 978209 Notes: svn path=/head/; revision=327271
| * | | | | | | Fix a few more speelling errorsEitan Adler2017-12-283-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: bjk Reviewed by: jilles (incl formal "accept") Differential Revision: https://reviews.freebsd.org/D13650 Notes: svn path=/head/; revision=327259
| * | | | | | | SPDX: Small for a license ID tags.Pedro F. Giffuni2017-12-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use parenthesis for grouping as suggested by the spec. Notes: svn path=/head/; revision=327249
| * | | | | | | SPDX: Fix some License ID tags for libc.Pedro F. Giffuni2017-12-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=327248
| * | | | | | | lib: Fix several typos and minor errorsEitan Adler2017-12-276-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - duplicate words - typos - references to old versions of FreeBSD Reviewed by: imp, benno Notes: svn path=/head/; revision=327232
| * | | | | | | Missing disk close in libufs.Kirk McKusick2017-12-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=327227
| * | | | | | | fsync(3): correctly document return valuesEitan Adler2017-12-251-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In r268924 the behavior of fflush was changed to return success on read only streams. Document this. Reported by: zrj@DragonFlyBSD.org Notes: svn path=/head/; revision=327181
* | | | | | | | Merge llvm, clang, lld, lldb, compiler-rt and libc++ trunk r321545,Dimitry Andric2017-12-294-3/+12
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update build glue and version numbers, add new intrinsics headers, and update OptionalObsoleteFiles.inc. Notes: svn path=/projects/clang600-import/; revision=327330
| * | | | | | | Vendor import of clang trunk r321530:vendor/clang/clang-trunk-r321545vendor/clang/clang-trunk-r321530Dimitry Andric2017-12-2840-206/+2829
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/cfe/trunk@321530 Notes: svn path=/vendor/clang/dist/; revision=327302 svn path=/vendor/clang/clang-trunk-r321545/; revision=327322; tag=vendor/clang/clang-trunk-r321545
| * | | | | | | Vendor import of clang trunk r321426:vendor/clang/clang-trunk-r321426Dimitry Andric2017-12-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/cfe/trunk@321426 Notes: svn path=/vendor/clang/dist/; revision=327154 svn path=/vendor/clang/clang-trunk-r321426/; revision=327155; tag=vendor/clang/clang-trunk-r321426
| * | | | | | | Vendor import of clang trunk r321414:vendor/clang/clang-trunk-r321414Dimitry Andric2017-12-2473-551/+1391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/cfe/trunk@321414 Notes: svn path=/vendor/clang/dist/; revision=327124 svn path=/vendor/clang/clang-trunk-r321414/; revision=327125; tag=vendor/clang/clang-trunk-r321414
| * | | | | | | Vendor import of clang trunk r321017:vendor/clang/clang-trunk-r321017Dimitry Andric2017-12-18486-26475/+47816
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/cfe/trunk@321017 Notes: svn path=/vendor/clang/dist/; revision=326941 svn path=/vendor/clang/clang-trunk-r321017/; revision=326942; tag=vendor/clang/clang-trunk-r321017
* | | | | | | | Add one more file to libllvm's SRCS_MIN, since this one is required forDimitry Andric2017-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MK_SHARED_TOOLCHAIN=yes. Notes: svn path=/projects/clang600-import/; revision=327328
* | | | | | | | Only build tsan and tsan_cxx for amd64, as 32 bit is unsupported.Dimitry Andric2017-12-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327174
* | | | | | | | Merge ^/head r326936 through r327149.Dimitry Andric2017-12-246-18/+74
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327150
| * | | | | | | Introduce the daemonfd function.Mariusz Zaborski2017-12-233-15/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The daemonfd function is equivalent to the daemon(3) function expect that arguments are descriptors. For example dhclient(8) which is sandboxed is unable to open /dev/null to close stdio instead it's allows to fail daemon(3) function to close the descriptors and then do it explicit in code. Instead of such hacks we can use now daemonfd. This API can be also helpful to migrate system to platforms like CheriBSD. Reviewed by: brooks@, bcr@, jilles@ (earlier version) Differential Revision: https://reviews.freebsd.org/D13433 Notes: svn path=/head/; revision=327115
| * | | | | | | fopen.1: document truncationEitan Adler2017-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This documentation truncation similar to POSIX and glibc. PR: 202545 Reported by: intron@intron.ac Notes: svn path=/head/; revision=327099
| * | | | | | | Bump number that's an insane number of devices from 1,000 to 10,000. IWarner Losh2017-12-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | have access to machines that are pushing 400 devices. When 1,000 was selected, it was rare to get even 40 or 50 devices. Bump the limit by 10x to keep up with the times. Sponsored by: Netflix Notes: svn path=/head/; revision=327054
| * | | | | | | Don't ignore trailing spaces after numerical IP addresses.Hajimu UMEMOTO2017-12-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 224403 Reported by: Michael Kaufmann Reviewed by: Michael Kaufmann MFC after: 1 week Notes: svn path=/head/; revision=327029
* | | | | | | | Update clang, lld and llvm version numbers for r321414, and update buildDimitry Andric2017-12-244-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | glue. Notes: svn path=/projects/clang600-import/; revision=327143
* | | | | | | | Next step in updating llvm/clang build glue: make libclang_rt build.Dimitry Andric2017-12-2314-52/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327119
* | | | | | | | Next step in updating llvm/clang build glue: make lldb build.Dimitry Andric2017-12-222-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327092
* | | | | | | | Next step in updating llvm/clang build glue: make lld build.Dimitry Andric2017-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327083
* | | | | | | | Sort source file lists under lib/clang.Dimitry Andric2017-12-222-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327079
* | | | | | | | Next step in updating llvm/clang build glue: make the optional llvm andDimitry Andric2017-12-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang tools build. Notes: svn path=/projects/clang600-import/; revision=327078
* | | | | | | | Next step in updating llvm/clang build glue: make llvm-objdump build.Dimitry Andric2017-12-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327077
* | | | | | | | Next step in updating llvm/clang build glue: make the full clangDimitry Andric2017-12-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | executable build. Notes: svn path=/projects/clang600-import/; revision=327076
* | | | | | | | First step in updating llvm/clang build glue: make only the clangDimitry Andric2017-12-214-18/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | executable build. Notes: svn path=/projects/clang600-import/; revision=327069
* | | | | | | | Update libclang_rt version number.Dimitry Andric2017-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327044
* | | | | | | | Bump FREEBSD_CC_VERSION.Dimitry Andric2017-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327043
* | | | | | | | Add new clang intrinsics headers, and update version number.Dimitry Andric2017-12-201-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327042
* | | | | | | | Update generated config headers, and version numbers.Dimitry Andric2017-12-208-23/+55
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327041
* | | | | | | libsysdecode: Add a new ABI type, SYSDECODE_ABI_CLOUDABI32.Ed Schouten2017-12-164-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to let truss(8) support tracing of 32-bit CloudABI applications, we need to add a new ABI type to libsysdecode. We can reuse the existing errno mapping table. Also link in the cloudabi32 system call table to translate system call names. While there, remove all of the architecture ifdefs. There are not needed, as the CloudABI data types and system call tables build fine on any architecture. Building this unconditionally will make it easier to do tracing for different compat modes, emulation, etc. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D13516 Notes: svn path=/head/; revision=326910
| | | | | | |
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
*---------. \ \ \ \ \ \ Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ toDimitry Andric2017-12-163-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|/ / / / / / | |/| | | | | / / / / / | | | |_|_|_|/ / / / / | | |/| | | | / / / / | | | | |_|_|/ / / / | | | |/| | | / / / | | | | | |_|/ / / | | | | |/| | / / | | | | | | |/ / | | | | | |/| / | | | | | | |/ 5.0.1 release (upstream r320880). Relnotes: yes MFC after: 2 weeks Notes: svn path=/head/; revision=326909
| | | | | | * Vendor import of llvm 5.0.1 release r320880:vendor/llvm/llvm-release_501-r320880Dimitry Andric2017-12-163-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_501/final@320880 Notes: svn path=/vendor/llvm/dist/; revision=326899 svn path=/vendor/llvm/llvm-release_501-r320880/; revision=326900; tag=vendor/llvm/llvm-release_501-r320880
| | | | * | | Vendor import of lld 5.0.1 release r320880:vendor/lld/lld-release_501-r320880Dimitry Andric2017-12-166-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/lld/tags/RELEASE_501/final@320880 Notes: svn path=/vendor/lld/dist/; revision=326905 svn path=/vendor/lld/lld-release_501-r320880/; revision=326906; tag=vendor/lld/lld-release_501-r320880
| * | | | | | Vendor import of clang 5.0.1 release r320880:vendor/clang/clang-release_501-r320880Dimitry Andric2017-12-164-7/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_501/final@320880 Notes: svn path=/vendor/clang/dist/; revision=326901 svn path=/vendor/clang/clang-release_501-r320880/; revision=326902; tag=vendor/clang/clang-release_501-r320880
* | | | | | | revert r322589: force use of ld.bfd for linking i386 libcEd Maste2017-12-161-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of r326897 ld.lld can link a working i386 libc.so, so we no longer need to force use of ld.bfd. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326908
* | | | | | | SPDX: some uses of the RSA-MD license.Pedro F. Giffuni2017-12-136-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=326828
* | | | | | | SPDX: mostly fixes to previous changes.Pedro F. Giffuni2017-12-134-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce the recently approved BSD-1-Clause and replace 0BSD which never did fit well our use cases. Notes: svn path=/head/; revision=326823
* | | | | | | Rework alignment handling in __libc_allocate_tls() for Variant I of TLS layout.Michal Meloun2017-12-121-21/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two versions of variant I of TLS - ARM and aarch64 uses original version of variant I here TP points to start of TCB followed by aligned TLS segment. Both TCB and TLS must be aligned to alignment of TLS section. The TCB[0] points to DTV vector and DTV values are real addresses (without bias). - MIPS, PowerPC and RISC-V use modified version of variant I, where TP points (with bias) to TLS and TCB immediately precedes TLS without any alignment gap. Only TLS should be aligned. The TCB[0] points to DTV vector and DTV values are biased by constant value (0x8000) from real addresses. Take all this in account when allocating memory for TLS structures. MFC after: 1 month Reviewed by: kib, mizhka Tested by: mizhka(on mips) Differential Revision: https://reviews.freebsd.org/D13378 Notes: svn path=/head/; revision=326794
* | | | | | | Correct r326748, indicating that tgammal(3) is mapped to tgamma(3), notDimitry Andric2017-12-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to itself. Noticed by: jilles MFC after: 3 days Notes: svn path=/head/; revision=326753