Changes in uspace/lib/posix/source/stdlib.c [820104d:a3da2b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/stdlib.c
r820104d ra3da2b2 35 35 36 36 #define LIBPOSIX_INTERNAL 37 #define __POSIX_DEF__(x) posix_##x38 37 39 38 #include "internal/common.h" … … 63 62 // TODO: low priority, just a compile-time dependency of binutils 64 63 not_implemented(); 65 return 0;66 64 } 67 65 … … 233 231 // TODO: low priority, just a compile-time dependency of binutils 234 232 not_implemented(); 235 return 0;236 233 } 237 234 … … 246 243 int posix_system(const char *string) { 247 244 // TODO: does nothing at the moment 248 not_implemented();249 245 return 0; 250 246 } … … 391 387 free(ptr); 392 388 } 393 }394 395 /**396 * Generate a pseudo random integer in the range 0 to RAND_MAX inclusive.397 *398 * @return The pseudo random integer.399 */400 int posix_rand(void)401 {402 return (int) random();403 }404 405 /**406 * Initialize a new sequence of pseudo-random integers.407 *408 * @param seed The seed of the new sequence.409 */410 void posix_srand(unsigned int seed)411 {412 srandom(seed);413 389 } 414 390
Note:
See TracChangeset
for help on using the changeset viewer.