aboutsummaryrefslogtreecommitdiff
path: root/include/stdlib.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC:Mike Barcroft2001-12-271-1/+1
| | | | | | | | | Fix support for K&R C. Approved by: re Notes: svn path=/stable/4/; revision=88548
* MFC: getprogname(3) and setprogname(3)Dima Dorfman2001-06-141-0/+3
| | | | Notes: svn path=/stable/4/; revision=78192
* MFC: Impliment the ISO-C99 strto[u]ll()David E. O'Brien2001-03-021-0/+4
| | | | | | | and rewrite strto[u]q() in terms of it. Notes: svn path=/stable/4/; revision=73338
* Fixed missing declaration of rand_r(3).Bruce Evans1999-12-231-0/+2
| | | | Notes: svn path=/head/; revision=55031
* Little reorganization:Dmitrij Tejblum1998-12-191-5/+3
| | | | | | | | | | | | | - created internal names for fixed-size integral types, like __int32_t. They will be used to make several headers self-sufficient. - <stdlib.h> don't include <machine/types.h> anymore. - created <sys/inttypes.h>, which can be used as <inttypes.h>. - declaration of uoff_t and ufs_daddr_t moved to <sys/types.h>. Reviewed by: bde Notes: svn path=/head/; revision=41927
* Add reallocf to the library. This function is simliar to realloc, butWarner Losh1998-09-141-0/+1
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=39191
* Change the return types for strtoq and strtouq to int64_t and u_int64_tJohn Birrell1998-05-111-3/+2
| | | | | | | | | | | | instead of long long and unsigned long long. Really they should be quad_t and u_quad_t, but that would require sys/types.h and this header only includes machine/types.h. The difference here is that int64_t and u_int64_t on alpha are long and unsigned long, not long long etc. This is required to pass gcc's type checking where long != long long even though they are the same size of alpha. Notes: svn path=/head/; revision=35943
* Moved include of <sys/cdefs.h> earlier for the same reasons as movingBruce Evans1998-02-271-2/+2
| | | | | | | | | it in <sys/types.h>. PR: 5785 Notes: svn path=/head/; revision=33861
* Move machine/types.h to non-standard sectionAndrey A. Chernov1997-06-141-2/+3
| | | | | | | | Change order of arc4* functions Pointed-by: bde Notes: svn path=/head/; revision=26636
* Add arc4random family declarationAndrey A. Chernov1997-06-141-0/+5
| | | | Notes: svn path=/head/; revision=26630
* Instead of copying fallback code over and over in each program,Andrey A. Chernov1997-06-141-1/+1
| | | | | | | | | 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 srandomdev() prototypeAndrey A. Chernov1997-03-231-0/+1
| | | | Notes: svn path=/head/; revision=24152
* Merge Lite2 changes -Peter Wemm1997-03-111-10/+3
| | | | | | | move getopt etc declarations from stdlib.h to unistd.h Notes: svn path=/head/; revision=23657
* Don't use __dead or __pure in user code. They were obfuscationsBruce Evans1996-09-141-12/+6
| | | | | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong. Notes: svn path=/head/; revision=18286
* Fixed longstanding namespace convolution involving rune_t vs wchar_t.Bruce Evans1996-05-011-3/+7
| | | | | | | | | | | | | | If _ANSI_SOURCE or _POSIX_SOURCE is defined, then <ctype.h> had to be included before <stddef.h> or <stdlib.h> to get rune_t declared. Now rune_t is declared perfectly bogusly in all cases when <ctype.h> is included. This change breaks similar (but more convoluted) convolutions in the stddef.h in gcc distributions. Ports of gcc should avoid using the gcc headers. Notes: svn path=/head/; revision=15483
* Don't declare rune_t, putenv() or setenv() if _POSIX_SOURCE is declared.Bruce Evans1995-04-151-21/+19
| | | | | | | | | | | | | | | | Previously they were only guarded by `#ifndef _ANSI_SOURCE'. They are neither ANSI nor POSIX nor std and should never have been declared here. Declare functions like abs() as having attribute `__pure2'. Declaring them as having type `__pure' has been a no-op for some time. Delete obsolete comment about stub locale functions. Use consistent formatting for the rand48 functions. These and about 30 other functions should never have been declared here either. Notes: svn path=/head/; revision=7865
* Reviewed by: Bruce EvansAndreas Schulz1994-11-211-0/+10
| | | | | | | | Add prototypes for the *rand48 family here in the moment to get them running again. Notes: svn path=/head/; revision=4749
* Declare functions that don't return as having attribute __dead2.Bruce Evans1994-09-081-2/+2
| | | | Notes: svn path=/head/; revision=2572
* BSD 4.4 Lite Include SourcesRodney W. Grimes1994-05-241-0/+175
Notes: svn path=/head/; revision=1539