diff options
author | Warner Losh <imp@FreeBSD.org> | 2020-08-28 17:49:56 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2021-08-25 17:18:08 +0000 |
commit | 70eee3be067870f8147afa7695bf2494fd1e3aa4 (patch) | |
tree | 480f22732d6033b2daa04098687192e74c65a769 | |
parent | eb01dfe6c01c700418a872ae520187a1292ea7da (diff) | |
download | src-70eee3be067870f8147afa7695bf2494fd1e3aa4.tar.gz src-70eee3be067870f8147afa7695bf2494fd1e3aa4.zip |
Allow the pseudo-errnos to be returned as well in boot loader
Expose the pseudo-errno values in _STANDALONE is defined so that code
in the boot loader can make use of them. Nothing uses them today, but
the zstd support that's coming will need them.
(cherry picked from commit 0c35b860913807d4937098d5238c5f4363fb6362)
-rw-r--r-- | sys/sys/errno.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/errno.h b/sys/sys/errno.h index 0292c6a17da2..41d657149222 100644 --- a/sys/sys/errno.h +++ b/sys/sys/errno.h @@ -184,7 +184,7 @@ __END_DECLS #define ELAST 96 /* Must be equal largest errno */ #endif /* _POSIX_SOURCE */ -#if defined(_KERNEL) || defined(_WANT_KERNEL_ERRNO) +#if defined(_KERNEL) || defined(_WANT_KERNEL_ERRNO) || defined(_STANDALONE) /* pseudo-errors returned inside kernel to modify return to process */ #define ERESTART (-1) /* restart syscall */ #define EJUSTRETURN (-2) /* don't modify regs, just return */ |