Re: [PATCH iproute2] Use PATH_MAX instead of MAXPATHLEN

Florian Fainelli
2015-04-28T22:47:07Z

On 27/04/15 09:13, Stephen Hemminger wrote:
> On Sat, 25 Apr 2015 22:33:28 +0200
> Felix Janda <felix.janda@posteo.de> wrote:
>
>> They are equivalent but the former is more common. PATH_MAX is
>> specified by POSIX and needs <limits.h> while MAXPATHLEN has BSD
>> origin and needs <sys/param.h>.
>>
>> PATH_MAX has already been in use in misc/lnstat.h.
>>
>> Signed-off-by: Felix Janda <felix.janda@posteo.de>
>
> Iproute2 is intended for use on Linux.
> It makes more sense to align with Posix than using leftover
> BSD stuff. Therefore I don't see any point in doing this.

My reading from Felix's commit message is that he is attempting to do
exactly that: conform to POSIX rather than BSD, which seems to be the
direction you are also suggesting here.
--
Florian