Module Name:    src
Committed By:   dsl
Date:           Wed Jan  2 18:51:53 UTC 2013

Modified Files:
        src/sys/sys: errno.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/sys/errno.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/errno.h
diff -u src/sys/sys/errno.h:1.39 src/sys/sys/errno.h:1.40
--- src/sys/sys/errno.h:1.39	Tue Oct 31 00:38:07 2006
+++ src/sys/sys/errno.h	Wed Jan  2 18:51:53 2013
@@ -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 */

Reply via email to