Re: PATH_MAX true POSIX size?

From: Richard B. Gilbert (rgilbert88_at_comcast.net)
Date: 01/29/05


Date: Fri, 28 Jan 2005 21:46:47 -0500

Heny Townsend wrote:

> Heiner Steven wrote:
>
>> Heny Townsend wrote:
>>
>>> I notice that PATH_MAX on Solaris is at (2**n - 1):
>>>
>>> % getconf -a | grep PATH_MAX
>>> PATH_MAX: 1023
>>> _POSIX_PATH_MAX: 255
>>
>>
>>
>> I tried this with Solaris 8, and could not verify your results:
>>
>> $ getconf -a | grep PATH_MAX
>> PATH_MAX: 1024
>> _POSIX_PATH_MAX: 255
>
>
> Interesting. My results are from Solaris 9 and are quite verifiable:
>
> % uname -a
> SunOS xxxxx 5.9 Generic_117171-13 sun4u sparc SUNW,Ultra-5_10
> % getconf -a | grep PATH_MAX
> PATH_MAX: 1023
> _POSIX_PATH_MAX: 255
>
> But hang on, let me fire up my beta of Solaris 10 from a few months
> ago ...
>
> % getconf -a | grep PATH_MAX
> PATH_MAX: 1024
> _POSIX_PATH_MAX: 255
> _XOPEN_PATH_MAX: 1024
>
> Sheesh, they're all over the map on such a basic thing! And they still
> don't know that POSIX says _POSIX_PATH_MAX *must* be 256? Someone from
> Sun please restore my faith!
>
sunburn_$ uname -a
SunOS sunburn 5.9 Generic sun4u sparc SUNW,Ultra-5_10
sunburn_$ getconf -a | grep PATH_MAX
PATH_MAX: 1024
_POSIX_PATH_MAX: 255

I upgraded Sunburn from Solaris 8 a few months ago.

sunblok_$ uname -a
SunOS sunblok 5.8 Generic_117350-12 sun4u sparc SUNW,Ultra-5_10
sunblok_$ getconf -a | grep PATH_MAX
_POSIX_PATH_MAX: 255
PATH_MAX: 1024



Relevant Pages

  • Re: PATH_MAX true POSIX size?
    ... My results are from Solaris 9 and are quite verifiable: ... SunOS sunburn 5.9 Generic sun4u sparc SUNW,Ultra-5_10 ... sunburn_$ getconf -a | grep PATH_MAX ... sunblok_$ getconf -a | grep PATH_MAX ...
    (comp.unix.programmer)
  • Re: OT - Completely
    ... You are not allowed to load a new version of grep. ... version tar file won't just compile on my Solaris server, ... F'in Solaris! ... spits out each hit, while sed spits out a single hit for the ...
    (rec.motorcycles)
  • FIXED SUMMARY quicker than grep
    ... solaris, I tested the tools on debian. ... its simple 1 grep and four seds. ... Perl is a quick search with perl described in Unix Power tools. ...
    (SunManagers)
  • Re: grep in multiple binaries
    ... > I'm trying to find an expression in multiple binaries on a Solaris ... Solaris' grep does not work on arbitrary binary files. ...
    (comp.unix.solaris)
  • grep command or operator
    ... i want to use or operator in the grep command on solaris. ... following sytax worked properly with RHEL, ...
    (comp.unix.solaris)