Changeset 04803bf in mainline for uspace/lib/c/include/stdlib.h
- Timestamp:
- 2011-03-21T22:00:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (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 moved
-
uspace/lib/c/include/stdlib.h (moved) (moved from uspace/lib/libc/include/stdlib.h ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/stdlib.h
rb50b5af2 r04803bf 38 38 #include <unistd.h> 39 39 #include <malloc.h> 40 41 #define abort() _exit(1) 42 #define exit(status) _exit((status)) 40 #include <stacktrace.h> 43 41 44 42 #define RAND_MAX 714025 43 44 #define rand() random() 45 #define srand(seed) srandom(seed) 45 46 46 47 extern long int random(void); 47 48 extern void srandom(unsigned int seed); 48 49 49 static inline int rand(void) 50 { 51 return random(); 52 } 53 54 static inline void srand(unsigned int seed) 55 { 56 srandom(seed); 57 } 50 extern void abort(void) __attribute__((noreturn)); 58 51 59 52 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
