It sure sounds like a simple request....
I need some C code that will enable me to fetch the IP address of the tty attached to the current process.
In short:
char *myIPAddress(void)
{
// somebody help me fill in this part!!
}
-BL:confused: (4 Replies)
Made changes to a file using vi editor and saved those changes
now realised that the changes are not required
How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
A log file contains details for last one year .This file contains log for all dates . The log file for a particular day starts with a particular string and ends with the same string .
We need to make a new file out of this existing file containing data after a particular date. (2 Replies)
Hi guys,
Please help me out in this problem. I have two files
FILE1
abc-23 : 4529675
cde-42 : 9824532
dge-91 : 1245367
gre-45 : 9824532
fgr-76 : 4529675
FILE2
4529675 : Gal Glu house-2-be
9824532 : cat mouse
1245367 : sirf surf-2-beta
where FILE2 is a static file with fixed... (5 Replies)
Hi,
I want to modify a filename in AIX by attaching the last modified timestamp. I want the timestamp completely in numerical format (eg:200905081210. yr-2009, mnth - 05, date -08, hr - 12, mins - 10).
For example if the filename is a.log and it was modified on April 6th 2008 at 21.00. I... (16 Replies)
Hi Guys,
I have a file with around 1000 strings and i need to fetch the group to which each string belongs to from another file. Example is seen below.
File 1:
A
B
D
File 2:
START
A
B
C
END
START
M (5 Replies)
Hello All,
I am working on a script where I need to fetch the value from a log file and log file creates with different name but few thing are common
DEV_INFOMGT161_MULTI_PTC_BLD01.Stage_All_to_stp2perf1.042312114644.log
STP_12_02_01_00_RC01.Stage_stp-domain_to_stp2perf2.042312041739.log
... (2 Replies)
Hi,
I am new to scripting. I have a log file and need to fetch specific logs and copy to another file.
A copy of the log is like this:
===============================================================
= JOB : server123#jobs1.jobstream1
= USER : andyc
= Tue 08/01/17... (3 Replies)
Discussion started by: Prngp
3 Replies
LEARN ABOUT MINIX
fuword
FETCH(9) BSD Kernel Developer's Manual FETCH(9)NAME
fetch, fubyte, fuswintr, fuword, fuword16, fuword32, fuword64 -- fetch data from user-space
SYNOPSIS
#include <sys/types.h>
#include <sys/time.h>
#include <sys/systm.h>
int
fubyte(const void *base);
long
fuword(const void *base);
int
fuword16(void *base);
int32_t
fuword32(const void *base);
int64_t
fuword64(const void *base);
#include <sys/resourcevar.h>
int
fuswintr(void *base);
DESCRIPTION
The fetch functions are designed to copy small amounts of data from user-space.
The fetch routines provide the following functionality:
fubyte() Fetches a byte of data from the user-space address base.
fuword() Fetches a word of data from the user-space address base.
fuword16() Fetches 16 bits of data from the user-space address base.
fuword32() Fetches 32 bits of data from the user-space address base.
fuword64() Fetches 64 bits of data from the user-space address base.
fuswintr() Fetches a short word of data from the user-space address base. This function is safe to call during an interrupt context.
RETURN VALUES
The fetch functions return the data fetched or -1 on failure.
SEE ALSO copy(9), store(9)BSD October 5, 2009 BSD