When i am trying to
$uncompress tress.dmp.Z
I am getting tress.dmp.Z permission denied.
What action i have to perform to unzip or uncompress
It has rw-r--r-- permissions
When i am trying to change the permissions chmod 744 it says.
chmod: Warning: can't change tress.dmp.Z
Just... (1 Reply)
hi,
how can i saerch for foll pattern
the line contains many entries:
xxx xxxx ddd ffff gggg 30%
rr eeee eeee rrrr rrrr 100%
rr eeee eeee rrrr rrrr 43%
how can i display lines having size greater than 40%?what pattern shud i use in grep?
thanks!
regards
vivek.s (1 Reply)
Hi all
Is it possible to copy a structure of a directory only.
e.g.
I have a file with the following entries that is a result of a find :-
/dir1/dir2/file.dbf
/dir1/dir2/dir3/file1.dbf
/dir1/file.dbf
I want to copy these to a directory and keep the structure however starting at a new dir... (8 Replies)
There is problem in my system whenever i run a command lsattr -El mem0 it shows 3gb memory and when i run lscfg -vp | grep Size it shows 8 modules of 512 mb. it means it shows 4 gb how is it possible. (1 Reply)
I am executing this on say host1
export dn=/home/abhi
export fn=file\"*\"
file_path=$dn/$fn
set -A files $(ssh host2 "eval echo $file_path")
echo files= ${files}
So the purpose is to store in array "files" .. the o/p of cmd executed in host2...
this script works fine if the files r... (1 Reply)
Hi
I have a directory having following three set of files as follows:
test.20060804
test.20060801
test.20060802
I want to list the latest file which is less than 20060803. in this case, it will be test.20060802.
How can i achieve the same? Any pointers to above will be appreciated.
... (7 Replies)
Hi,
I am trying to write a script that will move all the files from source directory structure(multiple levels might exist) to destination directory structure. If a sub folder is source doesnot exist in destination then I have to skip and goto next level. I also need to delete the files in... (4 Replies)
Hello Groups
I am trying to find out ways of comparing a value from a 'c' structure to a value in another 'C' structure. the 'C' structure can be a List or liked list as it contains lot many records.
if we loop it in both the structures it is going to consume time.
I am looking for a simple... (3 Replies)
Hi all,
i want mount directory with permission
#NFS Server = FreeBSD
/etc/export =
/data -alldirs -network 192.168.0.0 -mask 255.255.255.0
#NFS Client = Ubuntu
192.168.0.8:/data /dir nfs intr
but i m unable to create folder in /dir
whts the wrong?
Please... (4 Replies)
Pls tell me how can i recover adeleted user in solaris 8. Please help me I'm a newby thanks
aamer (4 Replies)
Discussion started by: aamer
4 Replies
LEARN ABOUT OSF1
getcontext
getcontext(2) System Calls Manual getcontext(2)NAME
getcontext, setcontext - Initiates and restores user level context switching
SYNOPSIS
#include <ucontext.h>
int getcontext(
ucontext_t *ucp ); int setcontext(
const ucontext_t *ucp );
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
getcontext(), setcontext(): XSH5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Provides a pointer to a ucontext structure, defined in the <ucontext.h> header file. The ucontext structure contains the signal mask, exe-
cution stack, and machine registers. (See ucontext(5) for more information about the format of the ucontext structure.)
DESCRIPTION
Using both the getcontext() and setcontext() functions enables you to initiate user level context control, switching between multiple
threads of control within a single process.
When you call getcontext(), it initializes the ucp argument to the current user context of the calling process.
Use the setcontext() function to restore the state of the user context pointed to by the ucp argument. The setcontext() function, if suc-
cessful, does not return; application execution continues from the point specified by the ucontext structure you pass to the setcontext()
function.
The ucontext structure that you pass to the setcontext() function must have been created by a call to the getcontext() function or the
makecontext() function, or have been passed as the third argument to a signal handler. (The third argument in a call to the sigaction()
function determines the action to be performed when a signal is delivered. For more information, see sigaction(2).)
When a context structure is created by the getcontext() function, execution of the program continues as if the corresponding call of the
getcontext() function had just returned.
When a context structure is created by the makecontext() function, program execution continues with the function passed to makecontext().
When that function returns, the thread continues as if after a call to setcontext() with the context structure argument that was input to
makecontext().
If the uc_link member of the ucontext_t structure pointed to by the ucp argument is 0 (zero), then this context is the main context, and
the thread will exit when this context returns. The effects of passing a ucp argument from any other source are unspecified.
NOTES
When a signal handler executes, the current user context is saved and a new context is created by the kernel. If the process leaves the
signal handler using the longjmp() function, the original context cannot be restored, and the result of future calls to the getcontext()
function are unpredictable. Use the siglongjmp() or setcontext() functions in signal handlers, instead of the longjmp() function.
RETURN VALUES
The setcontext() function does not return upon success. The getcontext() function returns 0 (zero) upon success. Upon failure, both the
setcontext() and getcontext() functions return a value of -1.
SEE ALSO
Functions: bsd_signal(2), makecontext(2), sigaction(2), sigaltstack(2), sigprocmask(2), setjmp(3), sigsetjmp(3)
Files: ucontext(5)
Standards: standards(5)getcontext(2)