Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/stdlib.h

    r47b7006 r63f8966  
    4040#include <stacktrace.h>
    4141
     42#define abort() \
     43        do { \
     44                stacktrace_print(); \
     45                _exit(1); \
     46        } while (0)
     47
     48#define exit(status)  _exit((status))
     49
    4250#define RAND_MAX  714025
    43 
    44 #define rand()       random()
    45 #define srand(seed)  srandom(seed)
    4651
    4752extern long int random(void);
    4853extern void srandom(unsigned int seed);
    4954
    50 extern void abort(void) __attribute__((noreturn));
     55static inline int rand(void)
     56{
     57        return random();
     58}
     59
     60static inline void srand(unsigned int seed)
     61{
     62        srandom(seed);
     63}
    5164
    5265#endif
Note: See TracChangeset for help on using the changeset viewer.