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.
This commit is contained in:
Warner Losh 2020-08-28 17:49:56 +00:00
parent f9553770c0
commit 0c35b86091
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364925

View File

@ -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 */