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


Ignore:
Timestamp:
2011-03-21T22:00:17Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
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.
Message:

Merge mainline changes (needs fixes).

File:
1 moved

Legend:

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

    rb50b5af2 r04803bf  
    3838#include <unistd.h>
    3939#include <malloc.h>
    40 
    41 #define abort()       _exit(1)
    42 #define exit(status)  _exit((status))
     40#include <stacktrace.h>
    4341
    4442#define RAND_MAX  714025
     43
     44#define rand()       random()
     45#define srand(seed)  srandom(seed)
    4546
    4647extern long int random(void);
    4748extern void srandom(unsigned int seed);
    4849
    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 }
     50extern void abort(void) __attribute__((noreturn));
    5851
    5952#endif
Note: See TracChangeset for help on using the changeset viewer.