bsd man page for fetchi

Query: fetchi

OS: bsd

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

FETCHI(2)							System Calls Manual							 FETCHI(2)

NAME
fetchi - fetch from user instruction space (2BSD)
SYNOPSIS
fetchi(addr) int *addr;
DESCRIPTION
Fetchi fetches the word at addr from the caller's instruction space. This system call is required on PDP-11's with separate instruction and data spaces because the mfpi instruction reads from D-space if the current and previous modes in the program status word are both user.
RETURN VALUE
Upon successful completion the contents of the caller's instruction space at addr are returned. Otherwise, a value of -1 is returned.
ERRORS
[EINVAL] The kernel has not been compiled for a processor with separate I/D. [EFAULT] Addr points to an address not in the process's allocated instruction space.
BUGS
The error indication, -1, is a legitimate function value; errno, (see intro(2)), can be used to disambiguate. Fetchi is a kludge and exists only to circumvent an alleged security feature on some DEC PDP-11 processors. Fetchi is unique to the PDP-11 and 2BSD; its use is discouraged. 3rd Berkeley Distribution January 22, 1987 FETCHI(2)
Related Man Pages
ptrace(2) - minix
cacheflush(2) - suse
sync_instruction_memory(3c) - sunos
isalist(1) - mojave
isalist(1) - hpux
Similar Topics in the Unix Linux Community
Problems fetching EMC disks to Solaris OS.
Prefetching is not allowed due to the various privacy issues that arise.
Fetching columns from .csv file except last column
Fetching values in CSV file based on column name
Fetching 1st Column and Last n Columns