Unix/Linux Go Back    

Plan 9 - man page for perror (plan9 section 2)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

PERROR(2)										PERROR(2)

       perror, syslog - system error messages

       #include <u.h>
       #include <libc.h>

       void perror(char *s)

       void syslog(int cons, char *logname, char *fmt, ...)

       Perror produces a short error message on the standard error file describing the last error
       encountered during a call to the system.  First the argument string s is printed,  then	a
       colon,  then the message and a newline.	If s is 0, only the error message and newline are

       Syslog logs messages in the file named by logname in the directory /sys/log; the file must
       already exist and should be append-only.  Logname must contain no slashes.  The message is
       a line with several fields: the name of the machine writing  the  message;  the	date  and
       time;  the message specified by the print(2) format fmt and any following arguments; and a
       final newline.  If cons is set or the log file cannot  be  opened,  the	message  is  also
       printed on the system console.  Syslog can be used safely in multi-threaded programs.


       intro(2), errstr(2), the %r format in print(2)

       Perror is a holdover; the %r format in print(2) is preferred.

Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 11:29 PM.