summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* Drop the use of caddr_t in conjunction with mmap(2).Alexander Langer1997-12-311-4/+4
| | | | Notes: svn path=/head/; revision=32133
* Fix recursion problem which occurs when a signal is received duringJohn Birrell1997-12-151-3/+12
| | | | | | | | | | a malloc. The signal handler creates a thread which requires a malloc... For now, the only thing to do is to block signals. When we move user pthreads to use the kernel threads, mutexes will be implemented in kernel space and then malloc can revert. Notes: svn path=/head/; revision=31722
* Sorted lists.Bruce Evans1997-10-211-6/+6
| | | | Notes: svn path=/head/; revision=30624
* Handle machine-dependent (stdlib) sources more automatically.Bruce Evans1997-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. Notes: svn path=/head/; revision=30484
* Removed the subdirectory paths from the definitions of MAN[1-9]. TheyBruce Evans1997-10-151-10/+5
| | | | | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago. Notes: svn path=/head/; revision=30447
* environmental -> environment.Philippe Charnier1997-09-181-2/+2
| | | | Notes: svn path=/head/; revision=29563
* Another 32bits of 64bits conformance.Poul-Henning Kamp1997-08-311-2/+2
| | | | | | | | Reviewed by: phk Submitted by: jdp Notes: svn path=/head/; revision=28952
* Improvement of type independency for the bitmap.Poul-Henning Kamp1997-08-271-3/+4
| | | | | | | | | | This makes 64bit operation more likely. Reviewed by: phk Submitted by: jdp Notes: svn path=/head/; revision=28835
* Malloc option H is now default.Poul-Henning Kamp1997-08-272-4/+5
| | | | Notes: svn path=/head/; revision=28830
* Get rid of integer overflow warning.Steve Price1997-08-232-2/+2
| | | | | | | | PR: misc/3575 Submitted by: Bruce Evans <bde@zeta.org.au> Notes: svn path=/head/; revision=28640
* Fix a minor typo. It only affects the sparc version.John Polstra1997-07-261-2/+2
| | | | Notes: svn path=/head/; revision=27698
* realpath() should break on looped symlinks.Poul-Henning Kamp1997-07-161-0/+5
| | | | | | | | | PR: 3911 Reviewed by: phk Submitted by: Shigio Yamaguchi <shigio@wafu.netgate.net> Notes: svn path=/head/; revision=27449
* kill the undeadPeter Wemm1997-07-132-180/+0
| | | | Notes: svn path=/head/; revision=27369
* This commit was generated by cvs2svn to compensate for changes in r27180,Bruce Evans1997-07-032-0/+180
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=27181
| * Import Lite2's src/lib, except for non-i386 machine-dependent directories,Bruce Evans1997-07-032-0/+180
| | | | | | | | | | | | | | | | libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3 unimportant ones have already left the vendor branch. Notes: svn path=/vendor/CSRG/dist/; revision=27180
* | Have another go at the malloc-sysv initialization.Poul-Henning Kamp1997-07-021-12/+11
| | | | | | | | | | | | | | | | PR: 4002 Pointed out by: bde Notes: svn path=/head/; revision=27179
* | malloc_sysv used before initialized, reported in PR4002 byPoul-Henning Kamp1997-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> Notes: svn path=/head/; revision=27152
* | Show the real revision date and not the date that thisSteve Price1997-06-231-1/+1
| | | | | | | | | | | | | | manpage is being viewed. Notes: svn path=/head/; revision=26826
* | Integrate calloc with the rest of the gang.Poul-Henning Kamp1997-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> Notes: svn path=/head/; revision=26816
* | srandomdev: use stack junk value in the fallback code tooAndrey A. Chernov1997-06-151-2/+3
| | | | | | | | Notes: svn path=/head/; revision=26665
* | Instead of copying fallback code over and over in each program,Andrey A. Chernov1997-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. Notes: svn path=/head/; revision=26624
* | Add yet an option, this time on how to deal with malloc(0) and realloc(ptr.0)Poul-Henning Kamp1997-06-122-8/+27
| | | | | | | | | | | | | | Prompted by: X11 & XFree86 Notes: svn path=/head/; revision=26579
* | Fix mutex initialization.John Birrell1997-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-) Notes: svn path=/head/; revision=26444
* | Malloc flag X makes malloc behave like the canonical xmalloc() wrapper.Poul-Henning Kamp1997-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> Notes: svn path=/head/; revision=26284
* | Changed all paths to be relative to src/lib instead of src/lib/libcJohn Birrell1997-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. Notes: svn path=/head/; revision=25401
* | Typo.Masafumi Max NAKANE1997-04-251-1/+1
| | | | | | | | | | | | | | | | PR: #3178 Submitted by: Josh Gilliam <soil@quick.net> Notes: svn path=/head/; revision=25145
* | Fixed #include and/or prototype bugs in synopsis.Bruce Evans1997-04-191-2/+2
| | | | | | | | Notes: svn path=/head/; revision=25028
* | Fixed missing consts in synopsis.Bruce Evans1997-04-131-2/+2
| | | | | | | | Notes: svn path=/head/; revision=24880
* | Remove orand* code as promised for the next releaseAndrey A. Chernov1997-03-292-20/+4
| | | | | | | | Notes: svn path=/head/; revision=24390
* | Add srandomdev.3 linkAndrey A. Chernov1997-03-231-1/+2
| | | | | | | | Notes: svn path=/head/; revision=24155
* | Fix urandom reference in the commentAndrey A. Chernov1997-03-231-1/+1
| | | | | | | | Notes: svn path=/head/; revision=24154
* | Add srandomdev() descriptionAndrey A. Chernov1997-03-231-1/+24
| | | | | | | | Notes: svn path=/head/; revision=24153
* | Add srandomdev() function (use "/dev/urandom" now)Andrey A. Chernov1997-03-231-0/+40
| | | | | | | | | | | | | | Submitted by: wollman & me (add type casts and remove unneded loop) Notes: svn path=/head/; revision=24151
* | Remove an extra comma.Mike Pritchard1997-03-221-2/+2
| | | | | | | | Notes: svn path=/head/; revision=24125
* | Use the .Tn macro for generic FreeBSD references. Other minor cleanup.Mike Pritchard1997-03-211-3/+3
| | | | | | | | Notes: svn path=/head/; revision=24094
* | Check for overflow in size argument.Poul-Henning Kamp1997-03-181-2/+4
| | | | | | | | | | | | | | | | Tested by: Joel Maslak <j@pobox.com> Closes: PR kern/2964 Notes: svn path=/head/; revision=23981
* | Fix arg types to match Lite2Andrey A. Chernov1997-03-171-2/+2
| | | | | | | | Notes: svn path=/head/; revision=23969
* | Part 2 of a failed commit (cvs broke). Original message:Peter Wemm1997-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 Notes: svn path=/head/; revision=23833
* | Back out a dubious Lite2 change to "optimise" getcwd() to look at $PWDPeter Wemm1997-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 Notes: svn path=/head/; revision=23832
* | Merge Lite2 changesPeter Wemm1997-03-115-50/+98
| | | | | | | | Notes: svn path=/head/; revision=23662
* | merge from Lite2 - realpath() now shares a lot of code with getcwd()Peter Wemm1997-03-112-283/+0
| | | | | | | | | | | | | | and is now in the same file. Notes: svn path=/head/; revision=23661
* | This commit was generated by cvs2svn to compensate for changes in r23658,Peter Wemm1997-03-112-7/+7
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=23659
| * Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branchPeter Wemm1997-03-117-0/+1233
| | | | Notes: svn path=/vendor/CSRG/dist/; revision=23658
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-226-6/+6
| | | | Notes: svn path=/head/; revision=22993
* Sort cross references.Wolfram Schneider1997-01-204-6/+6
| | | | Notes: svn path=/head/; revision=21907
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* _thread_kern_sig_unblock takes an integer, not a reference.Alexander Langer1996-12-291-2/+2
| | | | | | | Submitted by: John Birrell <jb@cimlogic.com.au> Notes: svn path=/head/; revision=21000
* comma typosWolfram Schneider1996-12-232-4/+6
| | | | Notes: svn path=/head/; revision=20888
* If you run with option Z and malloc fails, memset gets calledPoul-Henning Kamp1996-10-291-4/+6
| | | | | | | | | | with a NULL pointer (archie) Explain that minsize is also the smallest alignment. Submitted by: Archie Cobbs <archie@whistle.com> Notes: svn path=/head/; revision=19257
* Note that streams are now flushed on abort.Alexander Langer1996-10-261-2/+2
| | | | | | | Change standards section to reflect POSIX 1003.1-1990 conformance. Notes: svn path=/head/; revision=19196