summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-12-07 02:18:58 -0500
committerBernard Xiong <[email protected]>2021-12-14 06:12:04 +0800
commit7ff976dab392a82f4307b58b36c6551612fa7e5f (patch)
tree4f9d82e3bca3e7267e7e59f4d9c44ed8df516ae9 /components/libc
parent3b007a7bbceb53e66fc3f9b76847fc21563389c7 (diff)
[posix] [pipe] add IPC for POSIX and add pipe for it
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/posix/Kconfig2
-rw-r--r--components/libc/posix/ipc/Kconfig17
2 files changed, 19 insertions, 0 deletions
diff --git a/components/libc/posix/Kconfig b/components/libc/posix/Kconfig
index db83269dd0..52b5fdc948 100644
--- a/components/libc/posix/Kconfig
+++ b/components/libc/posix/Kconfig
@@ -55,4 +55,6 @@ if RT_USING_PTHREADS
default 8
endif
+source "$RTT_DIR/components/libc/posix/ipc/Kconfig"
+
endmenu
diff --git a/components/libc/posix/ipc/Kconfig b/components/libc/posix/ipc/Kconfig
new file mode 100644
index 0000000000..f5ec6ad040
--- /dev/null
+++ b/components/libc/posix/ipc/Kconfig
@@ -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