Tom Tromey wrote:
> >>>>> "Mark" == Mark Wielaard <[EMAIL PROTECTED]> writes:
> 
> Mark> It does look good to me. But in theory the usage of PATH_MAX
> Mark> PATH_MAX might be a problem.
> 
> Yeah, this famously is not defined in Hurd.
> 
> Do we really need a limit here?  Can't we just resize the buffer
> dynamically as needed?

It's possible, I suppose, but it seems over-complex when libgcj
manages to sidestep the PATH_MAX thing just fine with:

  #ifndef MAXPATHLEN
   #define MAXPATHLEN 4096
  #endif

Also, aren't malloc/realloc and friends slow calls?

Cheers,
Gary

Reply via email to