05.06.2014 Views

QNX Neutrino Programmer's Guide [6.5.0 SP1] - QNX Software ...

QNX Neutrino Programmer's Guide [6.5.0 SP1] - QNX Software ...

QNX Neutrino Programmer's Guide [6.5.0 SP1] - QNX Software ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

© 2012, <strong>QNX</strong> <strong>Software</strong> Systems Limited Making your code more portable<br />

• <br />

• <br />

• <br />

• <br />

• <br />

• <br />

The following ANSI and POSIX header files are affected by the _<strong>QNX</strong>_SOURCE<br />

feature-test macro:<br />

Header file<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Type<br />

ANSI<br />

POSIX<br />

ANSI<br />

ANSI<br />

ANSI<br />

extension to POSIX<br />

ANSI<br />

ANSI<br />

POSIX<br />

ANSI<br />

ANSI<br />

ANSI<br />

POSIX<br />

ANSI<br />

POSIX<br />

POSIX<br />

You can also set the POSIXLY_CORRECT environment variable to 1. This<br />

environment variable is used by Unix-style operating systems to alter behavior to<br />

comply with POSIX where it’s different from the OS’s default behavior.<br />

For example, if POSIXLY_CORRECT is set, functions that check the length of a<br />

pathname do so before removing any redundant . and .. components. If<br />

POSIXLY_CORRECT isn’t set, the functions check the length after removing any<br />

redundant components.<br />

June 14, 2012 Chapter 1 • Compiling and Debugging 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!