summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
| |
| * rpc: fix failure to clear string by passing the wrong size to memset.pfg2016-02-261-1/+1
| | | | | | | | | | | | | | Noted by NetBSD's PR/21014 Obtained from: NetBSD (CVS Rev. 1.24, 1.25) MFC after: 1 month
| * Convert casperd(8) daemon to the libcasper.oshogbo2016-02-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After calling the cap_init(3) function Casper will fork from it's original process, using pdfork(2). Forking from a process has a lot of advantages: 1. We have the same cwd as the original process. 2. The same uid, gid and groups. 3. The same MAC labels. 4. The same descriptor table. 5. The same routing table. 6. The same umask. 7. The same cpuset(1). From now services are also in form of libraries. We also removed libcapsicum at all and converts existing program using Casper to new architecture. Discussed with: pjd, jonathan, ed, drysdale@google.com, emaste Partially reviewed by: drysdale@google.com, bdrewery Approved by: pjd (mentor) Differential Revision: https://reviews.freebsd.org/D4277
| * DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-02-241-153/+0
| | | | | | | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division
| * db(3): Fix aliasing warnings from modern GCC.pfg2016-02-241-3/+2
| | | | | | | | | | | | While here also drop a malloc cast. Obtained from: NetBSD (CVS Rev. 1.18 - 1.20)
| * db(3): Fix aliasing warnings from modern GCC.pfg2016-02-241-6/+12
| | | | | | | | Obtained from: NetBSD (CVS Rev. 1.20)
* | MFHgjb2016-02-231-1/+5
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * If we close or sync a hash-based db file, make sure to call fsync todwmalone2016-02-231-1/+5
| | | | | | | | | | | | | | | | | | make sure the changes are on disk. The people at pfSense noticed that it didn't always make it to the disk soon enough with soft updates. Differential Revision: https://reviews.freebsd.org/D5186 Reviewed by: garga, vangyzen, bapt, se MFC after: 1 week
* | MFHgjb2016-02-224-9/+16
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Remove sys/types.hkevlo2016-02-191-2/+1
| |
| * Bump .Dd for r295764bjk2016-02-181-3/+3
| | | | | | | | Also fix a spelling and grammar nit while here.
| * Right now, the "virtual hole" API feature of lseek(2) is very vaguelysobomax2016-02-181-4/+12
| | | | | | | | | | | | | | | | | | | | | | documented and easy to miss. At the same time, it's pretty important for anyone who is trying to use SEEK_HOLE/SEEK_DATA in real app. Try to bridge that gap by making that description more pronounced and also document how it affects failure codes. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D5162
| * Remove dd xfer stats emitted during buildworldemaste2016-02-182-2/+2
| | | | | | | | They result in gratuitous differences when comparing build log output.
* | MFHgjb2016-02-181-0/+2
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Fix build race after r295643.bdrewery2016-02-171-0/+2
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-02-154-3/+15
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * fputs: Return the number of bytes written.pfg2016-02-151-1/+1
| | | | | | | | | | | | | | Fix r295631: wrong value. Pointy hat: pfg (me) Pointed out by: bde
| * getln: We cannot expand the buffer beyond INT_MAX.pfg2016-02-152-2/+12
| | | | | | | | | | | | | | | | | | In such cases return ENOMEM. This is a limitation of our implementation, alternatively you may consider getline(3). Differential Revision: https://reviews.freebsd.org/D442 (Partial) Obtained from: Apple Inc. (Libc 997.90.3) Relnotes: yes
| * fputs: Return the number of bytes written.pfg2016-02-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | POSIX.1-2008 requires that successful completion simply return a non-negative integer. We have regularly returned a constant value. Another, equally valid, implementation convention implies returning the number of bytes written. Adopt this last convention to be in line with what Apple's libc does. POSIX also explicitly notes: Note that this implementation convention cannot be adhered to for strings longer than {INT_MAX} bytes as the value would not be representable in the return type of the function. For backwards-compatibility, implementations can return the number of bytes for strings of up to {INT_MAX} bytes, and return {INT_MAX} for all longer strings. Developers shouldn't depend specifically on either convention but the change may help port software from Apple. Differential Revision: https://reviews.freebsd.org/D442 (Partial) Obtained from: Apple Inc. (Libc 997.90.3 with changes) Relnotes: yes
| * Remove man page references to rndassociates.com, which has been taken overjamie2016-02-101-1/+0
| | | | | | | | by a domain squatter.
| * Fix the gcc build after r295407.markj2016-02-081-1/+1
| | | | | | | | X-MFC-With: r295407
| * If libthr.so is dlopened without RTLD_GLOBAL flag, the libthr symbolskib2016-02-083-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | do not participate in the global symbols namespace, but rtld locks are still replaced and functions are interposed. In particular, __pthread_map_stacks_exec is resolved to the libc version. If a library is loaded later, which requires adjustment of the stack protection mode, rtld calls into libc __pthread_map_stacks_exec due to the symbols scope. The libc version might recurse into binder and recursively acquire rtld bind lock, causing the hang. Make libc __pthread_map_stacks_exec() interposed, which synchronizes rtld locks and version of the stack exec hook when libthr loaded, regardless of the symbol scope control or symbol resolution order. The __pthread_map_stacks_exec() symbol is removed from the private version in libthr since libc symbol now operates correctly in presence of libthr. Reported and tested by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* | MFHgjb2016-02-093-2/+12
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-02-082-2/+21
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * semget(2): Add missing [EINVAL] conditions.jilles2016-02-071-1/+12
| | | | | | | | PR: 206927
| * - connect(2) Clarify namelenjgh2016-02-041-1/+9
| | | | | | | | | | | | | | | | PR: 206838 Submitted by: t@tobik.me Approved by: bcr (mentor) MFH: after 1 week Differential Revision: https://reviews.freebsd.org/D5194
| * Move logic to destroy a struct catentry to its own function.bdrewery2016-02-021-9/+17
| | | | | | | | | | | | | | This will be used later for memory leak handling. Obtained from: OneFS Sponsored by: EMC / Isilon Storage Division
* | Remove libc, librtld_db, libthr packages, and further increasegjb2016-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | the constraints on what needs to be installed in a specific to maintain consistency during upgrades. Create a new clibs package containing libraries that are needed as a bare minimum for consistency. With much help and input from: kib Sponsored by: The FreeBSD Foundation
* | First pass through library packaging.gjb2016-02-041-0/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | Final pass through to fix 'tests' packaging.gjb2016-02-031-0/+4
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | More 'tests' packaging fixes.gjb2016-02-031-1/+3
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-02-031-9/+17
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | Fix another 'tests' packaging error.gjb2016-02-031-0/+4
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | More 'tests' package fixes.gjb2016-02-031-0/+4
| | | | | | | | Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud