Commit 2d7da9a
open: replace getdtablesize with getrlimit
The test currently uses getdtablesize() to determine the maximum
number of file descriptors for the process. This interface is
considered legacy and is not specified by POSIX.
Use getrlimit() instead, which provides a well-defined
and portable way to obtain the per-process file descriptor limit.
Link: https://lore.kernel.org/ltp/20260219141532.6513-2-always.starving0@gmail.com/
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Jinseok Kim <always.starving0@gmail.com>1 parent 2a7242a commit 2d7da9a
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
0 commit comments