Kconfig 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_POLL
  13. bool "Enable I/O Multiplexing poll() <poll.h>"
  14. default n
  15. config RT_USING_POSIX_SELECT
  16. bool "Enable I/O Multiplexing select() <sys/select.h>"
  17. select RT_USING_POSIX_POLL
  18. default n
  19. config RT_USING_POSIX_TERMIOS
  20. bool "Enable Terminal I/O <termios.h>"
  21. select RT_USING_POSIX_DEVIO
  22. default n
  23. config RT_USING_POSIX_AIO
  24. bool "Enable Asynchronous I/O <aio.h>"
  25. default n
  26. config RT_USING_POSIX_MMAN
  27. bool "Enable Memory-Mapped I/O <sys/mman.h>"
  28. default n
  29. endif
  30. config RT_USING_POSIX_DELAY
  31. bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
  32. default n
  33. config RT_USING_POSIX_CLOCK
  34. bool "Enable clock/time functions, clock_gettime()/clock_settime()/clock_getres() etc"
  35. select RT_LIBC_USING_TIME if !RT_USING_LIBC
  36. select RT_USING_POSIX_DELAY
  37. default n
  38. config RT_USING_POSIX_GETLINE
  39. bool "Enable getline()/getdelim()"
  40. select RT_USING_LIBC
  41. select RT_LIBC_USING_FILEIO
  42. default n
  43. config RT_USING_PTHREADS
  44. bool "Enable pthreads APIs"
  45. select RT_USING_POSIX_CLOCK
  46. default n
  47. if RT_USING_PTHREADS
  48. config PTHREAD_NUM_MAX
  49. int "Maximum number of pthreads"
  50. default 8
  51. endif
  52. source "$RTT_DIR/components/libc/posix/ipc/Kconfig"
  53. endmenu