summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
| * arm64 libc: hide .cerror, .curbrk, .minbrk for WITHOUT_SYMVERemaste2016-04-143-0/+3
| | | | | | | | | | | | | | | | | | | | When symver is in use these are hidden because they're not listed in the Symbol.map. Add an explicit .hidden so they are also hidden in the WITHOUT_SYMVER case. Reviewed by: andrew Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5775
* | MFHgjb2016-04-131-1/+1
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Remove PS_STRINGS fallback from setproctitleemaste2016-04-121-1/+1
| | | | | | | | | | | | | | | | In r103767 the kern.ps_strings sysctl was added as the preferred way to locate the ps_strings struct and is available in any FreeBSD release supported within the last decade. Reviewed by: kib
| * libc: cleanup unnecessary semicolons (part 2).pfg2016-04-112-2/+2
| | | | | | | | Found with devel/coccinelle.
| * libc: cleanup unnecessary semicolons.pfg2016-04-111-7/+7
| | | | | | | | Found with devel/coccinelle.
* | MFHgjb2016-04-123-9/+9
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-04-1126-53/+63
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * libc: replace 0 with NULL for pointers.pfg2016-04-1022-52/+49
| | | | | | | | | | | | | | | | | | While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle. Reviewed by: bde (previous version - all new bugs are mine)
| * Follow-up r295924: Only sync hash-based db files open for writing when closing.bdrewery2016-04-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | This fixes a major performance regression when reading db files such as the pw database during a 'pkg install'. MFC after: 1 week Tested by: bapt Reviewed by: bapt Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D5868
| * Revert a change that sneeked with 297619andrew2016-04-061-3/+1
| |
| * Disable support for compat syscalls on arm64. These symbols were neverandrew2016-04-065-1/+15
| | | | | | | | | | | | | | shipped since arm64 exists only on 11+. Submitted by: brooks Reviewed by: emaste, imp
* | MFHgjb2016-04-0426-47/+39
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * SJIS encoding don't have single byte characters >= 224ache2016-04-041-1/+1
| | | | | | | | MFC after: 1 week
| * EUC-type encodings don't have single byte characters >= 128ache2016-04-041-3/+3
| | | | | | | | | | | | This change should not be MFCed until new collate will be MFCed first, because our old EUC tables have some hacks for missing codesets.
| * Document KTRFAC_FAULT and KTRFAC_FAULTEND.brooks2016-03-311-1/+3
| | | | | | | | | | | | Obtained from: CheriBSD (9d70f563f1b033e6a9b51eaf3b145a8cbbc6617c) MFC after: 1 week Sponsored by: DARPA, AFRL
| * WITHOUT_TOOLCHAIN: Skip building of h_raw.bdrewery2016-03-311-1/+1
| | | | | | | | | | | | | | -fsanitize does not seem to work when a --sysroot is specified and there is no <sysroot>/usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.ubsan_standalone-*.a. Sponsored by: EMC / Isilon Storage Division
| * WITHOUT_TOOLCHAIN: Fix build of rtld.bdrewery2016-03-311-0/+3
| | | | | | | | | | | | | | | | | | | | MK_TOOLCHAIN==no disables building and installing of pic archives. c_pic.a is still needed for rtld though so force it to build in lib/libc and link directly to the objdir version of it for rtld. Somehow this has been broken since r148725. Sponsored by: EMC / Isilon Storage Division
| * libc: stop exporting cerroremaste2016-03-305-5/+0
| | | | | | | | | | | | | | | | | | | | i386 stopped exporting .cerror in r240152, and likewise for amd64 in r240178. It is not used by other libraries on any platform, so apply the same change to the remaining architectures. Reviewed by: jhibbits, jilles Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5774
| * freopen(3): prevent uninitialized errno.pfg2016-03-301-1/+0
| | | | | | | | | | | | | | Revert completley r297408 (and r297407): this ends up touching errno, which we are not allowed to do. Pointed out by: ache, bde
| * freopen(3): prevent uninitialized errno.pfg2016-03-301-2/+2
| | | | | | | | | | | | | | | | Revert r297407 and redo it cleanly. Pointed out by: Jukka A. Ukkonen CID: 1018720 MFC after: 1 week
| * freopen(3): prevent uninitialized errno.pfg2016-03-301-1/+2
| | | | | | | | | | | | | | The case doesn't look very likely but clean the possibility nevertheless CID: 1018720 MFC after: 1 week
| * Fix bunch of .Xrs.trasz2016-03-282-3/+3
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally.bdrewery2016-03-262-2/+0
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * libc: stop exporting curbrk and minbrk in the private namespaceemaste2016-03-249-18/+0
| | | | | | | | | | | | | | | | | | They are not used anywhere else in the base system and are an internal implementation detail that does not need to be exposed. Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5728
| * Fully handle size_t lengths in AIO requests.jhb2016-03-212-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, update the return types of aio_return() and aio_waitcomplete() to ssize_t. POSIX requires aio_return() to return a ssize_t so that it can represent all return values from read() and write(). aio_waitcomplete() should use ssize_t for the same reason. aio_return() has used ssize_t in <aio.h> since r31620 but the manpage and system call entry were not updated. aio_waitcomplete() has always returned int. Note that this does not require new system call stubs as this is effectively only an API change in how the compiler interprets the return value. Second, allow aio_nbytes values up to IOSIZE_MAX instead of just INT_MAX. aio_read/write should now honor the same length limits as normal read/write. Third, use longs instead of ints in the aio_return() and aio_waitcomplete() system call functions so that the 64-bit size_t in the in-kernel aiocb isn't truncated to 32-bits before being copied out to userland or being returned. Finally, a simple test has been added to verify the bounds checking on the maximum read size from a file.
| * Use the right argumant namejulian2016-03-181-1/+1
| | | | | | | | | | MFC after: 1 week Sponsored by: Panzura inc
| * libc: don't build compat functions if building WITHOUT_SYMVERemaste2016-03-155-8/+20
| | | | | | | | | | | | | | WITHOUT_SYMVER necessarily implies building a system without symver backwards compatability. Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-03-141-9/+0
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Remove Symbol.map entries for old AIO system calls for FreeBSD 6 compat.jhb2016-03-121-9/+0
| | | | | | | | | | | | | | | | | | | | | | These entries should have never been present since they only exist for compat with FreeBSD 6.x (and older) binaries. This was missed in r296572. Technically this breaks the ABI by removing versioned symbols. However, no binaries should be linked against these symbols. No release has shipped with a header that contained a prototype for these functions. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D5615
* | MFHgjb2016-03-1029-2/+516
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-0925-0/+511
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * Fix and connect setjmp test.bdrewery2016-03-091-0/+1
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * Fix spelling of MAXNAMLEN.trasz2016-03-091-2/+2
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * libc/{i386,amd64}: Do not export .cerror when building WITHOUT_SYMVERemaste2016-03-082-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Further to r240152 (i386) and r240178 (amd64), hide the .cerror symbol so that it is not exported if symbol versioning is not in use. Without this change WITHOUT_SYMVER libc contains .text relocations for .cerror, as described in LLVM PR 26813 (http://llvm.org/pr26813). This is a no-op for the regular build as the symbol version script already controls .cerror visibility. PR: 207712 Submitted by: Rafael EspĂ­ndola Reviewed by: jilles, kib Differential Revision: https://reviews.freebsd.org/D5571
* | MFHgjb2016-03-073-1/+130
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * libc: Add some tests for memcmp().jilles2016-03-062-0/+125
| |
| * Allow O_CLOEXEC to be used in dbopen() flagslidl2016-03-061-1/+5
| | | | | | | | | | | | | | | | | | There is also a small portability crutch, also present in NetBSD, to allow compiling on a system that doesn't define O_CLOEXEC. Approved by: rpaulo (mentor) Obtained from: NetBSD (r1.17, r1.18) Differential Revision: https://reviews.freebsd.org/D5549
* | MFHgjb2016-03-062-24/+28
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Stray tabs and spaces.pfg2016-03-051-8/+8
| | | | | | | | No functional change.
| * Work around aliasing issues detected in modern GCC.pfg2016-03-041-16/+20
| | | | | | | | | | | | | | Avoid casting gymnastics that lead to pointer aliasing by introducing an inline function as done in NetBSD (but without #if0'd WIP code). Obtained from: NetBSD (CVS Rev. 1.24, 1.25)
* | MFHgjb2016-03-0221-185/+89
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * mbtowc(3): set errno to EILSEQ if an incomplete character is passed.pfg2016-03-011-2/+9
| | | | | | | | | | | | | | | | | | | | | | According to POSIX, The mbtowc() function shall fail if: [EILSEQ] An invalid character sequence is detected. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D5496 Obtained from: OpenBSD (Ingo Schwarze) MFC after: 1 month
| * Update jemalloc to 4.1.0.jasone2016-02-292-2/+7
| | | | | | | | | | | | | | | | | | | | Add missing Symbol.map entry for __aligned_alloc. Add weak-->strong symbol binding for {malloc_stats_print,mallctl,mallctlnametomib,mallctlbymib} --> {__malloc_stats_print,__mallctl,__mallctlnametomib,__mallctlbymib}. These bindings complete the set necessary to allow applications to replace all malloc-related symbols.
| * kenv(8) -> kenv(1)trasz2016-02-291-1/+1
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * sysconf(2) -> sysconf(3)trasz2016-02-291-1/+1
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * sendmsg(3) -> sendmsg(2)trasz2016-02-292-2/+2
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Fix typos in .Xrs.trasz2016-02-292-2/+2
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * RPC: update the getrpcbyname() definition to include a const qualifier.pfg2016-02-262-3/+3
| | | | | | | | | | | | | | Add const qualifier making getrpcbyname() and getrpcbyname_r() prototypes match those used in latest Sun RPC code (TI-RPC 2.3). Obtained from: NetBSD
| * Make it clear that the "size" argument is for the dst string.bdrewery2016-02-261-3/+3
| | | | | | | | | | | | | | | | The rest of the manpage already referenced 'dstsize' but did not rename the variable in the prototype in r257646. MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
| * Make unions in PowerPC libc endian-safe.nwhitehorn2016-02-264-4/+44
| |
OpenPOWER on IntegriCloud