1faf25f48SWarner Losh /* 2faf25f48SWarner Losh * Copyright 2022, Netflix, Inc 3faf25f48SWarner Losh * 4faf25f48SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 5faf25f48SWarner Losh */ 6faf25f48SWarner Losh 7faf25f48SWarner Losh #pragma once 8faf25f48SWarner Losh 9faf25f48SWarner Losh /* TODO: openzfs/include/sys/uio_impl.h must not be included in stand */ 10faf25f48SWarner Losh #ifndef _SYS_UIO_IMPL_H 11faf25f48SWarner Losh #define _SYS_UIO_IMPL_H 12faf25f48SWarner Losh #endif 13faf25f48SWarner Losh 14faf25f48SWarner Losh /* 15faf25f48SWarner Losh * sys/atomic.h must be included after sys/sysmacros.h. The latter includes 16faf25f48SWarner Losh * machine/atomic.h, which interferes. Sadly, upstream includes them in the 17faf25f48SWarner Losh * wrong order, so we include it here to fix that. 18faf25f48SWarner Losh */ 19faf25f48SWarner Losh #include <sys/sysmacros.h> 20faf25f48SWarner Losh 21faf25f48SWarner Losh #include_next <sys/zfs_context.h> 22faf25f48SWarner Losh 23faf25f48SWarner Losh #define ZFS_MODULE_PARAM_ARGS void 24faf25f48SWarner Losh 25faf25f48SWarner Losh /* 26faf25f48SWarner Losh * Not sure why I need these, but including the canonical stand.h fails because 27faf25f48SWarner Losh * the normal string.h doesn't like all the other shenanigans in this environment. 28faf25f48SWarner Losh */ 29faf25f48SWarner Losh void *memcpy(void *dst, const void *src, size_t len); 30faf25f48SWarner Losh void *memset(void *dest, int c, size_t len); 31faf25f48SWarner Losh void *memmem(const void *big, size_t big_len, const void *little, 32faf25f48SWarner Losh size_t little_len); 33