Update syserr.c

add functions such as err_exit,err_dump,err_msg,err_quit,err_doit