summaryrefslogtreecommitdiffstats
path: root/runtime/user/emul.h
blob: d6f0853e301b2889e38e7a53178226ca4ea5866b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
{
	int i;
	i=vsnprintf(buf,size,fmt,args);
	return (i >= size) ? (size - 1) : i;
}

#define _stp_log printf

#undef smp_processor_id
#define smp_processor_id(x) 0

#include <stdarg.h>
unsigned long strtoul(const char *nptr, char **endptr, int base);
#define simple_strtoul strtoul