[PATCH 2/3] posix: execvpe cleanup
Adhemerval Zanella
adhemerval.zanella@linaro.org
Mon Feb 29 17:45:00 GMT 2016
On 27-02-2016 20:17, Paul Eggert wrote:
> Adhemerval Zanella wrote:
>> according to POSIX [1], "argv[0] should point to a filename string that
>> is associated with the process being started by one of the exec functions"
>
> Sure, but in this context the word "should" is talking about (as POSIX puts it) "a feature or behavior that is recommended programming practice for optimum portability." A conforming application is not required to follow the recommendation, and in order to conform to POSIX glibc must support applications that do not follow the recommendation but otherwise conform.
>
> My source for the above quote:
>
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap01.html#tag_01_05_06
Fair enough. I also noted uglibc also accepts the empty argument list.
I will change it.
More information about the Libc-alpha
mailing list