Blame src/arch/nt32/vtbl.c

716654
/**************************************************************************/
716654
/*  mmglue: midipix architecture- and target-specific bits for musl libc  */
716654
/*  Copyright (C) 2013--2023  SysDeer Technologies, LLC                   */
716654
/*  Released under the Standard MIT License; see COPYING.MMGLUE.          */
716654
/**************************************************************************/
716654
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;
116201
const struct __seh_vtbl *   __eh_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
7f1932
	__psx_vtbl->mm_log_output(
5b39d1
		__lmsg,
5b39d1
		sizeof(__lmsg));
5b39d1
5b39d1
	return -ENOSYS;
5b39d1
}