Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Sun Feb 12 8:20:24 2012 from 38.107.179.230
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Sigwait en anglais

SIGWAIT(P) POSIX Programmer's Manual SIGWAIT(P)
 
NAME


sigwait - wait for queued signals
 
SYNOPSIS


#include int sigwait(const sigset_t *restrict set, int *restrict sig);
 
DESCRIPTION


The sigwait() function shall select a pending signal from set, atomi- cally clear it from the system's set of pending signals, and return that signal number in the location referenced by sig. If prior to the call to sigwait() there are multiple pending instances of a single sig- nal number, it is implementation-defined whether upon successful return there are any remaining pending signals for that signal number. If the implementation supports queued signals and there are multiple sig- nals queued for the signal number selected, the first such queued sig- nal shall cause a return from sigwait() and the remainder shall remain queued. If no signal in set is pending at the time of the call, the thread shall be suspended until one or more becomes pending. The sig- nals defined by set shall have been blocked at the time of the call to sigwait(); otherwise, the behavior is undefined. The effect of sig- wait() on the signal actions for the signals in set is unspecified. If more than one thread is using sigwait() to wait for the same signal, no more than one of these threads shall return from sigwait() with the signal number. Which thread returns from sigwait() if more than a sin- gle thread is waiting is unspecified. Should any of the multiple pending signals in the range SIGRTMIN to SIGRTMAX be selected, it shall be the lowest numbered one. The selec- tion order between realtime and non-realtime signals, or between multi- ple pending non-realtime signals, is unspecified.
 
RETURN VALUE


Upon successful completion, sigwait() shall store the signal number of the received signal at the location referenced by sig and return zero. Otherwise, an error number shall be returned to indicate the error.
 
ERRORS


The sigwait() function may fail if: EINVAL The set argument contains an invalid or unsupported signal num- ber. The following sections are informative.
 
EXAMPLES


None.
 
APPLICATION USAGE


None.
 
RATIONALE


To provide a convenient way for a thread to wait for a signal, this volume of IEEE Std 1003.1-2001 provides the sigwait() function. For most cases where a thread has to wait for a signal, the sigwait() func- tion should be quite convenient, efficient, and adequate. However, requests were made for a lower-level primitive than sigwait() and for semaphores that could be used by threads. After some consider- ation, threads were allowed to use semaphores and sem_post() was defined to be async-signal and async-cancel-safe. In summary, when it is necessary for code run in response to an asyn- chronous signal to notify a thread, sigwait() should be used to handle the signal. Alternatively, if the implementation provides semaphores, they also can be used, either following sigwait() or from within a sig- nal handling routine previously registered with sigaction().
 
FUTURE DIRECTIONS


None.
 
SEE ALSO


Signal Concepts , Realtime Signals , pause() , pthread_sigmask() , sigaction() , sigpending() , sigsuspend() , sigwaitinfo() , the Base Definitions volume of IEEE Std 1003.1-2001, ,
 
COPYRIGHT


Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE/The Open Group 2003 SIGWAIT(P)


 Dernières recherches
Man  en anglais Man sigwait en anglaisMan  en français Man sigwait en français
Man  en anglais Man complex en anglaisMan  en français Man complex en français
Man  en anglais Man vhangup en anglaisMan  en français Man vhangup en français
Man  en anglais Man objdump en anglaisMan  en français Man objdump en français
Man  en anglais Man opendir en anglaisMan  en français Man opendir en français
Man  en anglais Man strpbrk en anglaisMan  en français Man strpbrk en français
Man  en anglais Man getdate en anglaisMan  en français Man getdate en français
Man  en anglais Man fgetpos en anglaisMan  en français Man fgetpos en français
Man  en anglais Man lesskey en anglaisMan  en français Man lesskey en français
Man  en anglais Man ctime_r en anglaisMan  en français Man ctime_r en français
Man  en anglais Man nologin en anglaisMan  en français Man nologin en français
Man  en anglais Man msgsnd en anglaisMan  en français Man msgsnd en français
Man  en anglais Man stdarg en anglaisMan  en français Man stdarg en français
Man  en anglais Man mkswap en anglaisMan  en français Man mkswap en français
Man  en anglais Man whatis en anglaisMan  en français Man whatis en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher