Changeset b5e68c8 in mainline for uspace/lib/c/include/stdlib.h
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/lib/c/include/stdlib.h ¶
re80329d6 rb5e68c8 40 40 #include <stacktrace.h> 41 41 42 #define abort() \ 43 do { \ 44 stacktrace_print(); \ 45 _exit(1); \ 46 } while (0) 42 #define RAND_MAX 714025 47 43 48 #define exit(status) _exit((status)) 49 50 #define RAND_MAX 714025 44 #define rand() random() 45 #define srand(seed) srandom(seed) 51 46 52 47 extern long int random(void); 53 48 extern void srandom(unsigned int seed); 54 49 55 static inline int rand(void) 56 { 57 return random(); 58 } 59 60 static inline void srand(unsigned int seed) 61 { 62 srandom(seed); 63 } 50 extern void abort(void) __attribute__((noreturn)); 64 51 65 52 #endif
Note:
See TracChangeset
for help on using the changeset viewer.