libc_fmt

Family of src/nx/nn/hooks.hook. The hooks_off setting turns a family off by its name.

the C library's formatted output and input (libc_fmt.c): each conversion the host's snprintf or sscanf, with the guest's arguments (a direct call's registers and stack, or a va_list's record); the standard output the log. A format with a conversion it doesn't take runs the function's own code. Off on Windows

snprintf source

As C: i32 (addr dst, u64 size, addr fmt)
Handler: libc_snprintf (libc_fmt.c)

vsnprintf source

As C: i32 (addr dst, u64 size, addr fmt, addr ap)
Handler: libc_vsnprintf (libc_fmt.c)

sprintf source

As C: i32 (addr dst, addr fmt)
Handler: libc_sprintf (libc_fmt.c)

vsprintf source

As C: i32 (addr dst, addr fmt, addr ap)
Handler: libc_vsprintf (libc_fmt.c)

printf source

As C: i32 (addr fmt)
Handler: libc_printf (libc_fmt.c)

vprintf source

As C: i32 (addr fmt, addr ap)
Handler: libc_vprintf (libc_fmt.c)

puts source

As C: i32 (addr s)
Handler: libc_puts (libc_fmt.c)

putchar source

As C: i32 (i32 ch)
Handler: libc_putchar (libc_fmt.c)

perror source

As C: void (addr s)
Handler: libc_perror (libc_fmt.c)

sscanf source

As C: i32 (addr s, addr fmt)
Handler: libc_sscanf (libc_fmt.c)

vsscanf source

As C: i32 (addr s, addr fmt, addr ap)
Handler: libc_vsscanf (libc_fmt.c)


Made from ScarletNX's Sail at 166ad3910f80. The hooks' and the SVCs' declarations and their handlers are ScarletNX's (GPL-3.0-or-later); the SVCs' declarations are Eden's, as hos.svc says.