2013-04-16 23:57:27 -04:00
|
|
|
#ifndef _TOKUWIN_UNISTD_H
|
|
|
|
#define _TOKUWIN_UNISTD_H
|
2013-04-16 23:57:29 -04:00
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-04-16 23:57:27 -04:00
|
|
|
#include <io.h>
|
|
|
|
#include <stdio.h>
|
2013-04-16 23:57:29 -04:00
|
|
|
#include <stdint.h>
|
2013-04-16 23:57:27 -04:00
|
|
|
|
2013-04-16 23:57:30 -04:00
|
|
|
int fsync(int fildes);
|
|
|
|
|
2013-04-16 23:57:27 -04:00
|
|
|
int
|
|
|
|
ftruncate(int fildes, int64_t offset);
|
|
|
|
|
|
|
|
int64_t
|
|
|
|
pwrite(int fildes, const void *buf, size_t nbyte, int64_t offset);
|
|
|
|
|
|
|
|
int64_t
|
|
|
|
pread(int fildes, void *buf, size_t nbyte, int64_t offset);
|
|
|
|
|
|
|
|
unsigned int
|
|
|
|
sleep(unsigned int);
|
|
|
|
|
|
|
|
int
|
|
|
|
usleep(unsigned int);
|
|
|
|
|
2013-04-16 23:57:29 -04:00
|
|
|
int
|
|
|
|
getopt(int argc, char *const argv[], const char *optstring);
|
|
|
|
|
|
|
|
extern char *optarg;
|
|
|
|
|
2013-04-16 23:57:29 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2013-04-16 23:57:27 -04:00
|
|
|
#endif
|
|
|
|
|