summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Bump Dd for r275846bdrewery2014-12-171-1/+1
| | | | MFC after: 3 weeks
* Add some additional clarification and fix a few gammer nits.mckusick2014-12-171-58/+66
| | | | | Reviewed by: kib MFC after: 3 weeks
* Markup fixes for kqueue(2), no content changes.kib2014-12-151-61/+87
| | | | | | Reviewed by: brueffer (previous version) Sponsored by: The FreeBSD Foundation MFC after: 3 days
* Fix incorrect type of "invalids" argument in __iconv() prototype.kuriyama2014-12-151-1/+1
|
* Add a facility for non-init process to declare itself the reaper ofkib2014-12-151-3/+212
| | | | | | | | | | | the orphaned descendants. Base of the API is modelled after the same feature from the DragonFlyBSD. Requested by: bapt Reviewed by: jilles (previous version) Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 3 weeks
* Fix quick_exit(3) manual page to match reality - the status was missing.trasz2014-12-131-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix a typo reported by Lennart Grahl.tuexen2014-12-101-1/+1
| | | | MFC after: 3 days
* In r268924 __fflush was modified so that when write(2) was not successful,delphij2014-12-101-4/+6
| | | | | | | | | | | | _p and _w are adjusted to account for the partial write (if any). However, _p and _w should not be unconditionally adjusted and should only be changed when we actually wrote some bytes, or the accumulated accounting error will eventually result in a heap buffer overflow. Reported by: adrian and alfred (Norse Corporation) Security: FreeBSD-SA-14:27.stdio Security: CVE-2014-8611
* Switch to the ARM unified assembly language as the clang integrated as onlyandrew2014-11-297-123/+138
| | | | | | | supports it. Binutils supports it when the ".syntax unified" directive is set. Sponsored by: ABT Systems Ltd
* ANSIfy b64_ptonemaste2014-11-271-4/+1
|
* Reinstitate send() after syslogd restarts.delphij2014-11-251-9/+28
| | | | | | | | | | | | | In r228193 the test of CONNPRIV have been moved to before the _usleep and send in vsyslog(). When syslogd restarts, this would prevent the message being logged after the disconnect/connect dance for scenario #1. PR: 194751 Submitted by: Peter Creath <pjcreath+freebsd gmail com> Reviewed By: glebius MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D1227
* Fix b64_pton output buffer overrun test for exact-sized bufferemaste2014-11-251-7/+15
| | | | | | | | | | | | b64_pton would sometimes erroneously fail to decode a base64 string into a precisely sized buffer. The overflow check was a little too greedy. Reported by: Ted Unangst on freebsd-hackers@ Reviewed by: loos, trasz Obtained from: OpenBSD MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1218
* Fix ifa_data description.pluknet2014-11-251-12/+10
| | | | | | | PR: 176583 Discussed with: glebius MFC after: 1 week Sponsored by: Nginx, Inc.
* Convert libraries to use LIBADDbapt2014-11-251-4/+2
| | | | While here reduce a bit overlinking
* The fallback flag in nsdispatch prevents the fallback implementation ofdes2014-11-251-9/+16
| | | | | | | | | | | | | | getgroupmembership() from invoking the correct backend in the compat case. Replace it with a nesting depth counter so it only blocks one level (the first is the group -> group_compat translation, the second is the actual backend). This is one of two bugs that break getgrouplist() in the compat case, the second being that the backend's own getgroupmembership() method is ignored. Unfortunately, that is not easily fixable without a redesign of our nss implementation (which is also needed to implement the +@group syntax in /etc/passwd). PR: 190055 MFC after: 1 week
* Revert r274772: it is not valid on MIPSemaste2014-11-256-10/+10
| | | | Reported by: sbruno
* For now, disable using -fsanitize=bounds for the libc ssp tests, whendim2014-11-241-0/+3
| | | | | | using clang 3.5.0, until the runtime support (via compiler-rt) is added. Otherwise, this would lead to link errors about missing support libraries.
* Ta is only allowed with Bl -column not in Bl -itembapt2014-11-231-1/+1
|
* Misc mdoc fixes:joel2014-11-231-1/+0
| | | | | | | | - Remove superfluous paragraph macros. - Remove/fix empty or incorrect macros. - Sort sections into conventional order. - Terminate quoted strings properly. - Remove EOL whitespace.
* Add FPU support for MIPS setjmp(3)/longjmp(3).brooks2014-11-212-4/+153
| | | | | | | | | | | | | This change saves/restores the callee-saved MIPS floating point registers as documented by the o32/n32/n64 spec ("MIPSpro N32 ABI Handbook", Table 2-1) for the _setjmp(3), _longjmp(3), setjmp(3) and longjmp(3) C library functions. This is only included when the C library is built with hardware floating point support (or when "SOFTFLOAT" is not defined). Submitted by: sson MFC after: 1 month Sponsored by: DARPA, AFRL
* Use canonical __PIC__ flagemaste2014-11-216-10/+10
| | | | | | | | It is automatically set when -fPIC is passed to the compiler. Reviewed by: dim, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1179
* Remove acl_size.c; apparently it was never used.trasz2014-11-191-43/+0
| | | | | | | PR: 194398 Submitted by: ngie@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase andngie2014-11-162-0/+73
| | | | | | Rename as lib/libc/stdio/fpclassify2_test Sponsored by: EMC / Isilon Storage Division
* Convert tools/regression/lib/libc/stdio/test-fmemopen into an ATF testcase andngie2014-11-162-0/+302
| | | | | | rename as lib/libc/stdio/fmemopen2_test Sponsored by: EMC / Isilon Storage Division
* Convert tools/regression/lib/libc/gen/test-arc4random into an ATF testcase andngie2014-11-162-0/+94
| | | | | | rename as lib/libc/gen/arc4random_test Sponsored by: EMC / Isilon Storage Division
* Add the ppoll() system call.dchagin2014-11-133-2/+70
| | | | | | | | Export kern_poll() needed by an upcoming Linuxulator change. Differential Revision: https://reviews.freebsd.org/D1133 Reviewed by: kib, wblock MFC after: 1 month
* Renove faith(4) and faithd(8) from base. It looks like industrymelifaro2014-11-092-53/+0
| | | | | | | | | have chosen different (and more traditional) stateless/statuful NAT64 as translation mechanism. Last non-trivial commits to both faith(4) and faithd(8) happened more than 12 years ago, so I assume it is time to drop RFC3142 in FreeBSD. No objections from: net@
* Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds ↵ngie2014-11-0429-0/+769
| | | | | | | | | | | | | | | | | | approximately 500 new testcases Various TODOs have been sprinkled around the Makefiles for items that even need to be ported (missing features), testcases have issues with building/linking, or issues at runtime. A variant of this code has been tested extensively on amd64 and i386 10-STABLE/11-CURRENT for several months without issue. It builds on other architectures, but the code will remain off until I have prove it works on virtual hardware or real hardware on other architectures In collaboration with: pho, Casey Peel <casey.peel@isilon.com> Sponsored by: EMC / Isilon Storage Division
* <sys/param.h> is a superset of <sys/types.h> and must always comedes2014-11-011-2/+1
| | | | | | | first. Coincidentally, today is the 11th anniversary of this man page's (and this bug's) first appearance in FreeBSD. MFC after: 3 days
* Update acl(3) to expand on NFSv4 ACL support.trasz2014-10-301-5/+9
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Make it clear that ACL flags are NFSv4-only.trasz2014-10-307-14/+14
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix prototypes.kevlo2014-10-281-3/+3
|
* getgrouplist(3) was reimplemented in terms of getgrent_r(3) in r174547, somarkj2014-10-272-23/+2
| | | | | | this bug is no longer valid. MFC after: 3 days
* Use the __DECONST macro rather than hand rolling the same thing.brooks2014-10-241-5/+1
| | | | Sponsored by: DARPA, AFRL
* Remove an unused variable that would be better spelled __func__.brooks2014-10-241-1/+0
| | | | Sponsored by: DARPA, AFRL
* Eliminate conf_lock and instead rely on the NSS write lock to protectmarkj2014-10-241-8/+5
| | | | | | | | | | | | | | | NSS configuration state. As a side effect, this fixes a race condition which can occur if multiple threads call nsdispatch(3) concurrently before nsswitch.conf has been parsed. Previously, the thread holding conf_lock could cause other threads to return from nss_configure() before nsswitch.conf had been parsed, forcing them to fall back to the default sources for their NSS methods. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D994 MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
* The current POSIX semaphore implementation stores the _has_waiters flagjhb2014-10-241-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | in a separate word from the _count. This does not permit both items to be updated atomically in a portable manner. As a result, sem_post() must always perform a system call to safely clear _has_waiters. This change removes the _has_waiters field and instead uses the high bit of _count as the _has_waiters flag. A new umtx object type (_usem2) and two new umtx operations are added (SEM_WAIT2 and SEM_WAKE2) to implement these semantics. The older operations are still supported under the COMPAT_FREEBSD9/10 options. The POSIX semaphore API in libc has been updated to use the new implementation. Note that the new implementation is not compatible with the previous implementation. However, this only affects static binaries (which cannot be helped by symbol versioning). Binaries using a dynamic libc will continue to work fine. SEM_MAGIC has been bumped so that mismatched binaries will error rather than corrupting a shared semaphore. In addition, a padding field has been added to sem_t so that it remains the same size. Differential Revision: https://reviews.freebsd.org/D961 Reported by: adrian Reviewed by: kib, jilles (earlier version) Sponsored by: Norse
* Don't reference sem(4) from the POSIX semaphore pages. POSIX semaphoresjhb2014-10-247-14/+7
| | | | were reimplemented using umtx in FreeBSD 9 and no longer use sem(4).
* Remove duplicated code.delphij2014-10-162-22/+1
| | | | Suggested by: jmg
* Slightly improve grammar in EAGAIN description.gavin2014-10-151-3/+3
| | | | | | PR: 176806 Submitted by: Jeremy Chadwick MFC after: 3 days
* Add support for the __aeabi_c*cmp* functions. These are similar to theandrew2014-10-148-1/+337
| | | | | | | | | existing functions with the exception they use the condition flags to store the result. Differential Revision: https://reviews.freebsd.org/D872 Silence from: current@ and numerics@ MFC after: 1 week
* accept(2) may and can return EAGAIN, document it.delphij2014-10-101-2/+2
| | | | MFC after: 1 week
* Update dl_iterate_phdr(3) to follow r272842emaste2014-10-091-2/+2
| | | | | Relnotes: yes Sponsored by: The FreeBSD Foundation
* 1) Fix the case we have less arguments for format string than we expected.ache2014-10-071-4/+3
| | | | | | | 2) Return error on unsupported format specs. (both according to POSIX) PR: 93197
* Back out timegm error check from r272562.ache2014-10-071-2/+0
| | | | | | | POSIX treats negative time_t as undefined (i.e. may be valid too, depends on system's policy we don't have) and we don't set EOVERFLOW in mktime/timegm as POSIX requires to surely distinguish -1 return as valid negative time from -1 as error return.
* Add MLINK for explicit_bzero(3) and bump .Dd date.delphij2014-10-072-1/+2
| | | | MFC after: 2 weeks
* Add explicit_bzero(3) and its kernel counterpart.delphij2014-10-074-2/+45
| | | | | Obtained from: OpenBSD MFC after: 2 weeks
* 1) For %Z format, understand "UTC" name too.ache2014-10-051-1/+5
| | | | | 2) Return NULL if timegm() fails, because it means we can convert what we have in GMT to local time needed.
* Minor doc format fix.pfg2014-10-041-1/+2
| | | | Submitted by: Yonghyeon PYUN
* strptime(3): Update manpage for %U and %W.pfg2014-10-021-10/+6
| | | | | | | %U and %W were implemented as part of r272273 so take them out of the BUGS section and mention them in the SYNOPSIS. MFC after: 1 month
OpenPOWER on IntegriCloud