inconsistent 'const' in exec{l,v}.

Mark Brown bmark@us.ibm.com
Thu Nov 17 22:54:00 GMT 2011


> i've noticed that manual describes variable number of 'const char*' 
> arguments for execl()
> and array of non-const arguments for execv(). is it a bug or an 
> intelligent design?
> imho it should be declared as 'const char* const argv[]'.

I'll refer you to the POSIX spec (online at 
http://pubs.opengroup.org/onlinepubs/9699919799/nframe.html ) for
how the exec* functions are specified.

-------------------
Mark Brown



More information about the Libc-help mailing list