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