OPEN_MAX is the constant that defines the maximum number of open files allowed for a single program.
OPEN_MAX
According to Beginning Linux Programming 4th
I suggest to use the magic of grep to find this constant on /usr/include:
grep
/usr/include
grep -rn --col OPEN_MAX /usr/include ... ... /usr/include/stdio.h:159: FOPEN_MAX Minimum number of files that can be open at once. ... ...
Hope it helps you