From owner-cvs-all@FreeBSD.ORG Wed Nov 9 07:01:40 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7516016A41F; Wed, 9 Nov 2005 07:01:40 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1955D43D46; Wed, 9 Nov 2005 07:01:40 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 509F1BC66; Wed, 9 Nov 2005 07:01:33 +0000 (UTC) To: Nate Lawson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 08 Nov 2005 19:24:06 PST." <43716BD6.5050604@root.org> Date: Wed, 09 Nov 2005 08:01:33 +0100 Message-ID: <26185.1131519693@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Craig Rodrigues , cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern vfs_mount.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 07:01:40 -0000 In message <43716BD6.5050604@root.org>, Nate Lawson writes: >While I don't have ideas for a better general mechanism for this, I >think it sets a bad precedent. We can't have every complex syscall >transporting its own error message strings back to the user program. >And we can't expand errno to be the union of every single API-specific >error either. That was one the main points of my ioctl talk at BSDcan. One way to solve it: Hang a sbuf pointer in each thread and APIs cound stuff their error message there. Add a new syscall to return the string to userland. Modify perror(3), err(3) and similar to pull out the "extended" error, if there is one. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.