2021-12-01 03:50:10 +08:00
|
|
|
menu "POSIX (Portable Operating System Interface) layer"
|
|
|
|
|
|
|
|
config RT_USING_POSIX_FS
|
2021-12-06 07:52:59 +08:00
|
|
|
bool "Enable POSIX file system and I/O"
|
2021-12-01 03:50:10 +08:00
|
|
|
select RT_USING_DFS
|
|
|
|
select DFS_USING_POSIX
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_USING_POSIX_FS
|
|
|
|
config RT_USING_POSIX_DEVIO
|
|
|
|
bool "Enable devices as file descriptors"
|
|
|
|
select RT_USING_DFS_DEVFS
|
|
|
|
default n
|
|
|
|
|
2022-01-03 06:51:44 +08:00
|
|
|
config RT_USING_POSIX_STDIO
|
|
|
|
bool "Enable standard I/O devices, e.g. STDOUT_FILENO"
|
|
|
|
select RT_USING_POSIX_DEVIO
|
|
|
|
default n
|
|
|
|
|
2021-12-01 03:50:10 +08:00
|
|
|
config RT_USING_POSIX_POLL
|
2021-12-06 07:52:59 +08:00
|
|
|
bool "Enable I/O Multiplexing poll() <poll.h>"
|
2023-12-21 01:00:26 +08:00
|
|
|
default y if RT_USING_SMART
|
2021-12-01 03:50:10 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_POSIX_SELECT
|
2021-12-06 07:52:59 +08:00
|
|
|
bool "Enable I/O Multiplexing select() <sys/select.h>"
|
2021-12-01 03:50:10 +08:00
|
|
|
select RT_USING_POSIX_POLL
|
2023-12-21 01:00:26 +08:00
|
|
|
default y if RT_USING_SMART
|
2021-12-01 03:50:10 +08:00
|
|
|
default n
|
2024-03-28 23:42:56 +08:00
|
|
|
|
2023-07-27 17:24:56 +08:00
|
|
|
config RT_USING_POSIX_EVENTFD
|
|
|
|
bool "Enable I/O event eventfd <sys/eventfd.h>"
|
|
|
|
select RT_USING_POSIX_POLL
|
2023-12-21 01:00:26 +08:00
|
|
|
default y if RT_USING_SMART
|
2023-07-27 17:24:56 +08:00
|
|
|
default n
|
2021-12-06 07:52:59 +08:00
|
|
|
|
2023-08-01 17:15:41 +08:00
|
|
|
if RT_USING_SMART
|
|
|
|
config RT_USING_POSIX_EPOLL
|
|
|
|
bool "Enable I/O Multiplexing epoll <sys/epoll.h>"
|
|
|
|
select RT_USING_POSIX_POLL
|
2023-12-21 01:00:26 +08:00
|
|
|
default y
|
2023-09-20 07:54:11 +08:00
|
|
|
|
|
|
|
config RT_USING_POSIX_SIGNALFD
|
|
|
|
bool "Enable Signalfd <sys/signalfd.h>"
|
|
|
|
select RT_USING_POSIX_POLL
|
2023-12-21 01:00:26 +08:00
|
|
|
default y
|
2023-09-20 07:54:11 +08:00
|
|
|
|
|
|
|
if RT_USING_POSIX_SIGNALFD
|
|
|
|
config RT_SIGNALFD_MAX_NUM
|
|
|
|
int "signaled The maximum number of concurrent firing signals"
|
|
|
|
range 1 20
|
|
|
|
default 10
|
|
|
|
endif
|
2023-08-01 17:15:41 +08:00
|
|
|
endif
|
|
|
|
|
2023-09-23 14:18:29 +08:00
|
|
|
config RT_USING_POSIX_TIMERFD
|
|
|
|
bool "Enable I/O timerfd <sys/timerfd.h>"
|
2023-12-21 01:00:26 +08:00
|
|
|
default y if RT_USING_SMART
|
2023-09-23 14:18:29 +08:00
|
|
|
default n
|
|
|
|
|
2022-03-29 13:39:55 +08:00
|
|
|
config RT_USING_POSIX_SOCKET
|
|
|
|
bool "Enable BSD Socket I/O <sys/socket.h> <netdb.h>"
|
|
|
|
select RT_USING_POSIX_SELECT
|
|
|
|
select RT_USING_SAL
|
|
|
|
default n
|
|
|
|
|
2021-12-06 07:52:59 +08:00
|
|
|
config RT_USING_POSIX_TERMIOS
|
|
|
|
bool "Enable Terminal I/O <termios.h>"
|
2022-01-03 06:51:44 +08:00
|
|
|
select RT_USING_POSIX_STDIO
|
2021-12-06 07:52:59 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_POSIX_AIO
|
|
|
|
bool "Enable Asynchronous I/O <aio.h>"
|
|
|
|
default n
|
|
|
|
|
2021-12-08 04:47:00 +08:00
|
|
|
config RT_USING_POSIX_MMAN
|
2021-12-06 07:52:59 +08:00
|
|
|
bool "Enable Memory-Mapped I/O <sys/mman.h>"
|
|
|
|
default n
|
2021-12-01 03:50:10 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
config RT_USING_POSIX_DELAY
|
2023-07-20 14:17:45 +08:00
|
|
|
select RT_USING_KTIME
|
2021-12-01 03:50:10 +08:00
|
|
|
bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
|
|
|
|
default n
|
|
|
|
|
2021-12-17 15:34:17 +08:00
|
|
|
config RT_USING_POSIX_CLOCK
|
2022-03-25 23:07:18 +08:00
|
|
|
bool "Enable clock/time APIs, clock_gettime()/clock_settime() etc"
|
2021-12-17 15:34:17 +08:00
|
|
|
select RT_USING_POSIX_DELAY
|
|
|
|
default n
|
|
|
|
|
2022-01-20 20:53:47 +08:00
|
|
|
config RT_USING_POSIX_TIMER
|
2023-07-20 14:17:45 +08:00
|
|
|
select RT_USING_KTIME
|
2023-06-29 00:01:51 +08:00
|
|
|
select RT_USING_RESOURCE_ID
|
2022-03-25 23:07:18 +08:00
|
|
|
bool "Enable timer APIs, timer_create()/timer_gettime() etc"
|
2022-01-20 20:53:47 +08:00
|
|
|
default n
|
|
|
|
|
2021-12-01 03:50:10 +08:00
|
|
|
config RT_USING_PTHREADS
|
|
|
|
bool "Enable pthreads APIs"
|
2021-12-17 15:34:17 +08:00
|
|
|
select RT_USING_POSIX_CLOCK
|
2021-12-01 03:50:10 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_USING_PTHREADS
|
|
|
|
config PTHREAD_NUM_MAX
|
|
|
|
int "Maximum number of pthreads"
|
|
|
|
default 8
|
|
|
|
endif
|
|
|
|
|
2022-01-20 20:55:31 +08:00
|
|
|
config RT_USING_MODULE
|
2022-03-25 23:07:18 +08:00
|
|
|
bool "Enable dynamic module APIs, dlopen()/dlsym()/dlclose() etc"
|
2022-01-20 20:55:31 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_USING_MODULE
|
|
|
|
config RT_USING_CUSTOM_DLMODULE
|
|
|
|
bool "Enable load dynamic module by custom"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2024-06-11 12:13:25 +08:00
|
|
|
rsource "ipc/Kconfig"
|
2021-12-07 15:18:58 +08:00
|
|
|
|
2021-12-01 03:50:10 +08:00
|
|
|
endmenu
|