[Cbe-oss-dev] [PATCH] libspe: elfspe: set argv[argc] = NULL

Segher Boessenkool segher at kernel.crashing.org
Thu May 24 01:12:42 EST 2007


> The patch looks good to me. However, I wonder if we should fix another 
> related
> problem at the same time. The C99 standard also lists a common 
> extension as
>
> | In a hosted environment, the main function receives a third 
> argument, char *envp[],
> | that points to a null-terminated array of pointers to char, each of 
> which points to a string
> | that provides information about the environment for this execution 
> of the program
> | (5.1.2.2.1).

And don't forget about auxv[] :-)


Segher




More information about the cbe-oss-dev mailing list