Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - O_DIRECT giving error while compiling the source code: (3 Items)
   
O_DIRECT giving error while compiling the source code  
HI QNX,

I am compiling one of the source code which having OPEN( ) function call having O_DIRECT to open the file.

But i am getting error while compiling that O_DIRECT is  not declared.

Is there any alternate to use to open the file which does same functionality as O_DIRECT.

Thanks in advance 

Thanks & Regards
Janardhan Reddy
Re: O_DIRECT giving error while compiling the source code  
I think O_DIRECT is not supported under QNX. Since it is a performance optimization, you could simply do something like

#ifnef O_DIRECT
#define O_DIRECT   0
#endif

Regards,
Albrecht
Re: O_DIRECT giving error while compiling the source code  
HI  Albrecht Uhlmann,

Thanks for your help...

I am able to built code..

Thanks & Regards
Janardhan Reddy