qnx_fullpath replacement?

What’s the current replacement for qnx_fullpath() from QNX 4 for QNX 6?
I have an arbitrary pathname on a command line and I want to get the
full path to the pathname. The pathname could have leading slashes,
or dot-dot, and have dot-dot within it, etc…

Thanks!
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Robert Krten <nospam84@parse.com> wrote:

What’s the current replacement for qnx_fullpath() from QNX 4 for QNX 6?
I have an arbitrary pathname on a command line and I want to get the
full path to the pathname. The pathname could have leading slashes,
or dot-dot, and have dot-dot within it, etc…

Never mind; google is your friend :slight_smile:

“realpath()”.

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Robert Krten <nospam84@parse.com> wrote:
: Never mind; google is your friend :slight_smile:

So is the Migration Guide:

qnx_fullpath()

QNX Neutrino equivalent:
realpath()

In migration library?
No

Use realpath() followed by a call to netmgr_ndtostr() to get the node
name.


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

Steve Reid <stever@qnx.com> wrote:

Robert Krten <> nospam84@parse.com> > wrote:
: Never mind; google is your friend > :slight_smile:

So is the Migration Guide:

Yes, but I’d have to find the Migration Guide. In this
case, google found it for me :slight_smile:

Cheers,
-RK

qnx_fullpath()

QNX Neutrino equivalent:
realpath()

In migration library?
No

Use realpath() followed by a call to netmgr_ndtostr() to get the node
name.


Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Steve Reid wrote:

Robert Krten <> nospam84@parse.com> > wrote:
: Never mind; google is your friend > :slight_smile:

So is the Migration Guide:

qnx_fullpath()

QNX Neutrino equivalent:
realpath()

In migration library?
No

Use realpath() followed by a call to netmgr_ndtostr() to get the node
name.

Unfortunately, google is a better friend (i.e. more accessible :slight_smile: I
regularly use google to find stuff in the qnx docs (that is either a sad
statement about the helpviewer; or a resounding endorsement of google -
take your pick :slight_smile:.

Unfortunately, google is a better friend (i.e. more accessible > :slight_smile: > I
regularly use google to find stuff in the qnx docs (that is either a sad
statement about the helpviewer; or a resounding endorsement of google -
take your pick > :slight_smile:> .

Thankfully helpviewer is 10x better in 6.2.1 for searches. I have
actually been able to give up my tendancy to grep in /usr/include. :wink:

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/