Re: PATH_MAX true POSIX size?

From: Heny Townsend (henry.townsend_at_not.here)
Date: 01/29/05


Date: Fri, 28 Jan 2005 20:25:57 -0500

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!

-- 
Henry Townsend


Relevant Pages

  • Re: PATH_MAX true POSIX size?
    ... > Heny Townsend wrote: ... My results are from Solaris 9 and are quite verifiable: ... % getconf -a | grep PATH_MAX ...
    (comp.unix.solaris)
  • Re: pkill
    ... Oscar del Rio wrote: ... >Heny Townsend wrote: ... On Solaris 9, if you count all files (including symlinks), ...
    (comp.unix.solaris)
  • 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)