ref: 0362ec1b79d9b6356b79b732fc9865e976c746b0
dir: /sys/src/libc/port/perror.c/
#include <u.h>
#include <libc.h>
void
perror(char *s)
{
char buf[ERRMAX];
buf[0] = '\0';
errstr(buf, sizeof buf);
if(s && *s)
fprint(2, "%s: %s\n", s, buf);
else
fprint(2, "%s\n", buf);
}