MCPcopy Create free account
hub / github.com/dillo-browser/dillo / get_open_max

Function get_open_max

dpid/main.c:211–221  ·  view source on GitHub ↗

* Get MAX open FD limit (yes, it's tricky --Jcid). */

Source from the content-addressed store, hash-verified

209 * Get MAX open FD limit (yes, it's tricky --Jcid).
210 */
211static int get_open_max(void)
212{
213#ifdef OPEN_MAX
214 return OPEN_MAX;
215#else
216 int ret = sysconf(_SC_OPEN_MAX);
217 if (ret < 0)
218 ret = 256;
219 return ret;
220#endif
221}
222
223/*! \todo
224 * \li Add a dpid_idle_timeout variable to dpidrc

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected