summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* strptime: %s format fix.pfg2014-10-021-1/+4
| | | | | | | | | | Almost never needed in real life because %s is tends to be only one format spec. 1) Return code of gmtime_r() is checked. 2) All flags are set. Submitted by: ache MFC after: 3 weeks
* strptime: fix bug introduced in r272273.pfg2014-10-011-1/+2
| | | | | | Reported by: portmgr (antoine) Fix by: Andrey Chernov, David Carlier PR: 137307 (follow up)
* Clean up detection of hard-float ABIs. As with big-endian in r272368 weandrew2014-10-012-2/+2
| | | | can check against arm*hf*.
* Ensure that every ENTRY(foo) has a matching END(foo).bapt2014-10-0121-0/+27
| | | | | | | It allows to build with newer binutils Differential Revision: https://reviews.freebsd.org/D877 Reviewed by: jhibbits
* Remove MK_ARM_EABI, the armeb issues have been fixed. The code to supportandrew2014-10-014-26/+1
| | | | | | | | | | | | the oabi is still in the tree, but it is expected this will be removed as developers work on surrounding code. With this commit the ARM EABI is the only supported supported ABI by FreeBSD on ARMa 32-bit processors. X-MFC after: never Relnotes: yes Differential Revision: https://reviews.freebsd.org/D876
* Document [EPERM] for UNIX sockets.bdrewery2014-09-301-1/+3
| | | | MFC after: 2 weeks
* Add strptime(3) support for %U and %W (take 2)pfg2014-09-281-7/+119
| | | | | | | | | | | | | | | | | | | | Add support for the missing POSIX-2001 %U and %W features: the existing FreeBSD strptime code recognizes both directives and validates that the week number lies in the permitted range, but then simply discards the value. Initial support for the feature was written by Paul Green. David Carlier added the initial handling of tm_wday/tm_yday. Major credit goes to Andrey Chernov for detecting much of the brokenness, and rewriting/cleaning most of the code, making it much more robust. Tested independently with the strptime test from the GNU C library. PR: 137307 MFC after: 1 month Relnotes: yes
* Revert r272122pfg2014-09-251-126/+5
| | | | | | | | | The patch still needs to be more robust and it broke the build on MIPS so revert it for now while all the issues are fixed. Reported by: ache, davide PR: 137307
* Add strptime(3) support for %U and %Wpfg2014-09-251-5/+126
| | | | | | | | | | | | | | Add support for the missing POSIX-2001 %U and %W features: the existing FreeBSD strptime code recognizes both directives and validates that the week number lies in the permitted range, but then simply discards the value. Initial support for the feature was written by Paul Green with important fixes by Andrey Chernov. Additional support for handling tm_wday/tm_yday was written by David Carlier. PR: 137307 MFC after: 1 month
* Fix incremental builds involving non-root users with read-only source files.will2014-09-181-2/+2
| | | | | | | | | | | Makefiles should not assume that source files can be overwritten. This is the common case for Perforce source trees. This is a followup commit to r211243 in the same vein. MFC after: 1 month Sponsored by: Spectra Logic MFSpectraBSD: r1036319 on 2014/01/29, r1046711 on 2014/03/06
* Explicitly set MAP_PRIVATE to avoid [EINVAL] after r271635.bdrewery2014-09-171-2/+2
| | | | | X-MFC-With: r271635 Reviewed by: jhb
* - Remove mention of MAP_INHERIT. It hasn't been implemented for thirteenjhb2014-09-171-14/+1
| | | | | | | | years. - Remove mention of unimplemented MAP_SWAP. There are no future plans to implement it. Submitted by: alc (2)
* Bump .Dd for the content change done to access(2) in r271655ngie2014-09-161-1/+1
| | | | | PR: 181155 Sponsored by: EMC / Isilon Storage Division
* Validate the mode argument in access, eaccess, and faccessat for optionalngie2014-09-161-1/+9
| | | | | | | | | | | | | | | POSIX compliance and to improve compatibility with Linux and NetBSD The issue was identified with lib/libc/sys/t_access:access_inval from NetBSD Update the manpage accordingly PR: 181155 Reviewed by: jilles (code), jmmv (code), wblock (manpage), wollman (code) MFC after: 4 weeks Phabric: D678 (code), D786 (manpage) Sponsored by: EMC / Isilon Storage Division
* document mqueuefs is required for mq_open...jmg2014-09-151-2/+8
|
* Add stricter checking of some mmap() arguments:jhb2014-09-151-1/+24
| | | | | | | | | | | | - Fail with EINVAL if an invalid protection mask is passed to mmap(). - Fail with EINVAL if an unknown flag is passed to mmap(). - Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to mmap(). - Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous mappings. Reviewed by: alc, kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D698
* Minor mdoc nit.joel2014-09-091-1/+0
|
* Add the fp{get,set}{mask,round} functions to the public symbols in the map.andrew2014-09-052-0/+14
| | | | | These are only exported for armv6hf as the soft-float ABIs have these in the softfloat Symbol.map file.
* libc/locale: Remove a wrong comma.pfg2014-09-041-1/+1
| | | | | | | This only had some effect when debugging. Obtained from: DragonflyBSD MFC after: 3 days
* Always seek back to the beginning of a regular directory, even if thejhb2014-09-031-1/+1
| | | | | | | | | | | | previous seek location was 0. Without this, readdir() would see dd_loc of zero and call getdirentries() which would start reading entries at the current seek location of the directory ignoring the first batch of entries. Also, rewinddir() should always seek so that it reads the directory from the beginning to get updated entries. PR: 192935 Reported by: iron@mail.ua MFC after: 3 days
* Add bsearch_b to the libc map and the stdlib header.pfg2014-09-011-0/+1
| | | | | | | | | | | | bsearch_b is the Apple blocks enabled version of bsearch(3). This was added to libc in Revision 264042 but the commit missed the declaration required to make use of it. While here move some other block-related functions to the BSD_VISIBLE block as these are non-standard. Phabric: D638 Reviewed by: theraven, wollman
OpenPOWER on IntegriCloud