Windows PowerShell command on Get-command siginterrupt
MyWebUniversity

Manual Pages for UNIX Operating System command usage for man siginterrupt

Standard C Library Functions siginterrupt(3C)

NAME

siginterrupt - allow signals to interrupt functions

SYNOPSIS

#include

int siginterrupt(int sig, int flag);

DESCRIPTION

The siginterrupt() function changes the restart behavior

when a function is interrupted by the specified signal. The

function siginterrupt(sig, flag) has an effect as if imple-

mented as:

siginterrupt(int sig, int flag) {

int ret; struct sigaction act; (void) sigaction(sig, NULL, &act); if (flag)

act.sa_flags &= SA_RESTART;

else

act.sa_flags |= SA_RESTART;

ret = sigaction(sig, &act, NULL); return ret; }

RETURN VALUES

Upon successful completion, siginterrupt() returns 0. Other-

wise, -1 is returned and errno is set to indicate the error.

ERRORS

The siginterrupt() function will fail if:

EINVAL The sig argument is not a valid signal number.

USAGE

The siginterrupt() function supports programs written to

historical system interfaces. A standard-conforming applica-

tion, when being written or rewritten, should use sigac-

tion(2) with the SA_RESTART flag instead of siginterrupt().

ATTRIBUTES

See attributes(5) for descriptions of the following attri-

butes:

SunOS 5.11 Last change: 1 Sep 2003 1

Standard C Library Functions siginterrupt(3C)

____________________________________________________________

| ATTRIBUTE TYPE | ATTRIBUTE VALUE |

|_____________________________|_____________________________|

| Interface Stability | Committed |

|_____________________________|_____________________________|

| MT-Level | MT-Safe |

|_____________________________|_____________________________|

| Standard | See standards(5). |

|_____________________________|_____________________________|

SEE ALSO

sigaction(2), signal.h(3HEAD), attributes(5), standards(5)

SunOS 5.11 Last change: 1 Sep 2003 2




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™