Skip to content

XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)

C
390 B
Raw Blame
// SPDX-License-Identifier: APSL-2.0
// The kernel has no <stdio.h>; PureDarwin's AMFI stub includes it for printf and snprintf only.
#ifndef XNULINUX_KEXT_STDIO_H
#define XNULINUX_KEXT_STDIO_H
#include <stddef.h>
int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
int snprintf(char *buf, size_t len, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
#endif