>    Our problem is how to generalise this procedure to other architectures 
>  and in particular how to get the pag values of processes under hpux, solaris
>  and alpha/osf.

You could do something like:

get a pag to find out current pag numbers.

for (i = starting pag val; i < current val; i++) {
        set pag to i;
        check for tokens;
        do whatever;
}

I did something like this a couple years ago but I didn't check for
what the current val was.  I found that I stopped getting any tokens
printed out pretty quickly, and I would just kill the prog.  I wasn't
using it for a daemon though.

starting pag val is ('A' << 24)

-Scott

Reply via email to