Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Im getting an error, “Too many open files\. How can I increase the allowable number of simultaneously open files?

0
Posted

Im getting an error, “Too many open files\. How can I increase the allowable number of simultaneously open files?

0

There are typically at least two resource limitations on the number of simultaneously open files: the number of low-level “file descriptors” or “file handles” available in the operating system, and the number of FILE structures available in the stdio library. Both must be sufficient. Under MS-DOS systems, you can control the number of operating system file handles with a line in CONFIG.SYS. Some compilers come with instructions (and perhaps a source file or two) for increasing the number of stdio FILE structures. Additional links: further reading comp.lang.c FAQ list ยท Question 19.19 Q: How can I find out how much free space is available on disk? A: There is no portable way. Under some versions of Unix you can call statfs. Under MS-DOS, use interrupt 0x21 subfunction 0x36, or perhaps a routine such as diskfree. Another possibility is to use popen (see question 19.30) to invoke and read the output of a “disk free” command (df on Unix).

0

There are typically at least two resource limitations on the number of simultaneously open files: the number of low-level “file descriptors” or “file handles” available in the operating system, and the number of FILE structures available in the stdio library. Both must be sufficient. Under MS-DOS systems, you can control the number of operating system file handles with a line in CONFIG.SYS. Some compilers come with instructions (and perhaps a source file or two) for increasing the number of stdio FILE structures.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.