Changes in uspace/lib/c/include/stdlib.h [47b7006:bc5ffeb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/stdlib.h
r47b7006 rbc5ffeb 40 40 #include <stacktrace.h> 41 41 42 #define abort() \ 43 do { \ 44 stacktrace_print(); \ 45 _exit(1); \ 46 } while (0) 47 48 #define core() \ 49 *((int *) 0) = 0xbadbad; 50 51 #define exit(status) _exit((status)) 52 42 53 #define RAND_MAX 714025 43 44 #define rand() random()45 #define srand(seed) srandom(seed)46 54 47 55 extern long int random(void); 48 56 extern void srandom(unsigned int seed); 49 57 50 extern void abort(void) __attribute__((noreturn)); 58 static inline int rand(void) 59 { 60 return random(); 61 } 62 63 static inline void srand(unsigned int seed) 64 { 65 srandom(seed); 66 } 51 67 52 68 #endif
Note:
See TracChangeset
for help on using the changeset viewer.