What is the value of OPEN_MAX on various platforms?
I know that the dynamic limit for the number of open file descriptors can be retrieved through sysconf (_SC_OPEN_MAX), getdtablesize (), or getrlimit (NOFILE, ...). Nonetheless, I want to know how large I can choose file descriptors in the simplest possible case.
When I look at <limits.h> on my system, I only ever get the value for that system.
OPEN_MAX is defined in
<limits.h>: