4059056 发表于 2014-03-06 13:21

syslog(2)中的2是什么意思?

如图,这是来自man syslog打印出的信息,其中在第一行syslog(2)中的2是什么意思?
在APUE的346页,有句话是:大多数用户进程调用syslog(3)函数以产生日志信息。其中的3又是什么意思?

q1208c 发表于 2014-03-06 13:54

回复 1# 4059056 MANUAL SECTIONS
       The standard sections of the manual include:

       1      User Commands

       2      System Calls

       3      C Library Functions

       4      Devices and Special Files

       5      File Formats and Conventions

       6      Games et. Al.

       7      Miscellanea

       8      System Administration tools and Deamons

       Distributionscustomizethemanual section to their specifics, which
       often include additional sections.

4059056 发表于 2014-03-06 14:46

从man syslog打印出的信息是syslog(2),即系统调用,而书上是syslog(3),即库函数,这又如何理解?回复 2# q1208c


   

q1208c 发表于 2014-03-06 15:14

回复 3# 4059056

try:

    man -s 2 syslog
    man -s 3 syslog
   
页: [1]
查看完整版本: syslog(2)中的2是什么意思?