From owner-cvs-all Sat Sep 12 17:40:32 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA00823 for cvs-all-outgoing; Sat, 12 Sep 1998 17:40:32 -0700 (PDT) (envelope-from owner-cvs-all) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA00794; Sat, 12 Sep 1998 17:40:17 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hvergelmir.ifi.uio.no (2602@hvergelmir.ifi.uio.no [129.240.64.129]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id CAA13982; Sun, 13 Sep 1998 02:39:59 +0200 (MET DST) Received: (from dag-erli@localhost) by hvergelmir.ifi.uio.no ; Sun, 13 Sep 1998 02:39:59 +0200 (MET DST) Mime-Version: 1.0 To: Garrett Wollman Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/include err.h src/lib/libc/gen err.3 err.c References: <199809122102.OAA16353@freefall.freebsd.org> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling =?iso-8859-1?Q?Co=EFdan?= =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 13 Sep 1998 02:39:58 +0200 In-Reply-To: Garrett Wollman's message of "Sat, 12 Sep 1998 14:02:23 -0700 (PDT)" Message-ID: Lines: 21 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id RAB00806 Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Garrett Wollman writes: > - Add a new flavor of the err(3) family, which takes an explicit > errno argument rather than implicitly examining errno. This > will make it easier to use these functions in conjunction with > modern library interfaces that return an errno value explicitly. Thank you, thank you, thank you! This makes a few things so much easier... I have a couple of requests for the err(3) family: - possibility to specify a prefix string (e.g. pid) - possibility to provide a user-defined function that returns a pointer to a prefix string (e.g. date and time, thread) If nobody objects, I'll put both those features in myself. DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no