1 /* 2 * Copyright © 2021, Keith Packard <keithp@keithp.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef _PICOLIBC_HOOKS_H_ 8 #define _PICOLIBC_HOOKS_H_ 9 10 #include <errno.h> 11 #include <stdio.h> 12 #include <stdlib.h> 13 #include <zephyr/posix/sys/stat.h> 14 #include <sys/time.h> 15 #include <zephyr/arch/cpu.h> 16 #include <zephyr/linker/linker-defs.h> 17 #include <zephyr/sys/util.h> 18 #include <zephyr/sys/errno_private.h> 19 #include <zephyr/sys/libc-hooks.h> 20 #include <zephyr/internal/syscall_handler.h> 21 #include <zephyr/app_memory/app_memdomain.h> 22 #include <zephyr/init.h> 23 #include <zephyr/sys/sem.h> 24 #include <zephyr/logging/log.h> 25 #ifdef CONFIG_MMU 26 #include <zephyr/kernel/mm.h> 27 #endif 28 29 #define LIBC_BSS K_APP_BMEM(z_libc_partition) 30 #define LIBC_DATA K_APP_DMEM(z_libc_partition) 31 32 #endif /* _PICOLIBC_HOOKS_H_ */ 33