summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Fix a very rare error condition: The code to free VM back to the kernelphk1996-09-171-3/+4
| | | | | | | | | | | | | | as done after a quasi-recursive call to free() had modified what we thought we knew about the last chunk of pages. This bug manifested itself when I did a "make obj" from src/usr.sbin/lpr, then make would coredump in the lpd directory.
* | Don't depend in the kernel on the gcc feature of doing arithmetic onbde1996-08-311-10/+10
| | | | | | | | pointers of type `void *'. Warn about this in future.
* | Correctly use .Fn instead of .Nm to reference function namesmpp1996-08-222-2/+4
| | | | | | | | | | | | | | | | in a bunch of man pages. Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros instead of explicitly specifying the version in the text in a bunch of man pages.
* | Update a bunch of man pages to use .Fn insteadmpp1996-08-221-1/+1
| | | | | | | | of .Nm when referencing funciton names.
* | Correctly document when getopt returns EOF and '?', and some othermpp1996-08-211-5/+7
| | | | | | | | minor cleanup.
* | General -Wall warning cleanup, part I.jkh1996-07-1211-40/+43
| | | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* | Isolated all the crap for thread-safe so I can see what goes on again...phk1996-07-031-61/+48
| |
* | Oops, replace a rather important line that was lost in transit 8-(jraynard1996-06-081-1/+2
| |
* | Submitted by: (based on code in "Advanced Programming in the Unix Environment"jraynard1996-06-052-18/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by W.Richard Ste vens. EINTR handling suggested by bde@freebsd.org). Code cleanup: 1. Add missing return type. 2. Replace 'union wait' by int. 3. Use Posix-style signal handling instead of signal(). 4. Use fork() instead of deprecated vfork(). 5. Block signals before fork()'ing, instead of after. 6. Return -1 if fork() fails, instead of 0. 7. Add EINTR handling for waitpid() call. Also add claim of Posix conformance to man page.
* | Fixed various problems: typos, grammer, missing include filesmpp1996-05-231-1/+1
| | | | | | | | | | wrong function type declarations, and wrong argument type declarations.
* | Don't include <sys/types.h> when it isn't used.bde1996-04-192-4/+2
| | | | | | | | | | This commit covers most of the ANSI library functions. Many others only need <sys/types.h> because they use u_xxx.
* | Xref sysexits(3).joerg1996-03-311-1/+7
| |
* | Added missing section numbers to a bunch of .Xr macros, ormpp1996-03-271-4/+9
| | | | | | | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems.
* | Fixed a bunch of man page cross references that werempp1996-02-151-1/+1
| | | | | | | | | | | | | | | | in the main text of various man pages. Thanks to Warner Losh for adding an option to manck to allow it to scan the entire man page looking for bogus xrefs, instead of just checking the SEE ALSO section.
* | Correct a bunch of man page cross references and generallympp1996-02-113-5/+5
| | | | | | | | | | | | try and silence "manck". ncurses, rpc, and some of the gnu stuff are still a big mess, however.
* | Fix even more spelling errors in some more man pages.mpp1996-01-302-6/+6
| |
* | Reviewed by: julian and (hsu?)julian1996-01-222-3/+79
| | | | | | | | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations
* | Return pointer to new hash node when search inserts it (e.g. therejkh1996-01-131-1/+5
| | | | | | | | was some datum given).
* | Fix a fencepost error.phk1996-01-051-4/+4
| | | | | | | | Found by: Lars Fredriksen <fredriks@mcs.com>
* | This commit was generated by cvs2svn to compensate for changes in r13122,peter1995-12-302-180/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | Added prototypes.bde1995-12-261-3/+8
| |
* | Preallocate a small structure, so we can sbrk(2) further back.phk1995-12-181-2/+8
| | | | | | | | | | Reviewed by: phk Submitted by: Kaleb Keithly <kaleb@x.org>
* | Change phkmalloc so that the page directory is now floating and allocatedpeter1995-12-111-29/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via mmap() up around the shared library area. Previously the directory was allocated from space from it's own memory pool. Because of the way it was being extended on processes with large malloced data segments (ie: inn) once the page directory was extended for some reason, it was not possible to lower the heap size any more to return pages to the OS. (If my understanding is correct, page directory expansion occurs at 4MB, 12MB, 20MB, 28MB, etc.) I was seeing INN allocate a large amount of short term memory, pushing it over the 28MB mark, and once it's transient demands hit 28MB, it never freed it's pages and swap space again.) I've been running this in my libc for about a month... Also, seperate MALLOC_STATS from EXTRA_SANITY.. I found it useful to call malloc_dump() from within INN from a ctlinnd command to see where the hell all the memory was going.. :-) I've left MALLOC_STATS enabled, as it has no run-time or data storage cost. Reviewed by: phk
* | Mino cleanup, #includes & unused vars.phk1995-10-222-2/+6
| |
OpenPOWER on IntegriCloud