Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Créer un compte
Espaces de noms
Variantes
    Affichages
    Actions

      signal

      De cppreference.com
      <c‎ |program

      This page has been machine-translated from the English version of the wiki usingGoogle Translate.

      The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions clickhere.

      Click here for the English version of this page

       
       
      Services d'appui aux programmes
      La fin du programme
      Original:
      Program termination
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.
      abort
      exit
      quick_exit (C++11)
      _Exit (C++11)
      Communiquer avec l'environnement
      Original:
      Communicating with the environment
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.
      Signaux
      Original:
      Signals
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.
      Types de signaux
      Original:
      Signal types
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.
      SIGABRT
      SIGFPE
      SIGILL
      SIGINT
      SIGSEGV
      SIGTERM
      Non-locales sauts
      Original:
      Non-local jumps
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.
      setjmp
      longjmp
      Types
      Original:
      Types
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.
      jmp_buf
       
      Déclaré dans l'en-tête<signal.h>
      void(*signal(int sig,void(*handler)(int)))(int);
      Définit le gestionnaire d'erreurs poursig 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 viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere 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 sisignal(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 whethersignal(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 viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.
      Si l'utilisateur défini fonction retourne lors de la manipulationSIGFPE,SIGILL ouSIGSEGV, le comportement est indéfini. Dans la plupart des implémentations, le programme se termine .
      Original:
      If the user defined function returns when handlingSIGFPE,SIGILL orSIGSEGV, the behavior is undefined. In most implementations the program terminates.
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.
      Si le gestionnaire de signal est appelé à la suite deabort ouraise, 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 ofabort orraise, the behavior is undefined if any of the following requirements is not followed:
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.
      • le handler de signal appelleraise .
        Original:
        the signal handler callsraise.
        The text has been machine-translated viaGoogle Translate.
        You can help to correct and verify the translation. Clickhere 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 commevolatilesig_atomic_t .
        Original:
        the signal handler refers to an object of static storage duration which is not declared asvolatilesig_atomic_t.
        The text has been machine-translated viaGoogle Translate.
        You can help to correct and verify the translation. Clickhere for instructions.
      • le gestionnaire de signaux appelle une fonction dans la bibliothèque standard, saufabort,_Exit, ousignal 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, exceptabort,_Exit, orsignal with the first argument not being the number of the signal currently handled.
        The text has been machine-translated viaGoogle Translate.
        You can help to correct and verify the translation. Clickhere for instructions.

      Sommaire

      [modifier]Paramètres

      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 viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere 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 viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.

      (constante macro)[edit]
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere 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:
      void fun(int sig);
      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:
      void fun(int sig);
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.

      [modifier]Retourne la valeur

      Gestionnaire de signal précédent sur le succès ou l'échec surSIG_ERR (création d'un gestionnaire de signal peut être désactivée sur certaines implémentations) .
      Original:
      Previous signal handler on success orSIG_ERR on failure (setting a signal handler can be disabled on some implementations).
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.

      [modifier]Exemple

      This section is incomplete
      Reason: no example

      [modifier]Voir aussi

      exécute le gestionnaire de signal pour un signal particulier
      Original:
      runs the signal handler for particular signal
      The text has been machine-translated viaGoogle Translate.
      You can help to correct and verify the translation. Clickhere for instructions.

      (fonction)[edit]
      Récupérée de «https://fr.cppreference.com/mwiki/index.php?title=c/program/signal&oldid=47342 »
      Navigation
      Boîte à outils
      • Autres langues

      [8]ページ先頭

      ©2009-2025 Movatter.jp