From owner-freebsd-current@FreeBSD.ORG Thu Aug 7 08:08:25 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19B2737B401 for ; Thu, 7 Aug 2003 08:08:25 -0700 (PDT) Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8327843FCB for ; Thu, 7 Aug 2003 08:08:24 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 18944 invoked from network); 7 Aug 2003 15:08:23 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 7 Aug 2003 15:08:24 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h77F8M9s031285; Thu, 7 Aug 2003 11:08:22 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030807072635.G75796@root.org> Date: Thu, 07 Aug 2003 11:08:43 -0400 (EDT) From: John Baldwin To: Nate Lawson cc: current@freebsd.org Subject: RE: including ctype.h? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 15:08:25 -0000 On 07-Aug-2003 Nate Lawson wrote: > The header for acpi (acfreebsd.h) defines "strupr" which is just toupper() > in a loop. For the _KERNEL case, we include sys/ctype.h. For the > !_KERNEL case, I added #include but this results in an error > while building biosacpi.c in sys/boot/libi386. I believe this is because > the boot blocks are built using boot/libstand and it defines its own > toupper(). However, other user programs that use strupr() (the ACPI user > utilities) get a warning if ctype.h is not included. > > What's the best way to proceed? I would just have the userland programs include ctype.h. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/