* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)perror.c 5.3 (Berkeley) %G%";
#endif LIBC_SCCS and not lint
* Print the error indicated
extern char *sys_errlist
[];
register struct iovec
*v
= iov
;
v
->iov_base
= errno
< sys_nerr
? sys_errlist
[errno
] : "Unknown error";
v
->iov_len
= strlen(v
->iov_base
);
writev(2, iov
, (v
- iov
) + 1);