search for: the_errno

Displaying 1 result from an estimated 1 matches for "the_errno".

Did you mean: h_errno
2008 Aug 27
0
[PATCH] stubdom: add v?errx? and v?warnx? functions
...diff -r 14a9a1629590 extras/mini-os/lib/sys.c --- a/extras/mini-os/lib/sys.c Wed Aug 27 10:26:50 2008 +0100 +++ b/extras/mini-os/lib/sys.c Wed Aug 27 10:29:36 2008 +0100 @@ -1035,6 +1035,68 @@ void closelog(void) syslog_ident = NULL; } +void vwarn(const char *format, va_list ap) +{ + int the_errno = errno; + printk("stubdom: "); + if (format) { + print(0, format, ap); + printk(", "); + } + printk("%s", strerror(the_errno)); +} + +void warn(const char *format, ...) +{ + va_list ap; + va_start(ap, format); + vwarn(format, ap); +...