File handle limit in msvcrt

Nirmal Prasad nprasad@truept.com
Wed May 12 07:34:00 GMT 1999


hi,

i just happened to find this piece of information regarding file handle
limits in msvcrt.dll

"The C run-time libraries have a preset limit for the number of files that
can be open at any one time. The limit for applications that link with the
single-thread static library (LIBC.LIB) is 64 file handles or 20 file
streams. Applications that link with either the static or dynamic
multithread library (LIBCMT.LIB or MSVCRT.LIB and MSVCRT.DLL), have a limit
of 256 file handles or 40 file streams. Attempting to open more than the
maximum number of file handles or file streams causes program failure."

i know mingw uses the msvcrt.dll and hence should have the above limitation
but what about cygwin which uses glibc? Just curious ... i dont think there
is any operating system limitation may be some TLS issue from Microsoft or
some other stuff like that..

Regards

Nirmal Prasad R.




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list