]> git.lizzy.rs Git - plan9front.git/blob - sys/src/ape/lib/fmt/werrstr.c
sdiahci, sdodin: avoid calling kproc() while holding ilock()
[plan9front.git] / sys / src / ape / lib / fmt / werrstr.c
1 #include <stdarg.h>
2 #include <errno.h>
3 #include "fmt.h"
4
5 extern char *_plan9err;
6
7 void
8 werrstr(const char *fmt, ...)
9 {
10         va_list arg;
11
12         va_start(arg, fmt);
13         snprint(_plan9err, 128, fmt, arg);
14         va_end(arg);
15         errno = EPLAN9;
16 }