Annotation of cci/sys/tahoe/Aget_byte.c, revision 1.1

1.1     ! root        1: #include       "../machine/alignment.h"
        !             2: int get_byte (infop, address)
        !             3: process_info   *infop;
        !             4: char           *address;
        !             5: /*
        !             6: /*     Fetch the byte at the given 'address' from memory.
        !             7: /*     Caveat: It's quite difficult to find a pte reference
        !             8: /*             fault.  So I took the easy way out and just signal
        !             9: /*             an illegal access.
        !            10: /*     
        !            11: /**************************************************/
        !            12: {
        !            13:        register long code;
        !            14: 
        !            15:        code = readable(infop, (long)address, 1);
        !            16:        if ( code == TRUE ) {
        !            17:                return(*address);
        !            18:        } else exception (infop, ILL_ACCESS, address, code);
        !            19: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.