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)
Check Out this Related Man Page
PHYS(2) System Calls Manual PHYS(2)NAME
phys - allow a process to access physical addresses (2BSD)
SYNOPSIS
phys(segreg, size, physaddr)
unsigned int segreg, size, physaddr;
DESCRIPTION
The argument segreg specifies a process virtual (data-space) address range of 8K bytes starting at virtual address segregx8K bytes. This
address range is mapped into physical address physaddrx64 bytes. Only the first sizex64 bytes of this mapping is addressable. If size is
zero, any previous mapping of this virtual address range is nullified. For example, the call
phys(7, 1, 0177775);
will map virtual addresses 0160000-0160077 into physical addresses 017777500-017777577. In particular, virtual address 0160060 is the
PDP-11 console located at physical address 017777560.
This call may only be executed by the super-user.
ERRORS
[EPERM] The process's effective user ID is not the super-user.
[EINVAL] Segreg is less than 0 or greater than 7.
[EINVAL] Size is less than 0 or greater than 128.
SEE ALSO
PDP-11 segmentation hardware
BUGS
On systems with ENABLE/34(tm) memory mapping boards, phys cannot be used to map in the I/O page.
This system call is very dangerous. It is not considered a permanent part of the system.
Phys is unique to the PDP-11 and 2BSD; its use is discouraged.
3rd Berkeley Distribution January 22, 1987 PHYS(2)
Hi,
I have a nasty little problem with my disks on my system
My system configuration is as follows
Sunv890 with sunos 9 connected tot a IBM6800 SAN using a 2port 2 GB qla2342 adapter.
We have bought a EMC SAN. The company who sold us the san, said that it would be no problem connecting the... (10 Replies)
I have a file like this
############################################
# ParentFolder Flag SubFolders
Colateral 1 Source1/Checksum
CVA 1 Source1/Checksum
Test 1 VaR/Checksum
Test2 1 SVaR/Checksum
FX 1 ... (6 Replies)
Hi Folks,
Need help in fetching a group of lines with a start and end strings. Example is shown below.
start#morning
tea
jog
breakfast
end
start#afternoon
lunch
work
chat
end
start#evening
snacks
tea
chat (6 Replies)
Hi All,
I have a requirement to fetch logs of last 'N' days.
I am trying the following command which is working fine if it finds the date of that day in logfile.
START=`TZ="GMT+$((24*N))" date +"%Y %b %d"`
this is being used to fetch 'N'th day's date
and
awk '/'"$START"'/{p=1}... (24 Replies)
Dear Friends,
Sorry for this basic request. But I just started learning Ksh recently and still I am a newbie in this field.
Q: I have files on one server and the date format is 20121001000009_224625.in which has year (yyyy) month (mm) and date (dd). I have these files on server A. The task... (8 Replies)
Hi i want to fetch 100k record from a file which is looking like as below.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
... (17 Replies)
I am using . .profile in my script below
I want to fech it it from my configuration file .id_pass_file.txt(it has all user_name and passwords)
how can i do this
PROFILE_PATH=. .profile
AND IN MY SCRIPT
$PROFILE_PATH
IS THIS CORRECT
#!/bin/sh
ORACLE_HOME=/var/opt/oracle/product/10g;... (8 Replies)
Hi,
i have below list of files so i just want the name of the files in one parameter and not the timestamp.
i want only GIDW_Dy_Tm_Seg_Sls_legacy_PL_0_0_ in variable of all files.
GIDW_Dy_Tm_Seg_Sls_legacy_PL_0_0_20131001101800.csv
GIDW_Dly_Sls_legacy_RO_0_0_20131001172001.csv
... (9 Replies)
input.csv:
Field1,Field2,Field3,Field4,Field4
abc ,123 ,xyz ,000 ,pqr
mno ,123 ,dfr ,111 ,bbb
output:
Field2,Field4
123 ,000
123 ,111
how to fetch the values of Field4 where Field2='123'
I don't want to fetch the values based on column position. Instead want to... (10 Replies)
Team,
Presently i am running a script from my local box(i.e jumpbox) to all the remote machines.Basically fetching basic queries like pwd,mkdir,touch etc and i am able to successfully fetch it from my local machine.But when i want to check certain database related queries like the dbstat... (20 Replies)
Hi Gurus,
I have a file as follows (Sample shown below but the list is very huge)
SCHEDULE WS1#JS1
RUNCYCLE1
:
WS1#JOB1
WS1#JOB2
FOLLOWS JOB1
END
SCHEDULE WS2#JS1
RUNCYCLE2
:
WS1#JOB3
WS1#JOB1
FOLLOWS JOB3
WS2#JOB1 (10 Replies)
I am trying to fetch 1st column and last 10 columns.The code I am using is working fine but after using the code then output file becomes space delimited not tab delimited.
awk 'BEGIN {OFS="\t"}{printf("%s\t",$1)}{for(i=NF-9; i<=NF; i++) {printf("%s\t",$i)};printf "\n" } ' inputfile
... (11 Replies)
Hi All,
I have a requirement to get the address values from a large log file along with the user details.
line1,line2,city,stateCode,postalCode,countryCode. The below code as advised in the earlier post is giving the user data
zgrep -B1 "Failed to calculate Tax" log.2018-05-23.gz | grep... (8 Replies)