summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/Makefile.inc
AgeCommit message (Collapse)Author
2019-03-04Hook for jemallocchristos
2018-01-05add strfmon_l man page linkssnj
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.
2016-04-01Add malloc.conf.5 (link to jemalloc.3).msaitoh
2015-11-07Add the C11 function aligned_alloc to libc.nros
2015-05-01- new test for strtoichristos
- namespace protection for strto{i,u} - separate manpages for strto{i,u} from the ones for strto{u,}l From: Kamil Rytarowski
2015-02-17Introduce reallocarr(3) for easy (re)allocation of memory with overflowjoerg
checks. Compared to OpenBSD's reallocarray, makes it easier to avoid memory leaks on allocation failures and it doesn't depend on malloc(0) != NULL for correct error checking. Compared to plain realloc, it also avoids the problem of intermediate integer overflows. The trade-off is the use of void * to side step C type system with regard to generic pointer to pointer.
2015-02-05Revert addition to reallocarray to the malloc man page, but keepchristos
the examples. Add separate manual page to reallocarray explaining what are the problems with it.
2015-02-05Add and use reallocarray() to prevent a multiplication overflow in allocation.christos
Reported by Guido Vranken, thanks!
2015-01-18man page for strtonum.3christos
2015-01-16Add strtonum implemented as a wrapper of strtoi.christos
2015-01-16strtoi and strtou additionschristos
2014-12-10Add two more Makefile conditionals required for RUMPRUN=yespooka
* do not build _errno.c (different thread/tls handling) * do not build either phk- or jemalloc (different backing page allocation) Somehow I missed these in the previous commit, but now libc built with RUMPRUN=yes works also with rumprun-posix, so there's reasonably high confidence that I didn't miss anything anymore.
2014-07-20Our hdestroy implementation was non-conformant because it freed the key ofchristos
each entry. Add a new function hdestroy1 that allows the user to control what gets freed. Pointed out by Pedro Giffuni at FreeBSD.
2014-01-08add ptsname_rchristos
2013-12-02changed lua_Number to int64_tlneto
2013-04-26add {at_,}quick_exit(3) from FreeBSDchristos
2011-09-14add re-entrant versions of the hash functions based on the GNU api.christos
2011-04-13Collect also the division functions to single place, div(3).jruoho
2011-04-13Collect abs(3), labs(3), llabs(3), and imaxabs(3) to a single small page.jruoho
2010-11-14Improve and simplify implementation of *env(3) functions:tron
- Use RB tree to keep track of memory allocated via setenv(3) as suggested by Enami Tsugutomo in private e-mail. This simplifies the code a lot as we no longer need to keep the size of "environ" in sync with an array of allocated environment variables. It also makes it possible to free environment variables in unsetenv(3) if something has changed the order of the "environ" array. - Fix a bug in getenv(3) and getenv_r(3) which would return bogus results e.g. for " getenv("A=B") " if an environment variable "A" with value "B=C" exists. - Clean up the internal functions: - Don't expose the read/write lock for the environment to other parts of "libc". Provide locking functions instead. - Use "bool" to report success or failure. - Use "ssize_t" or "size_t" instead of "int" for indexes. - Provide internal functions with simpler interfaces e.g. don't combine return values and reference arguments. - Don't copy "environ" into an allocated block unless we really need to grow it. Code reviewed by Joerg Sonnenberger and Christos Zoulas, tested by Joerg Sonnenberger and me. These changes also fix problems in zsh 4.3.* and pam_ssh according to Joerg.
2010-05-03Split the implementation details of malloc(3) to a separate jemalloc(3)jruoho
manual page. This way malloc(3) can follow the standard terse format used elsewhere in the libc, while additional details can be added to jemalloc(3). Note HISTORY and AUTHORS in jemalloc(3), and add some reading material to SEE ALSO.
2009-07-31Add the 'abs', 'div' and 'erand48' sources to stdlib/Makefile.inc.dsl
Change the arch files only include the .S files. This adds imaxdiv() to some archs where it was missing.
2009-07-20Add a fast, platform independent hash function to libc.joerg
The algorithm used is the Jenkins hash. The name (mi_vector_hash) reflects the nature of the hash function. Add glue for libc ATF tests and include a test case to make sure that (mis)alignment and endianess are handled correctly. Bump libc minor to 169.
2008-10-26define and use LIBCDIR in terms of .CURDIR. fixes compat/lib/libc build.mrg
2008-08-20Unify the implementation of strto{l,ul,ll,ull,imax,umax,q,uq} into onejoerg
version for signed and one version for unsigned data types. Add a check for supported bases and set errno (userland) or panic (kernel, libsa) otherwise. Make strto{ll,ull,imax,umax} normal symbols and just keep the underscore versions as strong alias. Obtained from DragonFly, based on the wide char version from Citrus. Reviewed by christos@
2008-08-04Add C99 functions imaxabs and imaxdiv.matt
2007-11-28Sync phk malloc.c with the latest one from FreeBSD. This gives us thechristos
same api as jemalloc by: - adding posix_memalign() - moving calloc in the same file - renaming malloc_options -> _malloc_options
2007-11-19Enable posix_memalign().ad
2007-10-06Use jemalloc as the default allocator unless USE_JEMALLOC=no.ad
2006-03-22build erand48_ieee754.c on everything but vaxdrochner
2006-03-15Add strtof(3) and strtold(3); welcome libc 12.137.kleink
2006-01-25Drop in gdtoa as a replacement for dtoa, strtod() from stdlib/strtod.c.kleink
2006-01-20Kill _Exit; breaks build on cygwin and this implementation "is not exactlychristos
equivalent to calling _exit".
2005-09-25add getenv_r and ttyname_rchristos
2005-09-13compat core reorg.christos
2005-07-06Move insque/remque/lsearch/lfind from libcompat to libc,drochner
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc. Minimal update of the manpages. (more needed)
2005-04-03Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantagechristos
of the getpwent_r bump.
2004-08-05actually add _Exit.yamt
2004-05-27unix/98 pty functions and manual pages.christos
2003-04-07Observed in other places: move __unsetenv13.c near unsetenv.c, onlykleink
group name space wrappers separately.
2003-04-07compile unsetenv(3) into libc or you'll mess up your systemdrochner
2002-11-29add strsuftoll(3) and strsuftollx(3) - parse a string for a numberlukem
with an optional suffix, product (two numbers separated by `x'), and provide range checking
2001-04-28* Move definitions of exact-width integer types from <machine/types.h>kleink
to <sys/types.h> and <sys/stdint.h>. * Add a new C99 <stdint.h> header, which provides integer types of explicit width, related limits and integer constant macros. * Extend <inttypes.h> to provide <stdint.h> definitions and format macros for printf() and scanf(). * Add C99 strtoimax() and strtoumax() functions. * Use the latter within scanf(). * Add C99 %j, %t and %z printf()/scanf() conversions for intmax_t, pointer-type and size_t arguments.
2001-02-16add hcreate.3msaitoh
2001-02-14build new hsearch() codecgd
2001-01-08link sradixsort(3) -> radixsort(3)lukem
2000-12-21first import of citrus LC_CTYPE locale. singlebyte only at this moment.itojun
shot-term TODO: - enable multibyte locales. this includes loadable locale modules (#ifdef DLRUNE). - populate LC_CTYPE definition files. - other functions such as iconv() - make libc functions more friendly with multibyte. - multilingualize other LC_xx - torture tests XXX don't forget to "make depend" when you rebuild libc, multibyte.c is moved from lib/libc/stdlib to lib/libc/locale.
2000-04-02New getopt_long from Thomas Klausner and Dieter Baronchristos
2000-03-08No longer need internal names for strtoq() and strtouq().kleink