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/app/tester/hw/serial/serial1.c

    r73db198 r582a0b8  
    3939#include <stdlib.h>
    4040#include <stdio.h>
     41#include <stddef.h>
    4142#include <sys/types.h>
    4243#include <async.h>
     44#include <thread.h>
    4345#include <ipc/services.h>
    4446#include <loc.h>
     
    146148               
    147149                if (read == 0)
    148                         usleep(DEFAULT_SLEEP);
     150                        thread_usleep(DEFAULT_SLEEP);
    149151                else {
    150152                        buf[read] = 0;
Note: See TracChangeset for help on using the changeset viewer.