Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/stdlib.c

    r820104d ra3da2b2  
    3535
    3636#define LIBPOSIX_INTERNAL
    37 #define __POSIX_DEF__(x) posix_##x
    3837
    3938#include "internal/common.h"
     
    6362        // TODO: low priority, just a compile-time dependency of binutils
    6463        not_implemented();
    65         return 0;
    6664}
    6765
     
    233231        // TODO: low priority, just a compile-time dependency of binutils
    234232        not_implemented();
    235         return 0;
    236233}
    237234
     
    246243int posix_system(const char *string) {
    247244        // TODO: does nothing at the moment
    248         not_implemented();
    249245        return 0;
    250246}
     
    391387                free(ptr);
    392388        }
    393 }
    394 
    395 /**
    396  * Generate a pseudo random integer in the range 0 to RAND_MAX inclusive.
    397  *
    398  * @return The pseudo random integer.
    399  */
    400 int posix_rand(void)
    401 {
    402         return (int) random();
    403 }
    404 
    405 /**
    406  * Initialize a new sequence of pseudo-random integers.
    407  *
    408  * @param seed The seed of the new sequence.
    409  */
    410 void posix_srand(unsigned int seed)
    411 {
    412         srandom(seed);
    413389}
    414390
Note: See TracChangeset for help on using the changeset viewer.