On 2015-09-29 9:05 AM, Ehsan Akhgari wrote:
You'd be surprised.  :-)

Windows doesn't really have a notion of open file limits similar to
Unix.  File handles opened using _open can go up to a maximum of 2048.
fopen has a cap of 512 which can be raised up to 2048 using
_setmaxstdio().  *But* these are just CRT limits, and if you use Win32
directly, you can open up to 2^24 handles all at once
<https://technet.microsoft.com/en-us/library/bb896645.aspx>.  Since we
will never need to open that many file handles, you may very well be
able to use this approach.

Sorry, the link was meant to be: <http://blogs.technet.com/b/markrussinovich/archive/2009/09/29/3283844.aspx>

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to