I'm trying to compile and install both most recent version of 'make' and the
most recent version of 'openssh' on my Sparc20.
I've run into the following problems... and I don't know what they mean. Can
someone please help me resolve these issues?
I'm using the 'make' version that was... (5 Replies)
suppose a name is read
how to check whether the name contains only alphabets and space
not non-alphabetic characters and special characters (5 Replies)
Executed the following if conditions .. and got different results .
only (( )) gave correct o/p with all scenarios .
Can anybody please let me know what is the difference between and ] and ((condition)) when used with if condition.
And why each condition gave different result.
1.... (2 Replies)
Hi All,
I am using the below if command to comparing two variables but is condition is true but going in else part.
#################
if ; then
TAKE_SNAPS
echo "Snaps updates done"
UPDATE_DS_SNAPS_TAKEN
else
echo "Seemes DS & JDP is still running KIndly... (4 Replies)
hi,
I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command
Here are my simple script
After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
HI
My doubt may be basic one but I need to get it clarified..
When i use "if" condition that checks for many AND, OR logical conditions
like
if ]; then
return 0
fi
Even the if condition fails it returns as zero.. Any clue..
But if i add else condition like
if ]; ... (2 Replies)
Discussion started by: Priya Amaresh
2 Replies
LEARN ABOUT OSF1
tis_setcancelstate
tis_setcancelstate(3) Library Functions Manual tis_setcancelstate(3)NAME
tis_setcancelstate - Changes the calling thread's cancelability state.
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <tis.h>
int tis_setcancelstate(
int state,
int *oldstate);
STANDARDS
None
PARAMETERS
State of general cancelability to set for the calling thread. Valid state values are as follows: PTHREAD_CANCEL_ENABLE PTHREAD_CANCEL_DIS-
ABLE Receives the value of the calling thread's previous cancelability state.
DESCRIPTION
This routine sets the calling thread's cancelability state to the value specified in the state argument and returns the calling thread's
previous cancelability state in the location referenced by the oldstate argument.
When a thread's cancelability state is set to PTHREAD_CANCEL_DISABLE, a cancelation request cannot be delivered to the thread, even if a
cancelable routine is called or asynchronous cancelability is enabled.
When a thread is created, its default cancelability state is PTHREAD_CANCEL_ENABLE. When this routine is called prior to loading threads,
the cancelability state propagates to the initial thread in the executing program.
Possible Problems When Disabling Cancelability
The most important use of a cancelation request is to ensure that indefinite wait operations are terminated. For example, a thread waiting
on some network connection, which might take days to respond (or might never respond), should be made cancelable.
When a thread's cancelability state is disabled, no routine called within that thread is cancelable. As a result, the user is unable to
cancel the operation. When disabling cancelability, be sure that no long waits can occur or that it is necessary for other reasons to
defer cancelation requests around that particular region of code.
RETURN VALUES
On successful completion, this routine returns the calling thread's previous cancelability state in the oldstate argument.
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Successful completion. The specified state is not PTHREAD_CANCEL_ENABLE or PTHREAD_CANCEL_DISABLE.
ERRORS
None
RELATED INFORMATION
Functions: tis_testcancel(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
tis_setcancelstate(3)