ei_posix.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. *------------------------------------------------------------------------------
  3. * @File : ei_posix.h
  4. * @Date : 2021-3-16
  5. * @Author : lomboswer <lomboswer@lombotech.com>
  6. * @Brief : Common file for MDP(Media Development Platform).
  7. *
  8. * Copyright (C) 2020-2021, LomboTech Co.Ltd. All rights reserved.
  9. *------------------------------------------------------------------------------
  10. */
  11. #ifndef __EI_POSIX_H__
  12. #define __EI_POSIX_H__
  13. #ifdef __cplusplus
  14. #if __cplusplus
  15. extern "C" {
  16. #endif
  17. #endif /* __cplusplus */
  18. #include <string.h>
  19. #include <stdlib.h>
  20. #include <stdio.h>
  21. #include <stdbool.h>
  22. #include <malloc.h>
  23. #include <unistd.h>
  24. #include <signal.h>
  25. #include <pthread.h>
  26. #include <errno.h>
  27. #include <fcntl.h>
  28. #include <math.h>
  29. #include <time.h>
  30. #include <signal.h>
  31. #include <semaphore.h>
  32. #include "ei_mem.h"
  33. #ifdef __EOS__
  34. #include <rtthread.h>
  35. #include <dfs_posix.h>
  36. #include <sched.h>
  37. #include <stdio.h>
  38. #include <clock_time.h>
  39. #include <sys/time.h>
  40. #include <prctl.h>
  41. #else
  42. #include <sys/stat.h>
  43. #include <sys/ioctl.h>
  44. #include <sys/uio.h>
  45. #include <sys/time.h>
  46. #include <sys/types.h>
  47. #include <sys/mman.h>
  48. #include <sys/prctl.h>
  49. #include <sys/select.h>
  50. #endif
  51. #ifdef __cplusplus
  52. #if __cplusplus
  53. }
  54. #endif
  55. #endif /* __cplusplus */
  56. #endif /* __EI_POSIX_H__ */