linux 信号量定义,【linux】信号量的值定义

参见文件:/usr/include/bits/signum.h

/* Signal number definitions. Linux version.

Copyright (C) 1995-2013 Free Software Foundation, Inc.

This file is part of the GNU C Library.

The GNU C Library is free software; you can redistribute it and/or

modify it under the terms of the GNU Lesser General Public

License as published by the Free Software Foundation; either

version 2.1 of the License, or (at your option) any later version.

The GNU C Library is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU

Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public

License along with the GNU C Library; if not, see

. */

#ifdef_SIGNAL_H

/* Fake signal functions. */

#define SIG_ERR((__sighandler_t) -1)/* Error return. */

#define SIG_DFL((__sighandler_t) 0)/* Default action. */

#define SIG_IGN((__sighandler_t) 1)/* Ignore signal. */

#ifdef __USE_UNIX98

# define SIG_HOLD((__sighandler_t) 2)/* Add signal to hold mask. */

#endif

/* Signals. */

#defineSIGHUP1/* Hangup (POSIX). */

#defineSIGINT2/* Interrupt (ANSI). */

#defineSIGQUIT3/* Quit (POSIX). */

#defineSIGILL4/* Illegal instruction (ANSI). */

#defineSIGTRAP5/* Trace trap (POSIX). */

#defineSIGABRT6/* Abort (ANSI). */

#defineSIGIOT6/* IOT trap (4.2 BSD). */

#defineSIGBUS7/* BUS error (4.2 BSD). */

#defineSIGFPE8/* Floating-point exception (ANSI). */

#defineSIGKILL9/* Kill, unblockable (POSIX). */

#defineSIGUSR110/* User-defined signal 1 (POSIX). */

#defineSIGSEGV11/* Segmentation violation (ANSI). */

#defineSIGUSR212/* User-defined signal 2 (POSIX). */

#defineSIGPIPE13/* Broken pipe (POSIX). */

#defineSIGALRM14/* Alarm clock (POSIX). */

#defineSIGTERM15/* Termination (ANSI). */

#defineSIGSTKFLT16/* Stack fault. */

#defineSIGCLDSIGCHLD/* Same as SIGCHLD (System V). */

#defineSIGCHLD17/* Child status has changed (POSIX). */

#defineSIGCONT18/* Continue (POSIX). */

#defineSIGSTOP19/* Stop, unblockable (POSIX). */

#defineSIGTSTP20/* Keyboard stop (POSIX). */

#defineSIGTTIN21/* Background read from tty (POSIX). */

#defineSIGTTOU22/* Background write to tty (POSIX). */

#defineSIGURG23/* Urgent condition on socket (4.2 BSD). */

#defineSIGXCPU24/* CPU limit exceeded (4.2 BSD). */

#defineSIGXFSZ25/* File size limit exceeded (4.2 BSD). */

#defineSIGVTALRM26/* Virtual alarm clock (4.2 BSD). */

#defineSIGPROF27/* Profiling alarm clock (4.2 BSD). */

#defineSIGWINCH28/* Window size change (4.3 BSD, Sun). */

#defineSIGPOLLSIGIO/* Pollable event occurred (System V). */

#defineSIGIO29/* I/O now possible (4.2 BSD). */

#defineSIGPWR30/* Power failure restart (System V). */

#define SIGSYS31/* Bad system call. */

#define SIGUNUSED31

#define_NSIG65/* Biggest signal number + 1

(including real-time signals). */

#define SIGRTMIN (__libc_current_sigrtmin ())

#define SIGRTMAX (__libc_current_sigrtmax ())

/* These are the hard limits of the kernel. These values should not be

used directly at user level. */

#define __SIGRTMIN32

#define __SIGRTMAX(_NSIG - 1)

#endif/* included. */

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值