Blame src/arch/nt32/vtbl.c

6f8ae4
#include <unistd.h>
6f8ae4
#include <stdint.h>
296178
#include "psxglue.h"
5b39d1
#include "errno.h"
296178
215106
const struct __ldso_vtbl *  __ldso_vtbl     = 0;
215106
const struct __psx_vtbl *   __psx_vtbl      = 0;
e1d268
const struct __seh_vtbl *   __seh_vtbl      = 0;
e1d268
215106
unsigned long **            __syscall_vtbl  = 0;
215106
unsigned long               __teb_sys_idx   = 0;
215106
unsigned long               __teb_libc_idx  = 0;
296178
5b39d1
long __syscall_alert(long n)
5b39d1
{
5b39d1
	char __lmsg[] = "DING ALARM! UNIMPLEMENTED SYSCALL 000\n";
5b39d1
5b39d1
	__lmsg[36] = '0' + n % 10; n /= 10;
5b39d1
	__lmsg[35] = '0' + n % 10; n /= 10;
5b39d1
	__lmsg[34] = '0' + n % 10;
5b39d1
5b39d1
	__psx_vtbl->log_output(
5b39d1
		__lmsg,
5b39d1
		sizeof(__lmsg));
5b39d1
5b39d1
	return -ENOSYS;
5b39d1
}