github.com/searKing/golang/go@v1.2.117/os/signal/cgo/signal.cgo.h (about)

     1  // Copyright (c) 2019 The searKing authors. All Rights Reserved.
     2  //
     3  // Use of this source code is governed by a MIT-style license
     4  // that can be found in the LICENSE file in the root of the source
     5  // tree. An additional intellectual property rights grant can be found
     6  // in the file PATENTS.  All contributing project authors may
     7  // be found in the AUTHORS file in the root of the source tree.
     8  
     9  //go:build cgo
    10  
    11  #ifndef GO_OS_SIGNAL_CGO_SIGNAL_CGO_H_
    12  #define GO_OS_SIGNAL_CGO_SIGNAL_CGO_H_
    13  #include <signal.h>
    14  #include <stdbool.h>
    15  #ifdef __cplusplus
    16  extern "C" {
    17  #endif
    18  
    19  // Callbacks Predefinations
    20  int CGO_SignalHandlerSetSig(int signum);
    21  void CGO_SignalHandlerSetSignalDumpToFd(int fd);
    22  void CGO_SignalHandlerSetStacktraceDumpToFile(char *name);
    23  void CGO_SignalHandlerDumpPreviousStacktrace();
    24  char *CGO_PreviousStacktrace();
    25  void CGO_SetSigInvokeChain(const int from, const int to, const int wait,
    26                             const int sleepInSeconds);
    27  
    28  #ifdef __cplusplus
    29  }
    30  #endif
    31  
    32  #endif  // GO_OS_SIGNAL_CGO_SIGNAL_CGO_H_