2004-05-05 16:36:00 +00:00
|
|
|
#include <stdarg.h>
|
2004-05-06 14:15:07 +00:00
|
|
|
#include <sys/types.h>
|
2004-05-05 16:36:00 +00:00
|
|
|
#include "errmsg.h"
|
|
|
|
#include "str.h"
|
|
|
|
#include <string.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
2004-12-25 16:44:07 +00:00
|
|
|
extern void errmsg_writesys(int fd,const char* message,va_list list);
|
2004-05-05 16:36:00 +00:00
|
|
|
|
|
|
|
void errmsg_warnsys(const char* message, ...) {
|
|
|
|
va_list a;
|
|
|
|
va_start(a,message);
|
2004-12-25 16:44:07 +00:00
|
|
|
errmsg_writesys(2,message,a);
|
2004-05-05 16:36:00 +00:00
|
|
|
va_end(a);
|
|
|
|
}
|