I found that each /proc/PID/ directory has a “as” file.
Though Its’ permission is readable, I can’t read it.
Actually I can open a “as” file, but it doesn’t show anything though its’
size is not zero.
What information does it have?
And How can I access those files to get some information about proceses?
It seems that there are some differences between QNX and Linux Proc
filesystem.
Where can I get information about QNX Proc filesystem?
I found that each /proc/PID/ directory has a “as” file.
Though Its’ permission is readable, I can’t read it.
Actually I can open a “as” file, but it doesn’t show anything though its’
size is not zero.
What information does it have?
It represents the address space of the process.
And How can I access those files to get some information about proceses?
lseek() to a memory location that is valid in the process, then you
can read from that memory.
I found that each /proc/PID/ directory has a “as” file.
Though Its’ permission is readable, I can’t read it.
Actually I can open a “as” file, but it doesn’t show anything though its’
size is not zero.
What information does it have?
DG > It represents the address space of the process.
And How can I access those files to get some information about proceses?
DG > lseek() to a memory location that is valid in the process, then you
DG > can read from that memory.
DG > -David
DG > –
DG > QNX Training Services
DG > http://www.qnx.com/support/training/
DG > Please followup in this newsgroup if you have further questions.
DG > It represents the address space of the process.
And How can I access those files to get some information about proceses?
DG > lseek() to a memory location that is valid in the process, then you
DG > can read from that memory.
DG > -David
DG > –
DG > QNX Training Services
DG > > http://www.qnx.com/support/training/
DG > Please followup in this newsgroup if you have further questions.
Maybe, but it would make this only usable by root.
What would be best would be to check the uid of the reading
process against the uid of the process whose memory you are
trying to read from /proc/pid/as and verify based on that.
In article <b89bls$jgk$> 2@inn.qnx.com> >, > qtps@earthlink.net > says…
Hey Mike, where is the “.ua” domain in your e-mail? I haven’t seen
that before.
.ua? It’s Ukraine. Malva JSC (malva.com.ua) is in Kiev >
Eduard.
In article <b89bls$jgk$> 2@inn.qnx.com> >, > qtps@earthlink.net > says…
Hey Mike, where is the “.ua” domain in your e-mail? I haven’t seen
that before.
.ua? It’s Ukraine. Malva JSC (malva.com.ua) is in Kiev >
Eduard.