Changeset 582a0b8 in mainline for uspace/lib/pcut/tests/timeout.c


Ignore:
Timestamp:
2017-05-08T19:20:39Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2c8533
Parents:
73db198
Message:

Remove unistd.h

  • Rename usleep() and sleep() to thread_usleep() and thread_sleep() and move to thread.[hc].
  • Include stddef.h in order to provide NULL.
  • Move getpagesize() to libposix.
  • Sync uspace/dist/src/c/demos with originals.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/tests/timeout.c

    r73db198 r582a0b8  
    3030
    3131#ifdef __unix
    32 #include <unistd.h>
     32// FIXME
     33#include <thread.h>
    3334#endif
    3435#if defined(__WIN64) || defined(__WIN32) || defined(_WIN32)
     
    4142static void my_sleep(int sec) {
    4243#ifdef __unix
    43         sleep(sec);
     44// FIXME
     45        thread_sleep(sec);
    4446#endif
    4547#if defined(__WIN64) || defined(__WIN32) || defined(_WIN32)
Note: See TracChangeset for help on using the changeset viewer.