st_status variable not available in QNX6

In QNX4 we could do this:
if (d_stat.st_status & _FILE_USED)

In QNX6 the st_status variable is gone,
what are we suppose to use now, advisory locks?
Is there any other way to port the line about, without
using advisory locks?

Mike Konstan <mk@telecast.dk> wrote:

In QNX4 we could do this:
if (d_stat.st_status & _FILE_USED)

In QNX6 the st_status variable is gone,
what are we suppose to use now, advisory locks?
Is there any other way to port the line about, without
using advisory locks?

That flag has NOTHING to do with file locking.

Check the docs for the QNX4 readdir() function – this is used
to flag whether or not stat information has been returned with the
directory entry (dirent) information.

This may & can happen under QNX6 as well, but it is handled differently.
Again, check the docs for the readdir() function – looking at the
DEXTRA_FIRST() macro, extra->d_type flag.

-David

QNX Training Services
dagibbs@qnx.com