/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. #ifndef FTK_IPHONE_H
  2. #define FTK_IPHONE_H
  3. #include <setjmp.h>
  4. #include <fcntl.h>
  5. #include <dirent.h>
  6. #include <sys/types.h>
  7. #include <sys/types.h>
  8. #include <sys/stat.h>
  9. #include <unistd.h>
  10. #include <ctype.h>
  11. #include <sys/select.h>
  12. #include <sys/time.h>
  13. #include <sys/types.h>
  14. #include <sys/socket.h>
  15. #define ftk_strncpy strncpy
  16. #define ftk_snprintf snprintf
  17. #define ftk_vsnprintf vsnprintf
  18. #define ftk_getcwd getcwd
  19. #define ftk_sscanf sscanf
  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. #ifdef HAVE_CONFIG_H
  25. #include "config_ftk.h"
  26. #endif
  27. #define FTK_PATH_DELIM '/'
  28. #if 0
  29. #define FTK_HAS_MAIN 1
  30. #endif
  31. #define USE_FTK_MAIN 1
  32. jmp_buf *jump_env(void);
  33. #endif/*FTK_IPHONE_H*/