Changeset eb522e8 in mainline for uspace/lib/c/include/stdlib.h


Ignore:
Timestamp:
2011-06-01T08:43:42Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d6c1f1
Parents:
9e2e715 (diff), e51a514 (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.
Message:

Huuuuuge merge from development - all the work actually :)

File:
1 edited

Legend:

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

    r9e2e715 reb522e8  
    4040#include <stacktrace.h>
    4141
    42 #define abort() \
    43         do { \
    44                 stacktrace_print(); \
    45                 _exit(1); \
    46         } while (0)
     42#define RAND_MAX  714025
    4743
    48 #define exit(status)  _exit((status))
    49 
    50 #define RAND_MAX  714025
     44#define rand()       random()
     45#define srand(seed)  srandom(seed)
    5146
    5247extern long int random(void);
    5348extern void srandom(unsigned int seed);
    5449
    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 }
     50extern void abort(void) __attribute__((noreturn));
    6451
    6552#endif
Note: See TracChangeset for help on using the changeset viewer.