Im getting an error, “Too many open files\. How can I increase the allowable number of simultaneously open files?
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).
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
- Where do I make changes on the webserver to increase the number of servlet sessions that are simultaneously allowed on the server?
- How do I correct the Outlook 2007 error Not downloading Offline address book files. A server (URL) could not be located?
- Im getting an error, ``Too many open files\. How can I increase the allowable number of simultaneously open files?