Kconfig 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. menu "POSIX (Portable Operating System Interface) layer"
  2. config RT_USING_POSIX_FS
  3. bool "Enable POSIX file system and I/O"
  4. select RT_USING_DFS
  5. select DFS_USING_POSIX
  6. default n
  7. if RT_USING_POSIX_FS
  8. config RT_USING_POSIX_DEVIO
  9. bool "Enable devices as file descriptors"
  10. select RT_USING_DFS_DEVFS
  11. default n
  12. config RT_USING_POSIX_STDIO
  13. bool "Enable standard I/O devices, e.g. STDOUT_FILENO"
  14. select RT_USING_POSIX_DEVIO
  15. default n
  16. config RT_USING_POSIX_POLL
  17. bool "Enable I/O Multiplexing poll() <poll.h>"
  18. default n
  19. config RT_USING_POSIX_SELECT
  20. bool "Enable I/O Multiplexing select() <sys/select.h>"
  21. select RT_USING_POSIX_POLL
  22. default n
  23. config RT_USING_POSIX_EVENTFD
  24. bool "Enable I/O event eventfd <sys/eventfd.h>"
  25. select RT_USING_POSIX_POLL
  26. default n
  27. if RT_USING_SMART
  28. config RT_USING_POSIX_EPOLL
  29. bool "Enable I/O Multiplexing epoll <sys/epoll.h>"
  30. select RT_USING_POSIX_POLL
  31. default n
  32. endif
  33. config RT_USING_POSIX_SOCKET
  34. bool "Enable BSD Socket I/O <sys/socket.h> <netdb.h>"
  35. select RT_USING_POSIX_SELECT
  36. select RT_USING_SAL
  37. default n
  38. config RT_USING_POSIX_TERMIOS
  39. bool "Enable Terminal I/O <termios.h>"
  40. select RT_USING_POSIX_STDIO
  41. default n
  42. config RT_USING_POSIX_AIO
  43. bool "Enable Asynchronous I/O <aio.h>"
  44. default n
  45. config RT_USING_POSIX_MMAN
  46. bool "Enable Memory-Mapped I/O <sys/mman.h>"
  47. default n
  48. endif
  49. config RT_USING_POSIX_DELAY
  50. select RT_USING_KTIME
  51. bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
  52. default n
  53. config RT_USING_POSIX_CLOCK
  54. bool "Enable clock/time APIs, clock_gettime()/clock_settime() etc"
  55. select RT_USING_POSIX_DELAY
  56. default n
  57. config RT_USING_POSIX_TIMER
  58. select RT_USING_KTIME
  59. select RT_USING_RESOURCE_ID
  60. bool "Enable timer APIs, timer_create()/timer_gettime() etc"
  61. default n
  62. config RT_USING_PTHREADS
  63. bool "Enable pthreads APIs"
  64. select RT_USING_POSIX_CLOCK
  65. default n
  66. if RT_USING_PTHREADS
  67. config PTHREAD_NUM_MAX
  68. int "Maximum number of pthreads"
  69. default 8
  70. endif
  71. config RT_USING_MODULE
  72. bool "Enable dynamic module APIs, dlopen()/dlsym()/dlclose() etc"
  73. default n
  74. if RT_USING_MODULE
  75. config RT_USING_CUSTOM_DLMODULE
  76. bool "Enable load dynamic module by custom"
  77. default n
  78. endif
  79. source "$RTT_DIR/components/libc/posix/ipc/Kconfig"
  80. endmenu