Syslog
V1.0
email: mesmerli@hotmail.com
syslog.c
#include <syslog.h>
#include <stdio.h>
int main()
{
FILE *f;
f = fopen("not_here","r");
if(!f)
syslog(LOG_ERR|LOG_USER,"oops - %mn");
exit(0);
}
Banto ARM Linux 教材, since 2004
V1.0
email: mesmerli@hotmail.com
#include <syslog.h>
#include <stdio.h>
int main()
{
FILE *f;
f = fopen("not_here","r");
if(!f)
syslog(LOG_ERR|LOG_USER,"oops - %mn");
exit(0);
}
張貼者: 邦邦 於 星期六, 5月 12, 2007
標籤: Linux 驅動程式篇
0 意見:
張貼留言