From owner-freebsd-current Wed May 27 14:40:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA08314 for freebsd-current-outgoing; Wed, 27 May 1998 14:40:40 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA08183 for ; Wed, 27 May 1998 14:39:51 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id NAA01753; Wed, 27 May 1998 13:34:17 -0700 (PDT) Message-Id: <199805272034.NAA01753@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Garrett Wollman cc: Mike Smith , current@FreeBSD.ORG Subject: Re: Argh! errno spam! In-reply-to: Your message of "Wed, 27 May 1998 17:29:53 EDT." <199805272129.RAA00108@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 May 1998 13:34:17 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > < said: > > > Just a grumble; the 'new' errno macro is a real pain for non-libc > > consumers, as well as anything that has a structure member called > > 'errno'. 8( > > Any C program which has a structure member called `errno' is > erroneous. How so? Structure members have been allowed to be non-unique for a while now; I don't recall there being constraints on globals vs. structure members at all. There are a few perfectly good reasons to call a structure member errno, but regardless of the good reasons, I fear for the code in the ports collection. 8( I was bitten by this with the NetBSD-derived bootcode I'm working on, which doesn't use libc and thus needs its own errno in order to be a reasonable facsimile therof. (Yes, I have a workaround.) -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message