96 lines
2.1 KiB
Plaintext
Raw Normal View History

menu "POSIX layer and C standard library"
2017-01-31 11:54:12 +08:00
config RT_USING_LIBC
2017-10-13 12:44:54 +08:00
bool "Enable libc APIs from toolchain"
2021-11-13 00:17:16 -05:00
default n
2017-01-31 11:54:12 +08:00
2021-10-26 00:51:32 -04:00
if RT_USING_LIBC
config RT_LIBC_USING_TIME
default y
config RT_LIBC_USING_FILEIO
2021-11-28 22:30:35 -05:00
bool "Enable libc with file operation, eg.fopen/fwrite/fread/getchar/STDIO"
select RT_USING_POSIX_FS
select RT_USING_POSIX_DEVIO
2021-10-26 00:51:32 -04:00
default n
config RT_USING_MODULE
bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
default n
if RT_USING_MODULE
config RT_USING_CUSTOM_DLMODULE
bool "Enable load dynamic module by custom"
default n
endif
endif
if RT_USING_LIBC != y
config RT_LIBC_USING_TIME
bool "Enable time functions without compiler's libc"
default y
endif
config RT_LIBC_DEFAULT_TIMEZONE
depends on (RT_LIBC_USING_TIME || RT_USING_LIBC)
int "Set the default time zone (UTC+)"
range -12 12
default 8
2021-11-28 22:30:35 -05:00
config RT_USING_POSIX_FS
bool "Enable POSIX file system, open()/read()/write()/close() etc"
select RT_USING_DFS
2021-11-28 22:30:35 -05:00
select DFS_USING_POSIX
2017-10-13 12:44:54 +08:00
default n
2021-11-28 22:30:35 -05:00
if RT_USING_POSIX_FS
config RT_USING_POSIX_DEVIO
bool "Enable devices as file descriptors"
2021-11-07 21:40:19 -05:00
select RT_USING_DFS_DEVFS
default n
config RT_USING_POSIX_POLL
bool "Enable poll()"
default n
config RT_USING_POSIX_SELECT
bool "Enable select()"
select RT_USING_POSIX_POLL
default n
2021-11-28 22:30:35 -05:00
endif
2017-10-13 12:44:54 +08:00
2021-11-28 22:30:35 -05:00
config RT_USING_POSIX_DELAY
bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
default n
2021-11-07 21:03:16 -05:00
2021-11-28 22:30:35 -05:00
config RT_USING_POSIX_GETLINE
bool "Enable getline()/getdelim()"
select RT_USING_LIBC
select RT_LIBC_USING_FILEIO
default n
2017-10-13 12:44:54 +08:00
2021-11-28 22:30:35 -05:00
config RT_USING_POSIX_MMAP
bool "Enable mmap()"
select RT_USING_POSIX_FS
default n
2021-11-28 22:30:35 -05:00
config RT_USING_POSIX_TERMIOS
bool "Enable termios APIs"
default n
2021-11-28 22:30:35 -05:00
config RT_USING_POSIX_AIO
bool "Enable AIO APIs"
default n
2021-11-08 21:14:01 -05:00
config RT_USING_PTHREADS
bool "Enable pthreads APIs"
default n
2018-07-18 11:05:39 +08:00
2021-11-08 21:14:01 -05:00
if RT_USING_PTHREADS
config PTHREAD_NUM_MAX
int "Maximum number of pthreads"
default 8
endif
2017-01-31 11:54:12 +08:00
endmenu