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