fs: Map FD_SETSIZE to OPEN_MAX instead hardcoding 256

and change the default value of LIBC_OPEN_MAX to 256.
Here has more discussion:
https://www.mail-archive.com/dev@nuttx.apache.org/msg09095.html

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-02-19 10:40:54 +08:00
committed by Petro Karashchenko
parent 9902f39d92
commit fa3e0faffc
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ config LIBC_HOSTNAME
config LIBC_OPEN_MAX
int "OPEN_MAX for this device"
default 255
default 256
---help---
The maximum number of files that a process can have open
at any time. Must not be less than _POSIX_OPEN_MAX.