summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a minor typo. It only affects the sparc version.jdp1997-07-261-2/+2
|
* realpath() should break on looped symlinks.phk1997-07-161-0/+5
| | | | | | PR: 3911 Reviewed by: phk Submitted by: Shigio Yamaguchi <shigio@wafu.netgate.net>
* kill the undeadpeter1997-07-132-180/+0
|
* This commit was generated by cvs2svn to compensate for changes in r27180,bde1997-07-032-0/+180
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import Lite2's src/lib, except for non-i386 machine-dependent directories,bde1997-07-032-0/+180
| | | | | | | | | | libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3 unimportant ones have already left the vendor branch.
* | Have another go at the malloc-sysv initialization.phk1997-07-021-12/+11
| | | | | | | | | | PR: 4002 Pointed out by: bde
* | malloc_sysv used before initialized, reported in PR4002 byphk1997-07-014-40/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Show the real revision date and not the date that thissteve1997-06-231-1/+1
| | | | | | | | manpage is being viewed.
* | Integrate calloc with the rest of the gang.phk1997-06-225-478/+390
| | | | | | | | | | | | | | | | | | | | | | 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>
* | srandomdev: use stack junk value in the fallback code tooache1997-06-151-2/+3
| |
* | Instead of copying fallback code over and over in each program,ache1997-06-142-15/+17
| | | | | | | | | | | | implement (better) falback code inside srandomdev() itself. Change return type from int to void (binary compatibility surprisely achieved). Userland code will be changed soon.
* | Add yet an option, this time on how to deal with malloc(0) and realloc(ptr.0)phk1997-06-122-8/+27
| | | | | | | | Prompted by: X11 & XFree86
* | Fix mutex initialization.jb1997-06-041-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Malloc cannot use pthread_mutex_init() to initialize a mutex because the mutex initialization process does a malloc! libc_r internals skip the malloc and assign an initializer to a static structure and point the opaque type (pthread_mutex_t in this case) to that structure. This is done on the assumption that the mutex will never be destroyed. This style of initialization is only valid inside libc_r because the structure that is assigned is opaque to the user. This fix allows a simple program to get to main() again. 8-)
* | Malloc flag X makes malloc behave like the canonical xmalloc() wrapper.phk1997-05-302-19/+69
| | | | | | | | | | | | | | Untested support for Solaris from John-Mark Gurney Reviewed by: phk Submitted by: (partially) John-Mark Gurney <gurney_j@resnet.uoregon.edu>
* | 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.
* | Typo.max1997-04-251-1/+1
| | | | | | | | | | PR: #3178 Submitted by: Josh Gilliam <soil@quick.net>
* | Fixed #include and/or prototype bugs in synopsis.bde1997-04-191-2/+2
| |
* | Fixed missing consts in synopsis.bde1997-04-131-2/+2
| |
* | Remove orand* code as promised for the next releaseache1997-03-292-20/+4
| |
* | Add srandomdev.3 linkache1997-03-231-1/+2
| |
* | Fix urandom reference in the commentache1997-03-231-1/+1
| |
* | Add srandomdev() descriptionache1997-03-231-1/+24
| |
* | Add srandomdev() function (use "/dev/urandom" now)ache1997-03-231-0/+40
| | | | | | | | Submitted by: wollman & me (add type casts and remove unneded loop)
* | Remove an extra comma.mpp1997-03-221-2/+2
| |
* | Use the .Tn macro for generic FreeBSD references. Other minor cleanup.mpp1997-03-211-3/+3
| |
* | Check for overflow in size argument.phk1997-03-181-2/+4
| | | | | | | | | | Tested by: Joel Maslak <j@pobox.com> Closes: PR kern/2964
* | Fix arg types to match Lite2ache1997-03-171-2/+2
| |
* | Part 2 of a failed commit (cvs broke). Original message:peter1997-03-132-0/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Back out a dubious Lite2 change to "optimise" getcwd() to look at $PWD 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 The following commits already happened but the log message got lost: Modified Files: gen/Makefile.inc gen/getcwd.c stdlib/Makefile.inc Removed Files: gen/realpath.3
* | 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-115-50/+98
| |
* | merge from Lite2 - realpath() now shares a lot of code with getcwd()peter1997-03-112-283/+0
| | | | | | | | and is now in the same file.
* | This commit was generated by cvs2svn to compensate for changes in r23658,peter1997-03-112-7/+7
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branchpeter1997-03-117-58/+105
| |
| * recording cvs-1.6 file deathpeter1995-12-302-180/+0
| |
* | Revert $FreeBSD$ to $Id$peter1997-02-226-6/+6
| |
* | Sort cross references.wosch1997-01-204-6/+6
| |
* | Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-146-6/+6
| | | | | | | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* | _thread_kern_sig_unblock takes an integer, not a reference.alex1996-12-291-2/+2
| | | | | | | | Submitted by: John Birrell <jb@cimlogic.com.au>
* | comma typoswosch1996-12-232-4/+6
| |
* | If you run with option Z and malloc fails, memset gets calledphk1996-10-291-4/+6
| | | | | | | | | | | | | | with a NULL pointer (archie) Explain that minsize is also the smallest alignment. Submitted by: Archie Cobbs <archie@whistle.com>
* | Note that streams are now flushed on abort.alex1996-10-261-2/+2
| | | | | | | | Change standards section to reflect POSIX 1003.1-1990 conformance.
* | Various cosmeticsphk1996-10-261-48/+28
| | | | | | | | | | | | Improve chances of troublefree 64bit operation. [imp] Noticed by: Warner Losh <imp@village.org>
* | POSIX requires stdio buffers be flushed on abort.alex1996-10-261-0/+8
| | | | | | | | Obtained from: OpenBSD, Thorsten Lockert <tholo@OpenBSD.ORG>
* | malloc_pages should be static.phk1996-10-201-187/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add progname to warning/error message layout. (joerg) Remove inline assembler, no speed impact, not need for the obfuscation (bde) Remove on the fly calculation of parameters, no longer critical. Make D & U flags valid even if we don't support them. Don't call imalloc until we're done initializing. Zap contents on free() if we have "Junk" set. [*] Various nitpicking. [*] As a sideeffect of this change, if you are worried about sensitive data lingering in memory, you can use the 'Junk' option now to make sure phkmalloc zaps memory when it is returned. add char * malloc_options = "J"; to your source. Obviously there is a performance impact.
* | Improve seeding, the random sequence did not vary matchache1996-10-092-14/+75
| | | | | | | | with the seed. Old variant will be available via libcompat soon.
* | Don't use malloc, pessimize to use sbrk.phk1996-09-271-1/+2
| | | | | | | | fix sbrk manpage while we're at it.
* | Fix a typo.sos1996-09-251-2/+2
| | | | | | | | Reviewed by: phk
* | A number of minor bogons and portability things from jdp.phk1996-09-251-28/+37
| | | | | | | | Submitted by: jdp
* | add missing comma(s) in .Xr macroswosch1996-09-231-3/+4
| |
* | phkmalloc/3phk1996-09-232-196/+342
| | | | | | | | | | | | | | | | Various neat features added. More documentation in the manpage. If your machine has very little RAM, I guess that would be < 16M these days :-(, you may want to try this: ln -fs 'H<' /etc/malloc.conf check the manpage.
OpenPOWER on IntegriCloud