Update syslog.c

add fucntions such as log_open, log_ret, log_sys, log_msg, log_quit, log_doit