Changes in uspace/lib/posix/stdlib.h [cc3652db:823a929] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdlib.h
rcc3652db r823a929 53 53 /* Absolute Value */ 54 54 extern int posix_abs(int i); 55 extern long posix_labs(long i);56 extern long long posix_llabs(long long i);57 55 58 /* Integer division */ 59 60 typedef struct { 61 int quot, rem; 62 } posix_div_t; 63 64 typedef struct { 65 long quot, rem; 66 } posix_ldiv_t; 67 68 typedef struct { 69 long long quot, rem; 70 } posix_lldiv_t; 71 72 extern posix_div_t posix_div(int numer, int denom); 73 extern posix_ldiv_t posix_ldiv(long numer, long denom); 74 extern posix_lldiv_t posix_lldiv(long long numer, long long denom); 75 76 /* Array Functions */ 56 /* Array Sort Function */ 77 57 extern void posix_qsort(void *array, size_t count, size_t size, 78 58 int (*compare)(const void *, const void *)); 79 extern void *posix_bsearch(const void *key, const void *base,80 size_t nmemb, size_t size, int (*compar)(const void *, const void *));81 82 59 83 60 /* Environment Access */ … … 85 62 extern int posix_putenv(char *string); 86 63 87 extern int posix_system(const char *string);88 89 90 64 /* Symbolic Links */ 91 65 extern char *posix_realpath(const char *restrict name, char *restrict resolved); 92 66 93 67 /* Floating Point Conversion */ 94 extern double posix_atof(const char *nptr);95 68 extern float posix_strtof(const char *restrict nptr, char **restrict endptr); 96 69 extern double posix_strtod(const char *restrict nptr, char **restrict endptr); … … 98 71 99 72 /* Integer Conversion */ 100 extern int posix_atoi(const char *nptr); 101 extern long int posix_atol(const char *nptr); 102 extern long long int posix_atoll(const char *nptr); 103 104 extern long int posix_strtol(const char *restrict nptr, 105 char **restrict endptr, int base); 106 extern long long int posix_strtoll(const char *restrict nptr, 107 char **restrict endptr, int base); 108 extern unsigned long int posix_strtoul(const char *restrict nptr, 109 char **restrict endptr, int base); 110 extern unsigned long long int posix_strtoull( 111 const char *restrict nptr, char **restrict endptr, int base); 112 73 extern int posix_atoi(const char *str); 113 74 114 75 /* Memory Allocation */ … … 125 86 126 87 #define abs posix_abs 127 #define labs posix_labs128 #define llabs posix_llabs129 130 #define div_t posix_div_t131 #define ldiv_t posix_ldiv_t132 #define lldiv_t posix_lldiv_t133 #define div posix_div134 #define ldiv posix_ldiv135 #define lldiv posix_lldiv136 88 137 89 #define qsort posix_qsort 138 #define bsearch posix_bsearch139 90 140 91 #define getenv posix_getenv 141 #define putenv posix_putenv142 #define system posix_system143 92 144 93 #define realpath posix_realpath 145 94 146 #define atof posix_atof147 95 #define strtof posix_strtof 148 96 #define strtod posix_strtod … … 150 98 151 99 #define atoi posix_atoi 152 #define atol posix_atol153 #define atoll posix_atoll154 #define strtol posix_strtol155 #define strtoll posix_strtoll156 #define strtoul posix_strtoul157 #define strtoull posix_strtoull158 100 159 101 #define malloc posix_malloc
Note:
See TracChangeset
for help on using the changeset viewer.