PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/src/os/iphone/ftk_iphone.h

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