2.9BSD/usr/man/cat2/fetchi.2

Compare this file to the similar file:
Show the results in this format:


FETCHI(2)           UNIX Programmer's Manual            FETCHI(2)

NAME
     fetchi - fetch from user I-space

SYNOPSIS
     fetchi(addr)
     int *addr;

DESCRIPTION
     _F_e_t_c_h_i fetches the word at _a_d_d_r from user I-space.  This
     system call is required on machines with separate instruc-
     tion and data spaces because the _m_f_p_i instruction reads from
     D-space if the current and previous modes in the program
     status word are both user.

ERRORS
     _F_e_t_c_h_i will fail if:

     [EFAULT]            _A_d_d_r points to an address not in the
                         process's allocated instruction space.

ASSEMBLER
     (local = 58., fetchi = 8.)
     (addr in r0)
     sys local; 9f
     . . .
     .data
     9: sys fetchi

BUGS
     This is a kludge and exists only to circumvent an alleged
     security feature on some DEC processors.

Printed 5/21/83                                                 1