[posix] [pipe] add IPC for POSIX and add pipe for it

This commit is contained in:
Meco Man
2021-12-07 02:18:58 -05:00
committed by Bernard Xiong
parent 3b007a7bbc
commit 7ff976dab3
5 changed files with 33 additions and 24 deletions

View File

@@ -55,4 +55,6 @@ if RT_USING_PTHREADS
default 8
endif
source "$RTT_DIR/components/libc/posix/ipc/Kconfig"
endmenu

View File

@@ -0,0 +1,17 @@
menu "Interprocess Communication (IPC)"
config RT_USING_POSIX_PIPE
bool "Enable pipe and FIFO"
select RT_USING_POSIX_FS
select RT_USING_POSIX_DEVIO
select RT_USING_POSIX_POLL
default n
config RT_USING_POSIX_PIPE_SIZE
int "Set pipe buffer size"
depends on RT_USING_POSIX_PIPE
default 512
comment "Socket is in the 'Network' category"
endmenu