c - syslog.h中的 "0-big number"是什么意思?

标签 c linux unix logging syslog

我是中国人,我在看syslog.h,发现一个词“0-big number”我看不懂术语“0-大数”,谁能解释一下这个术语?

/*
* priorities/facilities are encoded into a single 32-bit quantity, where the
* bottom 3 bits are the priority (0-7) and the top 28 bits are the facility
* (0-big number).  Both the priorities and the facilities map roughly
* one-to-one to strings in the syslogd(8) source code.  This mapping is
* included in this file.

/* facility codes */
 #define LOG_KERN    (0<<3)  /* kernel messages */
 #define LOG_USER    (1<<3)  /* random user-level messages */
....
*/

最佳答案

作者刚刚决定将 28 个集合位 (2^28 - 1) 称为一个大数,而不是将其写出来。所以这不是一个术语,而是指大数

关于c - syslog.h中的 "0-big number"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32859106/

相关文章:

c - mmap 无法分配超过 2GB 的连续数据

unix - 使用 ffmpeg 将 m4a 拆分为多个文件

linux - 如何在不杀死父进程的情况下杀死所有子进程

c - 我应该如何在用户输入时停止 C 循环

c - sscanf 指针与变量地址

c - strcmp 不会在 if 语句中正确求值

c - 使用mingw32编译时出现链接错误

linux - 使用linux比较解析的数据以及在 ' if '或while循环中使用该比较

linux - 如何在没有密码的情况下以另一个用户身份运行脚本?

linux -/etc/hosts 和本地 .dev 域的问题