summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
* | MFHgjb2016-02-022-0/+98
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * This seems like a very trivial bug that should have been squashed a longsobomax2016-01-302-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | time ago, but for some reason it was not. Basically, without this change dlopen(3)'ing an empty .so file would just cause application to dump core with SIGSEGV. Make sure the file has enough data for at least the ELF header before mmap'ing it. Add a test case to check that dlopen an empty file return an error. There were a separate discussion as to whether it should be SIGBUS instead when you try to access region mapped from an empty file, but it's definitely SIGSEGV now, so if anyone want to check that please be my guest. Reviewed by: mjg, cem MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5112
* | First pass to fix the 'tests' packages.gjb2016-02-0223-0/+92
|/ | | | Sponsored by: The FreeBSD Foundation
* Add implementations of sendmmsg(3) and recvmmsg(3) functions whichkib2016-01-298-20/+303
| | | | | | | | | | | | | | | | | | wraps sendmsg(2) and recvmsg(2) into batch send and receive operation. The goal of this implementation is only to provide API compatibility with Linux. The cancellation behaviour of the functions is not quite right, but due to relative rare use of cancellation it is considered acceptable comparing with the complexity of the correct implementation. If functions are reimplemented as syscalls, the fix would come almost trivial. The direct use of the syscall trampolines instead of libc wrappers for sendmsg(2) and recvmsg(2) is to avoid data loss on cancellation. Submitted by: Boris Astardzhiev <boris.astardzhiev@gmail.com> Discussed with: jilles (cancellation behaviour) MFC after: 1 month
* Use intptr_t note ptrdiff_t when storing flags in the bottom bits ofbrooks2016-01-292-6/+6
| | | | | | | pointers. Obtained from: CheriBSD (e3a69027cc5a384431156d61c90d4304387a9b9d) Sponsored by: DARPA, AFRL
* Replace nslexer.l->nslexer.c custom rule with a -D CFLAG.bdrewery2016-01-271-8/+3
| | | | | | | | | | | This avoids reproducing the lex logic which had dependencies set wrong and used an intermediate file for modifying the YY_BUF_SIZE. This has only been possible since flex 2.5.37 was imported in r250873, which uses #ifndef YY_BUF_SIZE. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* nslexer.c does not depend on nsparser.h.bdrewery2016-01-271-1/+1
| | | | | | | | | | nslexer.o depends on nsparser.h, which is already added by bsd.lib.mk and .depend. This reverts r237402. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
OpenPOWER on IntegriCloud