Changeset 582a0b8 in mainline for uspace/srv/hid


Ignore:
Timestamp:
2017-05-08T19:20:39Z (9 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.
Location:
uspace/srv/hid
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/input.c

    r73db198 r582a0b8  
    4444#include <config.h>
    4545#include <stdio.h>
    46 #include <unistd.h>
    4746#include <stdlib.h>
    4847#include <ns.h>
  • uspace/srv/hid/input/port/niagara.c

    r73db198 r582a0b8  
    135135        while (1) {
    136136                niagara_key_pressed();
    137                 usleep(POLL_INTERVAL);
     137                thread_usleep(POLL_INTERVAL);
    138138        }
    139139}
  • uspace/srv/hid/input/port/ski.c

    r73db198 r582a0b8  
    3737
    3838#include <stdlib.h>
    39 #include <unistd.h>
    4039#include <sys/types.h>
    4140#include <thread.h>
     
    9796                }
    9897
    99                 usleep(POLL_INTERVAL);
     98                thread_usleep(POLL_INTERVAL);
    10099        }
    101100}
  • uspace/srv/hid/isdv4_tablet/isdv4.c

    r73db198 r582a0b8  
    3131#include <stdlib.h>
    3232#include <mem.h>
     33#include <thread.h>
    3334
    3435#include "isdv4.h"
     
    377378                return EIO;
    378379
    379         usleep(250000); /* 250 ms */
     380        thread_usleep(250000); /* 250 ms */
    380381
    381382        // FIXME: Read all possible garbage before sending commands
  • uspace/srv/hid/output/proto/vt100.c

    r73db198 r582a0b8  
    3434#include <errno.h>
    3535#include <stdio.h>
    36 #include <unistd.h>
     36#include <stddef.h>
    3737#include <malloc.h>
    3838#include <io/color.h>
  • uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c

    r73db198 r582a0b8  
    4343#include <ipc/mouseev.h>
    4444#include <async.h>
    45 #include <unistd.h>
    4645#include <stdio.h>
    4746#include <stdlib.h>
Note: See TracChangeset for help on using the changeset viewer.