>Daniel, thank you very much for this helpful information.
>
>I really thought that files under /proc are files that can be 
>accessed like normal files - OK, mmap won't work, but that
>is not a big deal. Am I the only one that considers
>this to be a bug? This is really weird behavior. Looks like I am 
>forced to do a workaround....

In order to write a program which examines the status of processes, you
will need to run a problem in "native" kernel bitness.

(We can't condense the status of a 64 bit process in the status file
compatible with a 32 bit program)

/bin/ls -l /proc/1/status ; /usr/bin/sparcv9/ls -l /proc/1/status
-r--------   1 root     root        1232 Sep 15 10:49 /proc/1/status
-r--------   1 root     root        1776 Sep 15 10:49 /proc/1/status

see how 32 bit processes are present with different "status" files?


Casper
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to