Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - spawn argv argument: (3 Items)
   
spawn argv argument  
In  QNX 6.4.1 the documentation for spawn() says:
"The value in argv[0] should represent the filename of the program being loaded, but can be NULL if no arguments are 
being passed."

In practice, on an x86 platform, if argv[0] is NULL the call always fails with EINVAL.  Presumably either the 
implementation or the documentation is incorrect.

Bill A.
Re: spawn argv argument  
Oops, I posted in the wrong forum.  Sorry.
RE: spawn argv argument  
Nevertheless, I'll answer your question. The docs are wrong. In Neutrino
6.5.0, the description of argv is:

A pointer to an argument vector. The value in argv[0] can't be NULL, and
should represent the filename of the program being loaded. The last
member of argv must be a NULL  pointer. The value of argv can't be NULL.



Steve Reid (stever@qnx.com)
Technical Editor
QNX Software Systems 
 

> -----Original Message-----
> From: Bill Adlam [mailto:community-noreply@qnx.com] 
> Sent: Wednesday, May 19, 2010 6:21 AM
> To: qnx4-community
> Subject: Re: spawn argv argument
> 
> Oops, I posted in the wrong forum.  Sorry.
> 
> 
> 
> _______________________________________________
> 
> QNX4 Community Support
> http://community.qnx.com/sf/go/post55102
> 
>