stdio in smbd

Dmitriy A. Yershov day at
Tue Feb 26 05:56:03 GMT 2002

On Mon, Feb 25, 2002 at 12:40:21PM -0600, Eric Dirks wrote:
>The stdio library on Sun architecture is limited to file descriptors 
>less than 256 and this
>limitation is being encountered with some regularity in our smbd 
I have the same problem on Solaris 8 x86.
If smbd opens more then 255 files, and then tries to open smbpasswd, or 
user name map, or logfile an error "Too many files open" occurs in 
fopen(), because the file descriptor number > 255.  
I will quote man stdio:
"Note that no more  than  255
files  may  be opened  using  fopen(), 
and only file descriptors 0
through 255 can be used in a stream". 
It is very strange that this problem was not solved yet even in 3.0 
and TNG versions. 

Dmitriy Yershov
day at

More information about the samba-technical mailing list