Where did you saw the #define for OPEN_MAX?

Olga

On Thu, Mar 4, 2010 at 6:07 PM, Nicolas Williams
<Nicolas.Williams at sun.com> wrote:
> On Wed, Mar 03, 2010 at 01:02:40PM -0500, Glenn Fowler wrote:
>> On Wed, 3 Mar 2010 11:41:50 -0600 Nicolas Williams wrote:
>> > Is ksh93's OPEN_MAX (max open fildes) really 256 on Solaris?
>>
>> ksh builtin getconf(1) winds its way down to sysconf(SC_OPEN_MAX)
>> which is is sysconf(5) verified by
>>       getconf -t | grep OPEN_MAX
>> you can do this directly from the ksh builtin
>>       getconf 'SC(5)'
>> on my sol10.sun4 I get 256
>> same value (just as a double check) for
>>       ulimit -n
>
> There's also a #define for OPEN_MAX; that led me astray.
>
>> so I believe the question is
>>
>> Is Solaris's OPEN_MAX (max open fildes) really 256 on my machine?
>
> Sortof.  The soft limit is.
>
> Thanks,
>
> Nico
> --
> _______________________________________________
> ksh93-integration-discuss mailing list
> ksh93-integration-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanovska at gmail.com   \-`\-'----.
 `'-..-| /     Solaris/BSD//C/C++ programmer   \ |-..-'`
      /\/\                                     /\/\
      `--`                                      `--`

Reply via email to