aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2020-08-28 17:49:56 +0000
committerWarner Losh <imp@FreeBSD.org>2020-08-28 17:49:56 +0000
commit0c35b860913807d4937098d5238c5f4363fb6362 (patch)
tree75676a4848d1f469db73f47b9aa657f8d35db7e2 /sys/sys
parentf9553770c03e82abcae07397025797ef346fbdab (diff)
downloadsrc-0c35b860913807d4937098d5238c5f4363fb6362.tar.gz
src-0c35b860913807d4937098d5238c5f4363fb6362.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.
Notes
Notes: svn path=/head/; revision=364925
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/errno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/errno.h b/sys/sys/errno.h
index 6994c0612f79..e53a8d4c6c7f 100644
--- a/sys/sys/errno.h
+++ b/sys/sys/errno.h
@@ -187,7 +187,7 @@ __END_DECLS
#define ELAST 97 /* 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 */