Chinaunix首页 | 论坛 | 博客
  • 博客访问: 376792
  • 博文数量: 48
  • 博客积分: 743
  • 博客等级: 上士
  • 技术积分: 956
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-22 13:51
文章分类

全部博文(48)

文章存档

2015年(3)

2014年(17)

2012年(23)

2011年(5)

发布时间:2014-04-11 15:56:32

1.     BSD syslogd的组成结构:配置文件:/etc/syslog.conf从上图可以看到相关的日志文件主要来源于三种途径:(1)    内核:许多内核例程调用log函数产生log消息,另外klogd守护进程能够监听并得到内核消息,并发送给syslogd进程。(2)    许多用户进程直.........【阅读全文】

阅读(1123) | 评论(0) | 转发(0)

发布时间:2014-04-11 15:56:23

......【阅读全文】

阅读(1859) | 评论(0) | 转发(0)

发布时间:2014-04-08 17:31:23

这篇文章汇总网络编程的各种函数接口,并以超链接的形式链接到具体函数使用说明文章上struct hostent *gethostbyname(const char *hostname);struct hostent *gethostbyaddr(const char *addr, socklen_t len, int family);struct servent *getservbyname(const char *servname, const *protoname);struct servent *.........【阅读全文】

阅读(1505) | 评论(0) | 转发(0)

发布时间:2014-04-08 15:47:08

#include #include struct hostent *gethostbyname(const char *name);     这个函数的传入值是域名或者主机名,例如"www.google.com"等等。传出值,是一个hostent的结构。如果函数调用失败,将返回NULL。struct h.........【阅读全文】

阅读(4288) | 评论(0) | 转发(1)

发布时间:2014-03-19 14:27:51

头文件:#include  #include  module_init(init_function); -- (*)模块加载函数module_exit(exit_function); -- (*)模块卸载函数module_param(参数名,类型,读/写权限); -- 模块参数.类型可以是byte、short、ushort、int、uint、long、ulong、charp、bool或invbool.MODULE_L.........【阅读全文】

阅读(1296) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册