Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2020 17:49:56 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364925 - head/sys/sys
Message-ID:  <202008281749.07SHnujY002977@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Aug 28 17:49:56 2020
New Revision: 364925
URL: https://svnweb.freebsd.org/changeset/base/364925

Log:
  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.

Modified:
  head/sys/sys/errno.h

Modified: head/sys/sys/errno.h
==============================================================================
--- head/sys/sys/errno.h	Fri Aug 28 17:36:14 2020	(r364924)
+++ head/sys/sys/errno.h	Fri Aug 28 17:49:56 2020	(r364925)
@@ -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?202008281749.07SHnujY002977>