Changeset 55092672 in mainline for uspace/lib/posix/include/posix/stdlib.h
- Timestamp:
- 2018-06-15T13:06:18Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8338a81
- Parents:
- 1ae9c07
- git-author:
- Jiri Svoboda <jiri@…> (2018-06-14 22:05:23)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-06-15 13:06:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/stdlib.h
r1ae9c07 r55092672 37 37 #define POSIX_STDLIB_H_ 38 38 39 #include "libc/stdlib.h" 39 40 #include "sys/types.h" 40 41 41 42 #include <_bits/NULL.h> 42 43 43 #define RAND_MAX 714025 44 /* Process Termination */ 45 #define _Exit exit 44 46 45 /* Process Termination */46 #undef EXIT_FAILURE47 #define EXIT_FAILURE 148 #undef EXIT_SUCCESS49 #define EXIT_SUCCESS 050 #define _Exit exit51 47 extern int atexit(void (*func)(void)); 52 extern void exit(int status) __attribute__((noreturn));53 extern void abort(void) __attribute__((noreturn));54 48 55 49 /* Absolute Value */ … … 77 71 78 72 /* Array Functions */ 79 extern void qsort(void *array, size_t count, size_t size,80 int (*compare)(const void *, const void *));81 73 extern void *bsearch(const void *key, const void *base, 82 74 size_t nmemb, size_t size, int (*compar)(const void *, const void *)); … … 96 88 extern long double strtold(const char *__restrict__ nptr, char **__restrict__ endptr); 97 89 98 /* Integer Conversion */99 extern int atoi(const char *nptr);100 extern long int atol(const char *nptr);101 extern long long int atoll(const char *nptr);102 extern long int strtol(const char *__restrict__ nptr,103 char **__restrict__ endptr, int base);104 extern long long int strtoll(const char *__restrict__ nptr,105 char **__restrict__ endptr, int base);106 extern unsigned long int strtoul(const char *__restrict__ nptr,107 char **__restrict__ endptr, int base);108 extern unsigned long long int strtoull(109 const char *__restrict__ nptr, char **__restrict__ endptr, int base);110 111 /* Memory Allocation */112 extern void *malloc(size_t size)113 __attribute__((malloc));114 extern void *calloc(size_t nelem, size_t elsize)115 __attribute__((malloc));116 extern void *realloc(void *ptr, size_t size)117 __attribute__((warn_unused_result));118 extern void free(void *ptr);119 120 90 /* Temporary Files */ 121 91 extern int mkstemp(char *tmpl); 122 123 /* Pseudo-random number generator */124 extern int rand(void);125 extern void srand(unsigned int seed);126 92 127 93 /* Legacy Declarations */
Note:
See TracChangeset
for help on using the changeset viewer.