summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
AgeCommit message (Collapse)Author
2017-10-25Add malloc.conf to the NAME sectionabhinav
Remove Pp before Bd at few places
2017-10-07remove recallocarraychristos
2017-10-07add recallocarraychristos
2017-09-09Correct the documentatin of ptsname_r(3)kamil
This function returns "int" not "char *": errno on failure, 0 on success.
2017-08-16Typo fix.wiz
2017-08-16Add missing strfmon_l. Noticed by Bruno Haible. Add test case.joerg
2017-08-12PR lib/50316: Gracefully handle a zero number of members argument.ginsbach
Taken from FreeBSD (which fixed this same issue long ago). XXX: pullup-8 XXX: pullup-7 XXX: pullup-6
2017-07-14Drop TLS variant checks, emutls is enough for VAX and Sun2.joerg
2017-07-11Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. Thisjoerg
functions are used for destructors of thread_local objects. If a pending destructor exists, prevent unloading of shared objects. Introduce __dl_cxa_refcount interface for this purpose. When the last reference is gone and the object has been dlclose'd before, the unloading is finalized. Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists on providing __cxa_thread_atexit as direct wrapper without further patching.
2017-07-03Remove workaround for ancient HTML generation code.wiz
2017-05-19remove accidental __strong_alias additions, noticed by coypu.christos
2017-05-19use strerror_r_ss()christos
2017-05-19The BSD qsort() performs tail recursion elimination on the secondchristos
side of the array being partitioned to save on stack space. Greater savings can be gained by choosing recursion for the smaller side of the partition and eliminating recursion for the larger side. This also results in a small but measurable performance gain. (From OpenBSD)
2017-04-26Clean up the NAME section.abhinav
The entries in the NAME section of these man pages have man pages of their own, so it doesn't make sense to have their names here, instead they should be just described in the body (similar to what we do in math(3) man page). This also helps whatis(1) and apropos(1), as otherwise you would see multiple results with the same name in the output, while there is actually only one page with that name. Good example is: $ apropos -n 2 -M realloc realloc (3) general memory allocation operations realloc (3) general purpose memory allocation functions The first line is there because memory(3) man page had realloc in its NAME section. This commit will fix this issue. ok wiz@
2017-02-07PR/51958: Ngie Cooper: ESRCH error description in hcreate(3) contains typochristos
for action
2017-01-13use getpagesize(3).christos
2017-01-12Avoid sysconf: __sysconf -> sysctlgetmibinfo -> strtoimax -> locale, etc.christos
2017-01-12make this smaller.christos
2016-12-17Fix typoabhinav
2016-11-07Use the keywords `underflow' and `overflow' in ERANGE summary.riastradh
2016-11-07Fix phrasing about `out-of-band' and `sentinel value'.riastradh
Either an out-of-band channel, or an in-band sentinel value, could indicate an error, but an out-of-band sentinel value is a silly proposition. Noted by uwe@.
2016-11-05Update strtoul(3) example to reflect clarifications in strtol(3).riastradh
2016-11-04Bump date for previous.riastradh
2016-11-04Tidy up the second example too.riastradh
2016-11-04Simplify error condition case.riastradh
Add assertions to reflect its implications.
2016-11-04Distinguish invalid syntax from trailing garbage cases. Clarify.riastradh
2016-11-04Distinguish altogether invalid syntax from trailing garbage.riastradh
2016-11-04EXIT_FAILURE policeriastradh
2016-11-04Fix infinity detection with isinf(d), not d == HUGE_VAL.riastradh
Negative infinity counts as overflow too. Simplify.
2016-11-04Add example for strtod.riastradh
This illustrates all the cases you might be interested in and asserts theorems in those cases.
2016-11-04Fix description of ERANGE cases again.riastradh
Do use the technical terms `overflow' and `underflow', because strtod sets ERANGE precisely to indicate either of these two conditions, and they are the right keywords that one might be looking for. Note that strtod may set ERANGE even if it returns noninfinity and nonzero -- specifically, if the result is subnormal. This part was wrong before I `fixed' it and remained wrong after I `fixed' it earlier this year.
2016-06-01Fix manually applied patch. Mark up NULL with Dv.wiz
2016-06-01Document return value for realloc(3) when size is 0. From PR lib/47384pgoyette
2016-05-01Fix type name. From Abhinav.joerg
2016-04-12lib/50791: Instead of using sorting the arena chunks by address only,joerg
sort by size of the longest run and address as tie break. Avoids long linear searches for code heavy on medium sized allocations.
2016-04-06Revert prior, no idea why it was causing me problems, but it no longer does.roy
2016-04-05Stop calling reallocarr and just do the same bounds checking but withoutroy
messing around with copying pointers which was causing ssh to crash.
2016-04-01Add malloc.conf.5 (link to jemalloc.3).msaitoh
2016-03-17Bump date for previous.wiz
2016-03-17strtod yields ERANGE for below-subnormal magnitudes, not underflow.riastradh
For a floating-point computation, in the language of IEEE 754, `underflow' means the output was rounded and is too small to be represented *normally*. There are many nonzero floating-point numbers to which the exact output may have been rounded -- namely subnormals. The condition under which strtod returns ERANGE for small magnitudes is when the magnitude of the exact result is so small it is rounded to zero, not even to a subnormal. While here, use parallel language about large magnitudes instead of the (albeit correct) word `overflow', to avoid temptation to treat `underflow' as the opposite notion with zero instead of infinity.
2016-01-24vmparam.h is a kernel header.christos
2016-01-20Don't return NULL when we are freeing the root node; return a free'd pointerchristos
instead.
2016-01-20PR/50681: Markiyan Kushnir: Fix memory leak when we delete the root node.christos
It is questionable if we should return NULL in that case, but what is the parent of root? The new adjusted root?
2015-11-13revert 0b documentation.christos
2015-11-13Remove trailing whitespace.wiz
2015-11-12Now that our source tree has binary constants, recognize them.christos
2015-11-07Use Dv for NULL.wiz
2015-11-07Sort SEE ALSO.wiz
2015-11-07Add the C11 function aligned_alloc to libc.nros
2015-09-01ANSIfy getopt(3) - this is the REPLACE_GETOPT version from getopt_long(3)kamil
For the reference, this version still passes the current set of ATF tests for the getopt(3) function. This version is by default unused.