This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Bug in builtins.def, the execve. don't use execle, use execel.


On 29 November 2007 00:12, J.C. Pizarro wrote:


> The more weird thing was "..." in middle of the C's stack from
> int execle(const char *path, const char *arg, ..., char * const envp[]);
> extracted from "man execle".

http://www.opengroup.org/onlinepubs/000095399/functions/exec.html

 int execle(const char *path, const char *arg0, ... /*,
       (char *)0, char *const envp[]*/);

  Note the comment markers.  The last two 'arguments' are not real args, it is
just a comment to tell you what the last two parameters in the varargs list
should be equal to.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]