libc: unistd: lib_getrlimit: set cur/max value for RLIMIT_NOFILE to "OPEN_MAX".

Signed-off-by: Takeyoshi Kikuchi <kikuchi@centurysys.co.jp>
This commit is contained in:
Takeyoshi Kikuchi 2023-02-17 16:56:39 +09:00 committed by Xiang Xiao
parent c4fc414b09
commit 70ce4b4fc1
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ int getrlimit(int resource, FAR struct rlimit *rlp)
{ {
case RLIMIT_NOFILE: case RLIMIT_NOFILE:
{ {
rlp->rlim_cur = 128; rlp->rlim_cur = OPEN_MAX;
rlp->rlim_max = INT_MAX; /* dummy */ rlp->rlim_max = OPEN_MAX;
} }
break; break;