Services d'appui aux programmes La fin du programme Original: Program termination The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
|
| |
Communiquer avec l'environnement Original: Communicating with the environment The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
|
| |
Signaux Original: Signals The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
|
| |
Types de signaux Original: Signal types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
|
Non-locales sauts Original: Non-local jumps The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
|
|
Types Original: Types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
|
Déclaré dans l'en-tête<signal.h> | | |
void(*signal(int sig,void(*handler)(int)))(int); | | |
| | |
Définit le gestionnaire d'erreurs pour
sig
signal. Le gestionnaire de signal peut être réglé de sorte que la gestion par défaut se produira, le signal est ignoré, ou une fonction définie par l'utilisateur est appelé .
Original:
Sets the error handler for signalsig
. The signal handler can be set so that default handling will occur, signal is ignored, or an user-defined function is called.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
Quand gestionnaire de signal est définie sur une fonction et un signal se produit, il est défini par l'implémentation si
signal(sig,SIG_DFL) sera exécutée immédiatement avant le début de gestionnaire de signal. En outre, la mise en œuvre peut empêcher certains signaux définis par l'implémentation régler AF de se produire alors que le gestionnaire de signal fonctionne .
Original:
When signal handler is set to a function and a signal occurs, it is implementation defined whether
signal(sig,SIG_DFL) will be executed immediately before the start of signal handler. Also, the implementation can prevent some implementation-defined set af signals from occurring while the signal handler runs.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
Si l'utilisateur défini fonction retourne lors de la manipulation
SIGFPE
,
SIGILL
ou
SIGSEGV
, le comportement est indéfini. Dans la plupart des implémentations, le programme se termine .
Original:
If the user defined function returns when handling
SIGFPE
,
SIGILL
or
SIGSEGV
, the behavior is undefined. In most implementations the program terminates.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
Si le gestionnaire de signal est appelé à la suite de
abort ou
raise, le comportement est indéfini si l'une des conditions suivantes n'est pas respectée:
Original:
If the signal handler is called as a result of
abort or
raise, the behavior is undefined if any of the following requirements is not followed:
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
le handler de signal appelle
raise .
Original:
the signal handler calls
raise.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
le gestionnaire de signal se réfère à un objet de la durée de stockage statique qui n'est pas déclarée comme
volatilesig_atomic_t .
Original:
the signal handler refers to an object of static storage duration which is not declared as
volatilesig_atomic_t.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
le gestionnaire de signaux appelle une fonction dans la bibliothèque standard, sauf
abort,
_Exit, ou
signal avec le premier argument n'est pas le numéro du signal actuellement traitée .
Original:
the signal handler calls any function within the standard library, except
abort,
_Exit, or
signal with the first argument not being the number of the signal currently handled.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
sig | - | le signal de définir le gestionnaire de signal. Elle peut être mise en oeuvre définie par une valeur ou une des valeurs suivantes: | | définit les types de signaux Original: defines signal types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro)[edit] |
Original: the signal to set the signal handler to. It can be an implementation-defined value or one of the following values: | | définit les types de signaux Original: defines signal types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro)[edit] |
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
handler | - | le gestionnaire de signal. Ce doit être l'un des suivants: - SIG_DFL macro. Le gestionnaire de signal est réglé par défaut gestionnaire de signal.
- SIG_IGN macro. Le signal est ignoré.
- Pointeur vers une fonction. La signature de la fonction doit être équivalente à la suivante:
Original: the signal handler. This must be one of the following: - SIG_DFL macro. The signal handler is set to default signal handler.
- SIG_IGN macro. The signal is ignored.
- pointer to a function. The signature of the function must be equivalent to the following:
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier]Retourne la valeur
Gestionnaire de signal précédent sur le succès ou l'échec sur
SIG_ERR
(création d'un gestionnaire de signal peut être désactivée sur certaines implémentations) .
Original:
Previous signal handler on success or
SIG_ERR
on failure (setting a signal handler can be disabled on some implementations).
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
| This section is incomplete Reason: no example |
|
| exécute le gestionnaire de signal pour un signal particulier Original: runs the signal handler for particular signal The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction)[edit] |
|
|