scandir

scandir() is listed in the QNX6.2.1 docs as Legacy Unix, suggesting we
should not use it in new applications.

Is there a recommended replacement for this?

Thanks,
Robert Muil.

opendir()/readdir()/closedir()

Regards,
Barry

“Robert Muil” <r.muil@crcmining.com.au> wrote in message
news:cns82v$fj7$1@inn.qnx.com

scandir() is listed in the QNX6.2.1 docs as Legacy Unix, suggesting we
should not use it in new applications.

Is there a recommended replacement for this?

Thanks,
Robert Muil.

Thank you, but that isnt a replacement.

I’m looking for something with the sorting and filtering, and recursive
operation, of scandir().

Robert.

“OS Support” <os@qnx.com> wrote in message news:cnsqn4$hs6$1@nntp.qnx.com

opendir()/readdir()/closedir()

Regards,
Barry

“Robert Muil” <> r.muil@crcmining.com.au> > wrote in message
news:cns82v$fj7$> 1@inn.qnx.com> …
scandir() is listed in the QNX6.2.1 docs as Legacy Unix, suggesting we
should not use it in new applications.

Is there a recommended replacement for this?

Thanks,
Robert Muil.
\

“Robert Muil” <r.muil@crcmining.com.au> wrote in message
news:cnu2oh$sjh$1@inn.qnx.com

Thank you, but that isnt a replacement.

I’m looking for something with the sorting and filtering, and recursive
operation, of scandir().

You will have to do it yourself. Sorting: qsort; filtering: fnmatch;
recursive: can be handled by building a recursive function that uses
readdir().

Or look on the web for the source to scandir (most I’ve seen are built on
top of the function I listed above)

Robert.

“OS Support” <> os@qnx.com> > wrote in message
news:cnsqn4$hs6$> 1@nntp.qnx.com> …
opendir()/readdir()/closedir()

Regards,
Barry

“Robert Muil” <> r.muil@crcmining.com.au> > wrote in message
news:cns82v$fj7$> 1@inn.qnx.com> …
scandir() is listed in the QNX6.2.1 docs as Legacy Unix, suggesting we
should not use it in new applications.

Is there a recommended replacement for this?

Thanks,
Robert Muil.


\

Thanks Mario.

“Mario Charest” <nowheretobefound@8thdimension.com> wrote in message
news:cnu47u$bn$1@inn.qnx.com

“Robert Muil” <> r.muil@crcmining.com.au> > wrote in message
news:cnu2oh$sjh$> 1@inn.qnx.com> …
Thank you, but that isnt a replacement.

I’m looking for something with the sorting and filtering, and recursive
operation, of scandir().

You will have to do it yourself. Sorting: qsort; filtering: fnmatch;
recursive: can be handled by building a recursive function that uses
readdir().

Or look on the web for the source to scandir (most I’ve seen are built on
top of the function I listed above)


Robert.

“OS Support” <> os@qnx.com> > wrote in message
news:cnsqn4$hs6$> 1@nntp.qnx.com> …
opendir()/readdir()/closedir()

Regards,
Barry

“Robert Muil” <> r.muil@crcmining.com.au> > wrote in message
news:cns82v$fj7$> 1@inn.qnx.com> …
scandir() is listed in the QNX6.2.1 docs as Legacy Unix, suggesting we
should not use it in new applications.

Is there a recommended replacement for this?

Thanks,
Robert Muil.




\

Or you could just use scandir().

The classification is only saying from where it originates. The doc
makes no mention of it being superseded or that it shouldn’t be used.
The fact that it’s old means it’ll be a very common function on many
platforms.