This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

File handle limit in msvcrt


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]