Skip to content

Commit 3af6076

Browse files
committed
lib: posix: device_io: Add standard file descriptor sizes
Make sure we always allocate space for stdin, stdout and stderr file descriptors if Posix device io option is enabled. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent df0d4f4 commit 3af6076

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/posix/options/Kconfig.device_io

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ config POSIX_DEVICE_IO_ALIAS_WRITE
4343
help
4444
When selected via Kconfig, Zephyr will provide an alias for write() as _write().
4545

46+
# Allocate fd for stdin, stdout and stderr
47+
config ZVFS_OPEN_ADD_SIZE_POSIX_DEVICE_IO
48+
int
49+
default 3
50+
4651
endif # POSIX_DEVICE_IO
4752

4853
config POSIX_OPEN_MAX

0 commit comments

Comments
 (0)