Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 2021 17:18:01 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 26a28a789aa7 - stable/12 - Allow the pseudo-errnos to be returned as well in boot loader
Message-ID:  <202108251718.17PHI1KY057858@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=26a28a789aa7d3041a4cf961526da2e6404fc1ac

commit 26a28a789aa7d3041a4cf961526da2e6404fc1ac
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2020-08-28 17:49:56 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-08-25 17:17:42 +0000

    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)
---
 sys/sys/errno.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108251718.17PHI1KY057858>