File descriptor limits

A 32-bit binary which uses the fopen call will have a limit of 256 open file descriptors at any one time. The open call does not have this limit, and is only limited by the environment setting for the number of file descriptors. Hence it is often appropriate to use open rather than fopen.

More details can be found here.

Comments:

Except that in OpenSolaris this problem is [mostly] gone. See this flag day message and its references.

Posted by Nico on December 31, 2006 at 07:30 AM PST #

Darryl, In case you didn't know, Our Engineer Giri has fixed the fopen limitation for Nevada and it is planned to be dispatched to Solaris later. Here is RFE: http://bugs.opensolaris.org/view_bug.do?bug_id=1085341 Here is man doc: http://docs.sun.com/app/docs/doc/819-2252/6n4i8rtpo?a=view Happy new year! Adam

Posted by adam on December 31, 2006 at 09:53 AM PST #

Post a Comment:
Comments are closed for this entry.
About

Darryl Gove is a senior engineer in the Solaris Studio team, working on optimising applications and benchmarks for current and future processors. He is also the author of the books:
Multicore Application Programming
Solaris Application Programming
The Developer's Edge

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
5
6
8
9
10
12
13
14
15
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks
The Developer's Edge
Solaris Application Programming
Publications
Webcasts
Presentations
OpenSPARC Book
Multicore Application Programming
Docs