Getting process info using Dincom compiler

Hi,

A prior post entitled “getting process info” by using the qnx_psinfo()
function looks like exactly what I need. However, I am using the Dincom,
(not Watcom) compiler, and the qnx_psinfo function (amongst others) appears
to be missing. Does ayone know if it is included with the Dincom compiler
and I just can’t find it, or if there is another replacement function for
getting the same information?

Thanks in advnace

Ian

Ian Milstead <ian@chi.navtech.com> wrote:
: Hi,

: A prior post entitled “getting process info” by using the qnx_psinfo()
: function looks like exactly what I need. However, I am using the Dincom,
: (not Watcom) compiler, and the qnx_psinfo function (amongst others) appears
: to be missing. Does ayone know if it is included with the Dincom compiler
: and I just can’t find it, or if there is another replacement function for
: getting the same information?

It sounds as if you’re using QNX 6, which doesn’t support qnx_psinfo(). This
newsgroup is for QNX 4, which does support it.


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

No, I’m using QNX 4, but thanks for the confirmation that QNX 6, as it
stands, does not suppport it. The company I have just been hired to work for
has recently moved from WATCOM compiler to DIMCOM, but have remained on QNX
4.

I’m new to QNX, but I would imagine that the system calls / OS traps, at
least in assembly language still exist in QNX 6, it’s just that the C
libraries haven’t been written or made available. If all other avenues fail,
is the assembly language interface puplished for this call (for SH4 or
x86) - I haven’t been able to find any reference to this interface in the
docs?

Ian

“Steve Reid” <stever@qnx.com> wrote in message
news:9m5tu8$d9f$1@nntp.qnx.com

Ian Milstead <> ian@chi.navtech.com> > wrote:
: Hi,

: A prior post entitled “getting process info” by using the qnx_psinfo()
: function looks like exactly what I need. However, I am using the Dincom,
: (not Watcom) compiler, and the qnx_psinfo function (amongst others)
appears
: to be missing. Does ayone know if it is included with the Dincom
compiler
: and I just can’t find it, or if there is another replacement function
for
: getting the same information?

It sounds as if you’re using QNX 6, which doesn’t support qnx_psinfo().
This
newsgroup is for QNX 4, which does support it.


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

“Ian Milstead” <ian@chi.navtech.com> wrote in message
news:9m66ji$69u$1@inn.qnx.com

No, I’m using QNX 4, but thanks for the confirmation that QNX 6, as it
stands, does not suppport it. The company I have just been hired to work
for
has recently moved from WATCOM compiler to DIMCOM, but have remained on
QNX
4.

The only compiler available for QNX4 is WATCOM.

What you are probably talking about is Dinkum (not DIMCOM).
Dinkum is not a compiler but instead is C/C++ Library. To my knowledge
a QNX4 version of those library does not exists. Porting the library
(since it’s possible to buy the source) is possible but requires
details knowledge of the OS.

For example qnx_psinfo() is a QNX4 specific fonction and is not
covered in the Dinkum library.

I’m new to QNX, but I would imagine that the system calls / OS traps, at
least in assembly language still exist in QNX 6, it’s just that the C
libraries haven’t been written or made available. If all other avenues
fail,
is the assembly language interface puplished for this call (for SH4 or
x86) - I haven’t been able to find any reference to this interface in the
docs?

Ian

“Steve Reid” <> stever@qnx.com> > wrote in message
news:9m5tu8$d9f$> 1@nntp.qnx.com> …
Ian Milstead <> ian@chi.navtech.com> > wrote:
: Hi,

: A prior post entitled “getting process info” by using the qnx_psinfo()
: function looks like exactly what I need. However, I am using the
Dincom,
: (not Watcom) compiler, and the qnx_psinfo function (amongst others)
appears
: to be missing. Does ayone know if it is included with the Dincom
compiler
: and I just can’t find it, or if there is another replacement function
for
: getting the same information?

It sounds as if you’re using QNX 6, which doesn’t support qnx_psinfo().
This
newsgroup is for QNX 4, which does support it.


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

Mario Charest <mcharest@remzinformatic.com> wrote:


The only compiler available for QNX4 is WATCOM.

What you are probably talking about is Dinkum (not DIMCOM).
Dinkum is not a compiler but instead is C/C++ Library. To my knowledge
a QNX4 version of those library does not exists. Porting the library
(since it’s possible to buy the source) is possible but requires
details knowledge of the OS.

For example qnx_psinfo() is a QNX4 specific fonction and is not
covered in the Dinkum library.

But, much of what it did under QNX4 can be done under QNX6 by
accessing the /proc "file"system.

-David

QNX Training Services
dagibbs@qnx.com

Ian Milstead <ian@chi.navtech.com> wrote:

No, I’m using QNX 4, but thanks for the confirmation that QNX 6, as it
stands, does not suppport it. The company I have just been hired to work for
has recently moved from WATCOM compiler to DIMCOM, but have remained on QNX
4.

This sounds very unusual/unlikely.

Has DIMCOM actually built a compiler that will build QNX4 executables?
They won’t be able to interact with QNX4 without implementing the kernel
calls in some way/shape/form.

Or does the DIMCOM compiler use the Watcom/QNX (link) libraries? (I think
that is what the gcc port for QNX4 did.)

If so, qnx_psinfo() should be callable.

Is it possible you are using a QNX4 host (development side) with a
QNX 6 target (where you run the programs)?

-David

QNX Training Services
dagibbs@qnx.com