summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/Makefile.inc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make our mktemp(3) callback-driven and split into multiple files.millert2024-01-191-4/+4
| | | | | | Previously, calling any of the mktemp(3) family would pull in lstat(2), open(2) and mkdir(2). Now, only the necessary system calls will be reachable from the binary. OK deraadt@ guenther@
* Move mktemp.c to stdlib where it belongs.millert2024-01-191-4/+4
| | | | OK deraadt@
* Move __cxa_thread_atexit* to its own .c file to avoid pulling the codeguenther2017-12-161-2/+4
| | | | | | | (w/ _dlctl reference) into static executables. It's all Mark's code so put his preferred copyright on it. ok kettenis@
* move recallocarray to malloc.c andotto2017-03-241-2/+1
| | | | | | | - use internal meta-data to do more consistency checking (especially with option C) - use cheap free if possible ok deraadt@
* Introducing recallocarray(3), a blend of calloc(3) and reallocarray(3)otto2017-03-061-1/+2
| | | | | with the added feature that released memory is cleared. Much input from various developers. ok deraadt@ tom@
* Reduce qabs() and qdiv() to aliases of llabs() and lldiv().guenther2016-08-141-4/+4
| | | | | | Merge the manual pages and call them deprecated there. ok and manpage tweak jmc@, ok natano@
* Remove a vax remnant (that was really a no-op anyway).millert2016-05-021-3/+1
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-29/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* update for new symbols and codetedu2015-11-181-2/+2
|
* Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48()deraadt2014-12-081-4/+6
| | | | | | | | | | | | | | | | | to returning strong random by default, source from arc4random(3). Parameters to the seeding functions are ignored, and the subsystems remain in strong random mode. If you wish the standardized deterministic mode, call srand_deterministic(), srandom_determistic(), srand48_deterministic(), seed48_deterministic() or lcong48_deterministic() instead. The re-entrant functions rand_r(), erand48(), nrand48(), jrand48() are unaffected by this change and remain in deterministic mode (for now). Verified as a good roadmap forward by auditing 8800 pieces of software. Roughly 60 pieces of software will need adaptation to request the deterministic mode. Violates POSIX and C89, which violate best practice in this century. ok guenther tedu millert
* delete obsolete sunos cfree function. ok deraadt millert naddytedu2014-12-081-3/+3
|
* malloc(3) is in the "comp" install set, malloc.conf(5) in "man",schwarze2014-12-061-2/+2
| | | | | | breaking the hardlink between file system entries, confusing apropos(1). Split malloc.conf(5) out of malloc(3) as suggested by deraadt@. Feedback and OK jmc@, OK deraadt@ tedu@ jasper@.
* XPG requires insque() and remque() to work with linear lists and not justguenther2014-08-151-10/+5
| | | | | | | | | circular lists. Amazingly, they managed to extend the requirements to no longer match the behavior of the VAX instructions they were modeled after, so the trivial VAX ASM versions have to go. Nice job breaking it, X/Open! Based on a diff from enh (at) google.com ok miod@
* move reallocarray() to a seperate file so that -portable applicationsderaadt2014-05-081-6/+7
| | | | | can avoid reinventing the wheel ok guenther schwarze
* change mallocarray to reallocarray. useful in a few more situations.tedu2014-04-221-2/+2
| | | | | malloc can, as always, be emulated via realloc(NULL). ok deraadt
* correct man page sectionderaadt2014-04-211-2/+2
|
* Introducing: void *mallocarray(size_t nmemb, size_t size);deraadt2014-04-211-2/+2
| | | | | Like calloc(), except without the cleared-memory gaurantee ok beck guenther, discussed for more than a year...
* Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingmiod2014-03-181-5/+3
| | | | | | | this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
* Move _Exit() from the exit() manpage to the _exit() manpage, as it'sguenther2013-06-051-2/+1
| | | | | | just an alias of the latter. ok matthew@ tedu@
* Simple emulation of POSIX pty APIs posix_openpt(), ptsname(),millert2012-12-031-6/+7
| | | | | grantpt() and unlockpt() using /dev/ptm. Man pages from FreeBSD. OK kettenis@ deraadt@ beck@ ajacoutot@ naddy@
* remove tahoe-specific makefile machinery, no such hardware is known to bemiod2012-09-151-5/+1
| | | | | in working condition anymore (assuming there would be interest in running on it).
* remove lint leftovers; ok guenther@okan2012-09-041-5/+1
|
* add posix_madvise, posix_memalign, strndup, and strnlen. mostly fromtedu2010-05-181-4/+4
| | | | | brad and millert, with hints from guenther, jmc, and otto I think. ok previous.
* Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentmiod2010-02-031-9/+9
| | | | | | | files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
* Make putenv(), setenv() and unsetenv() standards compliant. Themillert2009-06-031-2/+2
| | | | | | standard explicitly disallows passing setenv a name with a '=' in it but historic BSD behavior is to allow this but to ignore the '=' and anything after it.
* document strtold. ok millert@martynas2008-09-131-2/+2
|
* - replace dtoa w/ David's gdtoa, version 2008-03-15martynas2008-09-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
* Smarter implementation of calloc(3), which uses the fact that mmap(2)otto2008-08-221-2/+2
| | | | | returns zero filled pages; remember to replace this function as well if you provide your own malloc implementation; ok djm@ deraadt@
* Add strtof() to libc, some ports seem to like it. Currently it's a simplelandry2008-06-131-3/+4
| | | | | | | call to strtod() with bounding check. Discussed with pyr@ and otto@ ok otto@ deraadt@
* remove recalloc(3); it is buggy and impossible to repair without bigotto2008-05-191-2/+2
| | | | costs; ok jmc@ for the man page bits; ok millert@ deraadt@
* add recaloc(3)millert2007-09-031-2/+2
|
* Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()millert2006-01-131-10/+11
|
* major abi changes:espie2005-05-111-1/+1
| | | | | | | | | | | | | | | | | | * introduce the mbstate_t typedef. impacts gnu libiconv, which has already been taken care of. * Prepare for mb stuff to really exist, replace macro MB_CUR_MAX with an external variable __mb_cur_max (impacts libX11 and various ports). * use mbstate in all the mb <-> wchar functions with state. * add a stub iswctype function allowing some ports to compile. bash and gdiff are missing wcscoll, and need to be told there's no i18n until this is fixed. Discussed and matthieu, otto, millert, kettenis, deraadt. Major libc bump
* Working hcreate(3) et al from NetBSD (cgd) via ray at cyth dot net.millert2004-06-241-5/+6
| | | | Now passes the regress tests.
* Add _Exit(3) as per C99. Discussed with espie@ some time ago.millert2004-05-031-1/+2
|
* strtonum, a nicer version of strtoll, by millert and myself.tedu2004-05-031-2/+3
| | | | ok deraadt@ millert@
* kill memory.3;jmc2004-02-101-1/+1
| | | | suggested by deraadt@
* Compile llabs.cmillert2003-07-211-1/+2
|
* Use the getopt() in getopt_long.c which supports some GNU extensions.millert2003-06-021-1/+1
| | | | getopt.c is no longer compiled and will eventually be removed.
* assembler versions of insque and remque for m68k, also from 4.4BSDmillert2003-05-091-1/+1
|
* insque and remque are VAX instructions, no need for C functions; From 4.4BSDmillert2003-05-091-2/+8
|
* Oops, forgot to add remque.c heremillert2003-05-091-1/+1
|
* move insque(3) and remque(3) from libcompat -> libc; they are now POSIXmillert2003-05-081-8/+9
|
* move lsearch(3) and insque(3) from libcompat -> libc; they are now POSIXmillert2003-05-081-7/+8
|
* fix typomillert2002-12-031-1/+1
|
* GNU-like getopt_long() from NetBSD with changes by me to supportmillert2002-12-031-8/+9
| | | | | | | | getopt_long_only(). At some point this should replace the BSD getopt(3) but we are not there yet. While I am here add protection from the multiple getopt() definitions due to conflicting standards.
* Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.millert2002-12-021-7/+9
|
* Take advantage of the libc minor bump and add atoll(3)millert2002-11-211-7/+7
|
* Replace strtou?q() with the more standard strtou?ll(), using weakmillert2002-06-291-4/+4
| | | | aliases to fake up strtou?q(). espie@ OK.
* MLINK srandomdevmillert2000-04-041-1/+2
|