mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-01 18:30:25 +08:00
075e04e344
* [add] the function realization of signal for posix. * [update] the posix support for armclang. * [add] the new macro "RT_USING_POSIX_TIMER". * [modify] select "RT_USING_SOFT_TIMER" when use posix'timer. * [bug] optimize the logic for the "time_xxx" functions. * [modify] use "RT_USING_POSIX_TIMER" to protect the macro definition. * [modify] error code when except happened. * [delete] the "environ" is useless at this time.
71 lines
1.8 KiB
Plaintext
71 lines
1.8 KiB
Plaintext
menu "POSIX (Portable Operating System Interface) layer"
|
|
|
|
config RT_USING_POSIX_FS
|
|
bool "Enable POSIX file system and I/O"
|
|
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
|
|
|
|
config RT_USING_POSIX_STDIO
|
|
bool "Enable standard I/O devices, e.g. STDOUT_FILENO"
|
|
select RT_USING_POSIX_DEVIO
|
|
default n
|
|
|
|
config RT_USING_POSIX_POLL
|
|
bool "Enable I/O Multiplexing poll() <poll.h>"
|
|
default n
|
|
|
|
config RT_USING_POSIX_SELECT
|
|
bool "Enable I/O Multiplexing select() <sys/select.h>"
|
|
select RT_USING_POSIX_POLL
|
|
default n
|
|
|
|
config RT_USING_POSIX_TERMIOS
|
|
bool "Enable Terminal I/O <termios.h>"
|
|
select RT_USING_POSIX_STDIO
|
|
default n
|
|
|
|
config RT_USING_POSIX_AIO
|
|
bool "Enable Asynchronous I/O <aio.h>"
|
|
default n
|
|
|
|
config RT_USING_POSIX_MMAN
|
|
bool "Enable Memory-Mapped I/O <sys/mman.h>"
|
|
default n
|
|
endif
|
|
|
|
config RT_USING_POSIX_DELAY
|
|
bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
|
|
default n
|
|
|
|
config RT_USING_POSIX_CLOCK
|
|
bool "Enable clock/time functions, clock_gettime()/clock_settime()/clock_getres() etc"
|
|
select RT_USING_POSIX_DELAY
|
|
default n
|
|
|
|
config RT_USING_POSIX_TIMER
|
|
select RT_USING_TIMER_SOFT
|
|
bool "Enable posix time functions, timer_create()/timer_gettime()/timer_settime() etc"
|
|
default n
|
|
|
|
config RT_USING_PTHREADS
|
|
bool "Enable pthreads APIs"
|
|
select RT_USING_POSIX_CLOCK
|
|
default n
|
|
|
|
if RT_USING_PTHREADS
|
|
config PTHREAD_NUM_MAX
|
|
int "Maximum number of pthreads"
|
|
default 8
|
|
endif
|
|
|
|
source "$RTT_DIR/components/libc/posix/ipc/Kconfig"
|
|
|
|
endmenu
|