Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATH_MAX vs. _PC_PATH_MAX vs. POSIX (was Re: PATCH: tail-dropping in files module mkdir)
- X-seq: zsh-workers 12577
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>
- Subject: Re: PATH_MAX vs. _PC_PATH_MAX vs. POSIX (was Re: PATCH: tail-dropping in files module mkdir)
- Date: Wed, 9 Aug 2000 17:51:18 +0000
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <20000809102501.A24977@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000804204021.A7925@xxxxxxxx> <1000804070216.ZM23696@xxxxxxxxxxxxxxxxxxxxxxx> <20000804091955.A4368@xxxxxxxx> <000804111549.ZM28988@xxxxxxxxxxxxxxxxxxxxxxx> <20000804205227.B7925@xxxxxxxx> <1000805044825.ZM29238@xxxxxxxxxxxxxxxxxxxxxxx> <20000807140445.A15891@xxxxxxxx> <000807133944.ZM26497@xxxxxxxxxxxxxxxxxxxxxxx> <20000808074007.A7961@xxxxxxxx> <000808144749.ZM7078@xxxxxxxxxxxxxxxxxxxxxxx> <20000809102501.A24977@xxxxxxxx>
} > The definition of pathconf(dir, _PC_PATH_MAX) is inherently incompatible
} > with the definition of the PATH_MAX constant.
I just found my 1991 copy of ORA's POSIX Programmer's Guide. It says
specifically:
-----------------------
[...]
_PC_PATH_MAX The maximum lenght of a relative pathname when this direc-
tory is the working directory; that is, the number of
characters that may be appended to path and still have a
valid pathname.
[...]
Notes:
The value returned by _PC_PATH_MAX is not useful for allocating storage.
Files with paths longer than _PC_PATH_MAX may exist.
-----------------------
So I think pathconf() is of approximately zero use to zsh, at least for
_PC_PATH_MAX, and we should just rip zpathmax() out again. I apologize
for helping lead us down this rathole.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author