Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Expose the pseudo-errors if _KMEMUSER is defined (as...



details:   https://anonhg.NetBSD.org/src/rev/28314b1fc25f
branches:  trunk
changeset: 783656:28314b1fc25f
user:      dsl <dsl%NetBSD.org@localhost>
date:      Wed Jan 02 18:51:53 2013 +0000

description:
Expose the pseudo-errors if _KMEMUSER is defined (as well as _KERNEL).
CVS :----------------------------------------------------------------------

diffstat:

 sys/sys/errno.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1646548048aa -r 28314b1fc25f sys/sys/errno.h
--- a/sys/sys/errno.h   Wed Jan 02 18:50:07 2013 +0000
+++ b/sys/sys/errno.h   Wed Jan 02 18:51:53 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: errno.h,v 1.39 2006/10/31 00:38:07 cbiere Exp $        */
+/*     $NetBSD: errno.h,v 1.40 2013/01/02 18:51:53 dsl Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -174,7 +174,7 @@
 
 #define        ELAST           96              /* Must equal largest errno */
 
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_KMEMUSER)
 /* pseudo-errors returned inside kernel to modify return to process */
 #define        EJUSTRETURN     -2              /* don't modify regs, just return */
 #define        ERESTART        -3              /* restart syscall */



Home | Main Index | Thread Index | Old Index