NetBSD Problem Report #48039

From dholland@netbsd.org  Wed Jul 10 05:56:06 2013
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7E84171682
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 10 Jul 2013 05:56:06 +0000 (UTC)
Message-Id: <20130710055606.0EC9614A1E4@mail.netbsd.org>
Date: Wed, 10 Jul 2013 05:56:06 +0000 (UTC)
From: dholland@netbsd.org
Reply-To: dholland@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: <err.h> brings in <stdarg.h>
X-Send-Pr-Version: 3.95

>Number:         48039
>Category:       lib
>Synopsis:       <err.h> brings in <stdarg.h>
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 10 06:00:00 +0000 2013
>Originator:     David A. Holland
>Release:        NetBSD 6.99.19 (20130404)
>Organization:
>Environment:
System: valkyrie 6.99.19 NetBSD 6.99.19 (VALKYRIE) #12: Thu Apr  4 02:19:36 EDT 2013  dholland@valkyrie:/usr/src/sys/arch/amd64/compile/VALKYRIE amd64
Architecture: x86_64
Machine: amd64
>Description:

If you include <err.h>, it includes <stdarg.h>.

This is not necessarily wrong as I don't think err.h is defined by any
standards, but it's close enough to a standard header in BSD-land that
this violates the POLA.

on dfly this is not the case (see PR 48037)

>How-To-Repeat:

   ----
#include <err.h>
va_list foo;
   ----

>Fix:
tbd

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.