From owner-freebsd-current Fri May 21 1:43: 3 1999 Delivered-To: freebsd-current@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id 86D9C14D61; Fri, 21 May 1999 01:42:58 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id SAA06293; Fri, 21 May 1999 18:42:57 +1000 Date: Fri, 21 May 1999 18:42:57 +1000 From: Bruce Evans Message-Id: <199905210842.SAA06293@godzilla.zeta.org.au> To: dfr@nlsystems.com, nick.hibma@jrc.it Subject: Re: priorities Cc: current@FreeBSD.ORG, dfr@FreeBSD.ORG, hibma@skylink.it, peter@netplex.com.au Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> How do you guarantuee that the errno is positive? Add an assert >> somewhere, like checking whether ENXIO >= PRIORITY_FAIL? > >They just are positive and have always been positive :-) > >Changing that (making errnos negative) would break so much code I don't >even want to think about it. From errno.h: #ifdef KERNEL /* pseudo-errors returned inside kernel to modify return to process */ #define ERESTART (-1) /* restart syscall */ #define EJUSTRETURN (-2) /* don't modify regs, just return */ #define ENOIOCTL (-3) /* ioctl not handled by this layer */ #endif Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message