【问题标题】:What's the meaning of "0-big number" in syslog.h?syslog.h 中的“0-big number”是什么意思?
【发布时间】:2015-12-27 19:50:48
【问题描述】:

我是中国人。我正在阅读 syslog.h,我发现了一个我无法理解的术语“0-big number”。我可以理解孔段的含义,但我仍然对术语“0-big number”,有人能解释一下这个术语吗?

/*
* 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 */
....
*/

【问题讨论】:

    标签: c linux unix logging syslog


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2013-02-01
      • 2017-05-25
      • 1970-01-01
      • 2016-07-14
      • 2020-04-19
      • 2015-03-20
      • 2020-01-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多