Changeset 823a929 in mainline for uspace/lib/posix/stdlib.c
- Timestamp:
- 2011-06-23T23:57:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e64b55a
- Parents:
- da084d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdlib.c
rda084d9 r823a929 40 40 41 41 /** 42 * 42 * 43 43 * @param array 44 44 * @param count … … 46 46 * @param compare 47 47 */ 48 int posix_atexit(void (*func)(void)) 49 { 50 // TODO: low priority, just a compile-time dependency of binutils 51 not_implemented(); 52 } 53 54 /** 55 * 56 * @param array 57 * @param count 58 * @param size 59 * @param compare 60 */ 61 int posix_abs(int i) 62 { 63 // TODO 64 not_implemented(); 65 } 66 67 /** 68 * 69 * @param array 70 * @param count 71 * @param size 72 * @param compare 73 */ 48 74 void posix_qsort(void *array, size_t count, size_t size, 49 75 int (*compare)(const void *, const void *)) … … 70 96 * @return 71 97 */ 98 int posix_putenv(char *string) 99 { 100 // TODO: low priority, just a compile-time dependency of binutils 101 not_implemented(); 102 } 103 104 /** 105 * 106 * @param name 107 * @param resolved 108 * @return 109 */ 72 110 char *posix_realpath(const char *name, char *resolved) 73 111 { … … 113 151 } 114 152 153 /** 154 * 155 * @param size 156 * @return 157 */ 158 void *posix_malloc(size_t size) 159 { 160 return malloc(size); 161 } 162 163 /** 164 * 165 * @param nelem 166 * @param elsize 167 * @return 168 */ 169 void *posix_calloc(size_t nelem, size_t elsize) 170 { 171 return calloc(nelem, elsize); 172 } 173 174 /** 175 * 176 * @param ptr 177 * @param size 178 * @return 179 */ 180 void *posix_realloc(void *ptr, size_t size) 181 { 182 return realloc(ptr, size); 183 } 184 185 /** 186 * 187 * @param ptr 188 */ 189 void posix_free(void *ptr) 190 { 191 free(ptr); 192 } 193 194 /** 195 * 196 * @param tmpl 197 * @return 198 */ 199 char *posix_mktemp(char *tmpl) 200 { 201 // TODO: low priority, just a compile-time dependency of binutils 202 not_implemented(); 203 } 204 115 205 /** @} 116 206 */
Note:
See TracChangeset
for help on using the changeset viewer.