参见文件:/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/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with the GNU C Library; if not, see<http://www.gnu.org/licenses/>.  */#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.  */
#define SIGHUP      1   /* Hangup (POSIX).  */
#define SIGINT      2   /* Interrupt (ANSI).  */
#define SIGQUIT     3   /* Quit (POSIX).  */
#define SIGILL      4   /* Illegal instruction (ANSI).  */
#define SIGTRAP     5   /* Trace trap (POSIX).  */
#define SIGABRT     6   /* Abort (ANSI).  */
#define SIGIOT      6   /* IOT trap (4.2 BSD).  */
#define SIGBUS      7   /* BUS error (4.2 BSD).  */
#define SIGFPE      8   /* Floating-point exception (ANSI).  */
#define SIGKILL     9   /* Kill, unblockable (POSIX).  */
#define SIGUSR1     10  /* User-defined signal 1 (POSIX).  */
#define SIGSEGV     11  /* Segmentation violation (ANSI).  */
#define SIGUSR2     12  /* User-defined signal 2 (POSIX).  */
#define SIGPIPE     13  /* Broken pipe (POSIX).  */
#define SIGALRM     14  /* Alarm clock (POSIX).  */
#define SIGTERM     15  /* Termination (ANSI).  */
#define SIGSTKFLT   16  /* Stack fault.  */
#define SIGCLD      SIGCHLD /* Same as SIGCHLD (System V).  */
#define SIGCHLD     17  /* Child status has changed (POSIX).  */
#define SIGCONT     18  /* Continue (POSIX).  */
#define SIGSTOP     19  /* Stop, unblockable (POSIX).  */
#define SIGTSTP     20  /* Keyboard stop (POSIX).  */
#define SIGTTIN     21  /* Background read from tty (POSIX).  */
#define SIGTTOU     22  /* Background write to tty (POSIX).  */
#define SIGURG      23  /* Urgent condition on socket (4.2 BSD).  */
#define SIGXCPU     24  /* CPU limit exceeded (4.2 BSD).  */
#define SIGXFSZ     25  /* File size limit exceeded (4.2 BSD).  */
#define SIGVTALRM   26  /* Virtual alarm clock (4.2 BSD).  */
#define SIGPROF     27  /* Profiling alarm clock (4.2 BSD).  */
#define SIGWINCH    28  /* Window size change (4.3 BSD, Sun).  */
#define SIGPOLL     SIGIO   /* Pollable event occurred (System V).  */
#define SIGIO       29  /* I/O now possible (4.2 BSD).  */
#define SIGPWR      30  /* Power failure restart (System V).  */
#define SIGSYS      31  /* Bad system call.  */
#define SIGUNUSED   31#define   _NSIG       65  /* 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 beused directly at user level.  */
#define __SIGRTMIN  32
#define __SIGRTMAX  (_NSIG - 1)#endif   /* <signal.h> included.  */

【linux】信号量的值定义相关推荐

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

    参见文件:/usr/include/bits/signum.h /* Signal number definitions. Linux version. Copyright (C) 1995-2013 ...

  2. linux shell 自定义函数(定义、返回值、变量作用域)介绍

    linux shell 可以用户定义函数,然后在shell脚本中可以随便调用.下面说说它的定义方法,以及调用需要注意那些事项. 一.定义shell函数(define function) 语法: [ f ...

  3. linux 变量函数返回值,linux shell 自定义函数(定义、返回值、变量作用域)介绍...

    linux shell 可以用户定义函数,然后在shell脚本中可以随便调用.下面说说它的定义方法,以及调用需要注意那些事项. 一.定义shell函数(define function) 语法: [ f ...

  4. Linux——信号量(定义、示例、信号量接口、ipcs命令)

    目录 1.信号量 2.信号量举例 3.信号量的接口 4.通过控制进程来完成打印机操作 5.ipcs命令 1.信号量 (1)定义:​​​​​​ ​ 信号量是一个特殊的变量,一般取正数值.它的值代表允许访 ...

  5. 最全面的linux信号量解析

    信号量 一.什么是信号量 信号量的使用主要是用来保护共享资源,使得资源在一个时刻只有一个进程(线程) 所拥有. 信号量的值为正的时候,说明它空闲.所测试的线程可以锁定而使用它.若为0,说明 它被占用, ...

  6. linux 信号量semget,51CTO博客-专业IT技术博客创作平台-技术成就梦想

    semget() 可以使用系统调用semget()创建一个新的信号量集,或者存取一个已经存在的信号量集: 系统调用:semget(); 原型:intsemget(key_t key,int nsems ...

  7. linux 信号量锁 内核,Linux内核信号量互斥锁应用

    主要介绍了Linux 内核关于信号量,互斥锁等的应用 内核同步机制-信号量/互斥锁/读-写信号量 sema ,mutex ,rwsem 信号量 通用信号量 用户类进程之间使用信号量(semaphore ...

  8. Linux·信号量全解

    目录 信号量 进程间 [无名信号量完成 有血缘关系的进程间 互斥] 知识点2[有名信号量 没有血缘进程互斥] 1.创建一个有名信号量 2.信号量的关闭: 3.信号量文件的删除 4.P操作 sem_wa ...

  9. 最全面的 linux 信号量解析

    一.什么是信号量 信号量的使用主要是用来保护共享资源,使得资源在一个时刻只有一个进程(线程)所拥有. 信号量的值为正的时候,说明它空闲.所测试的线程可以锁定而使用它.若为 0,说明它被占用,测试的线程 ...

最新文章

  1. 【目标检测】(8) ASPP改进加强特征提取模块,附Tensorflow完整代码
  2. shell 中 if then语句中会跟着-ne -ge之类的参数的含义
  3. MySQL的环境变量配置详细步骤
  4. php label,HTML的label标签
  5. oracle数据库扩容方案_ORACLE数据库扩容
  6. AI(5)---AI知多少
  7. Android 功耗( 21 )---MTK 低功耗1
  8. web视频播放插件:Video For Everybody
  9. android设备调用usb外置摄像头方法及案例
  10. java 线程 condition_JAVA多线程按指定顺序执行线程 Condition应用
  11. mysql with rollup_MySQL-with rollup函数运用 _20160930
  12. 解决echart时间显示问题
  13. 算法课讨论 深究哈密顿图
  14. js的柯里化(curry)
  15. 生活随记 - 值班后第二天晚上失眠小记
  16. Mtk Sensor 驱动框架变更简要分析
  17. 关于 android 远程控制(pc 控制手机)
  18. 骁龙778gplus什么水平 骁龙778gplus什么级别 骁龙778gplus相当于什么档次
  19. 【通知】有三AI淘宝店开张了,欢迎来逛
  20. TMS320F28335中断向量表

热门文章

  1. 软件测试 -- alpha测试和beta测试的区别
  2. Nagios 安装及常见错误
  3. PHPMailer - PHP email transport class
  4. GARFIELD@11-20-2004
  5. 熊猫分发_流利的熊猫
  6. 2048. 下一个更大的数值平衡数
  7. slack 使用说明_我如何使用Node和Botkit构建HR Slack Bot
  8. 递归javascript_JavaScript中的递归
  9. Smobiler 4.4 更新预告 Part 1(Smobiler能让你在Visual Studio上开发APP)
  10. 接口测试(java+testng+ant+jenkins)第三篇ant