summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/Makefile.inc
Commit message (Collapse)AuthorAgeFilesLines
* Significantly reduce the memory leak as noted in BUGS section forscf2007-07-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith)
* Add malloc_usable_size(3).jasone2006-03-281-1/+1
| | | | Discussed with: arch@
* Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3)andre2006-03-141-3/+4
| | | | | | | | providing proper error checking and other improvements. Obtained from: OpenBSD Requested by: flz (to port Open[BGP|OSPF]D) MFC after: 3 days
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-131-0/+2
|
* In preparation for a new malloc implementation:jasone2006-01-121-2/+3
| | | | | | | | | | | | | * Add posix_memalign(). * Move calloc() from calloc.c to malloc.c. Add a calloc() implementation in rtld-elf in order to make the loader happy (even though calloc() isn't used in rtld-elf). * Add _malloc_prefork() and _malloc_postfork(), and use them instead of directly manipulating __malloc_lock. Approved by: phk, markm (mentor)
* Add a64l(), l64a(), and l64a_r() XSI extentions. These functions converttrhodes2005-12-241-5/+6
| | | | | | | | between a 32-bit integer and a radix-64 ASCII string. The l64a_r() function is a NetBSD addition. PR: 51209 (based on submission, but very different) Reviewed by: bde, ru
* Link radixsort(3) to sradixsort(3), make the latter appear inru2004-05-121-0/+1
| | | | the whatis(1) output.
* Add getopt_long_only() from OpenBSD and other OpenBSD cleanupsache2004-02-241-0/+1
| | | | | PR: 63173 Submitted by: Marius Strobl <marius@alchemy.franken.de>
* Don peril sensitive (ie: bikeshed sensitive) sunglasses and quietlypeter2003-10-281-1/+1
| | | | | | | | | | | send strhash(3) off to sleep with the fishes. Nothing in our tree uses it. It has no documentation. It is nonstandard and in spite of the filename strhash.c and strhash.h, it lives in application namespace by providing compulsory global symbols hash_create()/hash_destroy()/hash_search()/ hash_traverse()/hash_purge()/hash_stats() regardless of whether you #include <strhash.h> or not. If it turns out that there is a huge application for this after all, I can repocopy it somewhere safer and we can revive it elsewhere. But please, not in libc!
* MFp4: Link strtof.3 and strtold.3 to strtod.3.tjr2003-04-051-0/+1
|
* Replace our ancient dtoa/strtod implementation with the gdtoadas2003-03-121-1/+1
| | | | | | | | | | | | | | | | | | package, a more recent, generalized set of routines. Among the changes: - Declare strtof() and strtold() in stdlib.h. - Add glue to libc to support these routines for all kinds of ``long double''. - Update printf() to reflect the fact that dtoa works slightly differently now. As soon as I see that nothing has blown up, I will kill src/lib/libc/stdlib/strtod.c. Soon printf() will be able to use the new routines to output long doubles without loss of precision, but numerous bugs in the existing code must be addressed first. Reviewed by: bde (briefly), mike (mentor), obrien
* Add an MLINK malloc.conf(5) -> malloc(3).mike2003-01-241-1/+2
|
* Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akinjmallett2003-01-021-7/+8
| | | | | | | | to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes to the user being granted the pty. Submitted by: Ryan Younce <ryany@pobox.com> Reviewed by: security-officer@, standards@, mike@
* libc_r wasn't so tied to libc for 22 months.ru2002-11-181-5/+3
|
* - Remove the lsearch() and lfind() functions and their manpage fromrobert2002-10-161-2/+3
| | | | | | | | | the compatibility library libcompat. - Add new implementations of lsearch() and lfind() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and add them to the makefile. - Add function prototypes for lsearch() and lfind() to the search.h header.
* - Remove the old insque() and remque() functions and their manualrobert2002-10-161-5/+6
| | | | | | | | | page from the compatibility library. - Add new implementations of insque() and remque() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and connect them to the build. - Add the prototypes of insque() and remque() to the search.h header.
* Add getopt_long(3).eric2002-09-291-2/+2
| | | | | Obtained from: NetBSD Sponsored by: Apple
* Implement C99's _Exit() interface.wollman2002-09-101-3/+4
| | | | | | Implement a version of qsort that provides a thunk to the comparison function. Update manual pages.
* Use the merged strtod.c everywhere. This has been tested on alpha andpeter2001-12-021-10/+1
| | | | ia64.
* Implement strtoimax() and strtoumax()fenner2001-11-281-8/+8
|
* Add atoll(3) to conform POSIX and C99ache2001-11-281-1/+3
|
* o Implement imaxabs(), imaxdiv(), llabs(), lldiv().mike2001-11-151-4/+6
| | | | | | | o Update abs(3), div(3), labs(3), ldiv(3) to reflect standards conformance and add additional references. Reviewed by: bde, wollman
* reconnect strfmon.c to build listphantom2001-09-071-1/+1
|
* Add strfmon.3 to the fray.asmodai2001-09-071-1/+1
| | | | | | | | This is a first cut, but enough to help people interested in using it further than before. More text coming to illustrate use and provide more details. Based on standards' text.
* strfmon(3) is not ready to go live.obrien2001-09-061-1/+1
|
* Add strfmon(3) implementation. It still contains few XXX's because I lostphantom2001-09-051-3/+3
| | | | | | | | | my last version of this work due to HDD crash, but this version cleanly passed all POSIX and SuSv2 tests. I am working on testing scripts which should test this implementation against all locales and surely more fixes will come soon. Reviewed by: ache, silence at -audit & -developers
* Only pull in the MD files if they exist. This allows for progressivemp2001-07-311-0/+2
| | | | implementation and compilation when bringing up a new architecture.
* Add new, from scratch implementation of hsearch() et al that actually works.ru2001-05-151-3/+4
| | | | | Obtained from: NetBSD MFC after: 1 month
* Add sranddev.3 to MLINKSache2001-04-231-1/+1
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Make tdelete(3), tfind(3), and twalk(3) links to tsearch(3).dd2001-03-151-0/+1
| | | | Approved by: nik
* Impliment the ISO-C99 strto[u]ll()obrien2001-02-271-4/+5
| | | | and rewrite strto[u]q() in terms of it.
* Back out previous commit (MLINK malloc.conf.5 -> malloc.3).eivind2000-10-291-1/+0
| | | | | | This did not work correctly with whatis(1). Issue brought up by: mpp
* Add link malloc.conf.5 -> malloc.3eivind2000-10-291-0/+1
|
* bring in binary search tree code.alfred2000-07-011-2/+2
| | | | Obtained from: NetBSD
* Fixed missing installation of a link to rand_r.3.bde1999-12-231-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix style problems noted by Bruce:imp1998-09-161-3/+3
| | | | | | o No copyright on reallocf. o Order makefile list correctly. o indent reallocf properly.
* Add reallocf to the library. This function is simliar to realloc, butimp1998-09-141-3/+3
| | | | | | | | | | | | | when it returns NULL to indicate failure, it will also free the memory that was passed to it, if that was non-null. This does not change the semantics of realloc. A second commit will be done to commit the conversion of those places in the code that can safely use this to avoid memory leaks when confronted with low memory situations. Beaten-to-death-but-finally-approved-in: -current
* This is a hack to workaround source that is coded to use long variablesjb1998-05-081-2/+11
| | | | | | | | | | but also assumes that they are 32-bits. This is one place where I don't think it is appropriate to change 'long' to 'int'. I don't see why the code couldn't be fixed so that using natural long variables does the right thing. It's spaggetti code so it'll take some effort. Obviously NetBSD thought so too because they change 'long' to 'int32_t' etc and left it at that. As a temporary measure FreeBSD/Alpha can use the NetBSD code and put this on the list of things to fix.
* Change MACHINE references to MACHINE_ARCH.jb1998-02-201-3/+3
|
* Sorted lists.bde1997-10-211-6/+6
|
* Handle machine-dependent (stdlib) sources more automatically.bde1997-10-161-2/+2
| | | | | | | This fixes bugs in the manual handling. abs.[cS] was handled too specially and the wrong (.c) variant for each of div.[cS], labs.[cS] and ldiv.[cS] was added to SRCS. This caused the .c variant to be used if `depend' was made and the .S version to be used otherwise.
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-151-10/+5
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* malloc_sysv used before initialized, reported in PR4002 byphk1997-07-011-2/+2
| | | | | | | | | | | | | | | Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Various cleanup from Keith Bostic Reinstate calloc() as a separate funtion, in its own source/object file. leave the manpage integrated with malloc.3 and friends. Too many things were broken in this respect. PR: 4002 Reviewed by: phk Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Submitted by: Keith Bostic <bostic@bostic.com>
* Integrate calloc with the rest of the gang.phk1997-06-221-4/+4
| | | | | | | | | | | Various portability and stylistic cleanups. Kill MALLOC_STATS & the 'D' option. Fix the 'V' option. Major overhaul of the man-page. You milage should not vary. Reviewed by: Keith Bostic <bostic@bostic.com> Submitted by: Keith Bostic <bostic@bostic.com>
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-031-3/+7
| | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* Add srandomdev.3 linkache1997-03-231-1/+2
|
* Back out a dubious Lite2 change to "optimise" getcwd() to look at $PWDpeter1997-03-131-2/+2
| | | | | | | | because it's potentially dangerous (think: symlink races). Move realpath() back to it's original location, and remove getcwd_physical() by renaming it back to getcwd() and zapping the original getcwd wrapper. Noticed by: bde
* Merge Lite2 changespeter1997-03-111-3/+3
|
OpenPOWER on IntegriCloud