📄 signal.h
字号:
// This may look like C code, but it is really -*- C++ -*-/* Copyright (C) 1989 Free Software Foundation written by Doug Lea (dl@rocky.oswego.edu)This file is part of the GNU C++ Library. This library is freesoftware; you can redistribute it and/or modify it under the terms ofthe GNU Library General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at youroption) any later version. This library is distributed in the hopethat it will be useful, but WITHOUT ANY WARRANTY; without even theimplied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE. See the GNU Library General Public License for more details.You should have received a copy of the GNU Library General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, 675 Mass Ave, Cambridge, MA 02139, USA.*/#ifndef _signal_h#include <_G_config.h>extern "C" {#ifdef __signal_h_recursive#include_next <signal.h>#else#define __signal_h_recursive#define signal __hide_signal#define psignal __hide_psignal#include_next <signal.h>#undef signal#undef psignal#define _signal_h 1// The Interviews folks call this SignalHandler. Might as well conform.typedef _G_signal_return_type (*SignalHandler) (...);typedef int (*SSignalHandler) (...);extern SignalHandler signal _G_ARGS((int sig, SignalHandler action));//extern SignalHandler sigset _G_ARGS((int sig, SignalHandler action));extern SSignalHandler ssignal _G_ARGS((int sig, SSignalHandler action));extern int gsignal _G_ARGS((int sig));extern int kill _G_ARGS((_G_pid_t pid, int sig));extern int killpg _G_ARGS((_G_pid_t, int));extern int siginterrupt _G_ARGS((int, int));extern void psignal _G_ARGS((unsigned, const char*));#ifndef hpux // Interviews folks claim that hpux doesn't like theseextern int sigsetmask _G_ARGS((int mask));extern int sigblock _G_ARGS((int mask));extern int sigpause _G_ARGS((int mask));extern int sigvec _G_ARGS((int, struct sigvec*, struct sigvec*));#endif// The Interviews version also has these ...#define SignalBad ((SignalHandler)-1)#define SignalDefault ((SignalHandler)0)#define SignalIgnore ((SignalHandler)1)#undef BADSIG#undef SIG_DFL#undef SIG_IGN#define BAD_SIG SignalBad#define SIG_DFL SignalDefault#define SIG_IGN SignalIgnore#endif}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -