LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1090|回复: 2

syslog()函数需要什么头文件?

[复制链接]
发表于 2005-10-31 10:02:13 | 显示全部楼层 |阅读模式
我编译的一个守护进程小程序,程序中含有syslog(LOG_USER|LOG_INFO,"Guard process test!\n");  
编译的时候报错:'LOG_USER' undeclared(first use in this function)
                          'LOG_INFO' undeclared(first use in this function)
是不是需要在程序的开头进行头文件包含啊?我查了半天也没查到这个函数的头文件在哪?哪位兄弟知道啊?帮忙指点一下啊!
发表于 2005-10-31 12:09:06 | 显示全部楼层
man syslog
回复 支持 反对

使用道具 举报

发表于 2005-10-31 22:32:37 | 显示全部楼层
man 3 syslog
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表