From 0009d1f3930007ca07952e29f64134f3ee233bd5 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sat, 30 Oct 2021 16:43:25 -0400 Subject: [PATCH] =?UTF-8?q?[posix]=E5=B0=86pthread=E6=94=B6=E7=BC=A9?= =?UTF-8?q?=E5=88=B0posix=E9=80=89=E9=A1=B9=E4=B9=8B=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E5=B0=86=E9=80=89=E5=AE=9ADFS=E5=90=8E=E7=94=B1DFS=E9=80=89?= =?UTF-8?q?=E5=AE=9APOSIX=20=E6=94=B9=E4=B8=BA=E9=80=89=E6=8B=A9posix?= =?UTF-8?q?=E5=90=8E=E9=80=89=E6=8B=A9dfs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/Kconfig | 51 +++++++++++++++++++---------------------- components/net/Kconfig | 4 +--- 2 files changed, 25 insertions(+), 30 deletions(-) diff --git a/components/libc/Kconfig b/components/libc/Kconfig index b2af15e841..a2b8747ef6 100644 --- a/components/libc/Kconfig +++ b/components/libc/Kconfig @@ -10,7 +10,6 @@ if RT_USING_LIBC config RT_LIBC_USING_FILEIO bool "Enable libc with file operation, eg.fopen/fwrite/fread/getchar" - select RT_USING_DFS select RT_USING_POSIX default n @@ -37,40 +36,38 @@ config RT_LIBC_DEFAULT_TIMEZONE range -12 12 default 8 -config RT_USING_PTHREADS - bool "Enable pthreads APIs" +config RT_USING_POSIX + bool "Enable basic POSIX layer, open/read/write/close etc" + select RT_USING_DFS + select RT_USING_DFS_DEVFS default n -if RT_USING_PTHREADS - config PTHREAD_NUM_MAX - int "Maximum number of pthreads" - default 8 -endif +if RT_USING_POSIX + config RT_USING_POSIX_MMAP + bool "Enable mmap() API" + default n -if RT_USING_DFS - config RT_USING_POSIX - bool "Enable POSIX layer, open/read/write/select etc" - select RT_USING_DFS_DEVFS - default y + config RT_USING_POSIX_TERMIOS + bool "Enable termios APIs" + default n - if RT_USING_POSIX - config RT_USING_POSIX_MMAP - bool "Enable mmap() API" - default n + config RT_USING_POSIX_GETLINE + bool "Enable getline()/getdelim() APIs" + default n - config RT_USING_POSIX_TERMIOS - bool "Enable termios APIs" - default n + config RT_USING_POSIX_AIO + bool "Enable AIO" + default n - config RT_USING_POSIX_GETLINE - bool "Enable getline()/getdelim() APIs" - default n + config RT_USING_PTHREADS + bool "Enable pthreads APIs" + default n - config RT_USING_POSIX_AIO - bool "Enable AIO" - default n + if RT_USING_PTHREADS + config PTHREAD_NUM_MAX + int "Maximum number of pthreads" + default 8 endif - endif endmenu diff --git a/components/net/Kconfig b/components/net/Kconfig index 0fede3eb90..4c49f4aa97 100644 --- a/components/net/Kconfig +++ b/components/net/Kconfig @@ -41,9 +41,7 @@ config RT_USING_SAL config SAL_USING_POSIX bool "Enable BSD socket operated by file system API" default n - select RT_USING_DFS - select RT_USING_LIBC - select RT_USING_POSIX + select RT_LIBC_USING_FILEIO help Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.