Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - wordexp: (3 Items)
   
wordexp  
Why is this function in the library and in the documentation if it's not supported?  The documentation says it's not 
supported, but when porting code to Neutrino, you wouldn't expect an unsupported function to compile.  Also, the 
documentation says it should set errno, but it doesn't, it only returns -1.

Is there an alternative function I can use to do word expansions?

Thanks
Re: wordexp  
My guess is: To be at least partially POSIX-compliant... 

One might argue that a minimal implementation stating that it won't do anything is still a 'valid' implementation -- 
although from a practical point of view, I'd readily agree with you.

You're right about the docs: Not  errno  is set, but the error code is returned (the -1 you're seeing is ,in fact' 
WRDE_NOSYS).

- Thomas
RE: wordexp  
I'll create a PR to update the docs for wordexp().


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

> -----Original Message-----
> From: Thomas Haupt [mailto:community-noreply@qnx.com] 
> Sent: Thursday, January 07, 2010 4:34 PM
> To: ostech-core_os
> Subject: Re: wordexp
> 
> My guess is: To be at least partially POSIX-compliant... 
> 
> One might argue that a minimal implementation stating that it 
> won't do anything is still a 'valid' implementation -- 
> although from a practical point of view, I'd readily agree with you.
> 
> You're right about the docs: Not  errno  is set, but the 
> error code is returned (the -1 you're seeing is ,in fact' WRDE_NOSYS).
> 
> - Thomas
> 
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post44771
> 
>