1 #include <sys/types.h> 2 #include <sys/time.h> 3 #include <syslog.h> 4 main()5 main() 6 { 7 openlog("foo",0,LOG_MAIL); 8 syslog(0,"foo"); 9 } 10