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:45 -04:00
|
|
|
#include <getopt.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
|
2013-04-16 23:59:02 -04:00
|
|
|
ftruncate(int fildes, toku_off_t offset);
|
|
|
|
|
|
|
|
int
|
|
|
|
truncate(const char *path, toku_off_t length);
|
2013-04-16 23:57:27 -04:00
|
|
|
|
|
|
|
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
|
|
|
#if defined(__cplusplus)
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2013-04-16 23:57:27 -04:00
|
|
|
#endif
|
|
|
|
|