请输入您要查询的百科知识:

 

词条 sigwait
释义

函数名:

sigwait - wait for a signal

摘要

#include <signal.h>int sigwait(const sigset_t *set, int *sig);

Feature Test Macro Requirements for glibc (seefeature_test_macros(7)):

sigwait(): _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE

描述

Thesigwait() function suspends execution of the calling thread until the delivery of one of the signals specified in the signal setset. The function accepts the signal (removes it from the pending list of signals), and returns the signal number insig.

The operation ofsigwait() is the same assigwaitinfo(), except that:

* sigwait() only returns the signal number, rather than asiginfo_tstructure describing the signal. * The return values of the two functions are different.

返回值

On success,sigwait() returns 0. On error, it returns a positive error number.

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/23 21:12:06