PageRenderTime 203ms CodeModel.GetById 100ms app.highlight 1ms RepoModel.GetById 100ms app.codeStats 0ms

/src/os/android/ftk_android.h

http://ftk.googlecode.com/
C++ Header | 32 lines | 25 code | 7 blank | 0 comment | 0 complexity | 8e42f24487f2a67304af73b93045109f MD5 | raw file
 1
 2#ifndef FTK_ANDROID_H
 3#define FTK_ANDROID_H
 4
 5#include <fcntl.h>
 6#include <dirent.h>
 7#include <sys/types.h>
 8#include <sys/stat.h>
 9#include <unistd.h>
10#include <sys/select.h>
11#include <sys/time.h>
12#include <sys/socket.h>
13
14#define ftk_strncpy   strncpy
15#define ftk_snprintf  snprintf
16#define ftk_vsnprintf vsnprintf
17#define ftk_getcwd    getcwd
18#define ftk_sscanf    sscanf
19
20#define ftk_pipe_pair(fds)             pipe(fds)
21#define ftk_pipe_close(fd)             close(fd)
22#define ftk_pipe_recv(fd, buf, length) read(fd, buf, length)
23#define ftk_pipe_send(fd, buf, length) write(fd, buf, length)
24
25#ifdef HAVE_CONFIG_H
26#include "config_ftk.h"
27#endif
28
29#define FTK_PATH_DELIM '/'
30#define FTK_HAS_MAIN   1
31
32#endif/*FTK_ANDROID_H*/