From owner-freebsd-arch@FreeBSD.ORG Fri Jan 27 17:47:50 2006 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF9D016A5FE; Fri, 27 Jan 2006 17:47:35 +0000 (GMT) (envelope-from wollman@khavrinen.csail.mit.edu) Received: from khavrinen.csail.mit.edu (khavrinen.csail.mit.edu [128.30.28.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3690344426; Fri, 27 Jan 2006 17:24:34 +0000 (GMT) (envelope-from wollman@khavrinen.csail.mit.edu) Received: from khavrinen.csail.mit.edu (localhost.csail.mit.edu [127.0.0.1]) by khavrinen.csail.mit.edu (8.13.1/8.13.4) with ESMTP id k0RHOURf034302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK CN=khavrinen.csail.mit.edu issuer=Client+20CA); Fri, 27 Jan 2006 12:24:32 -0500 (EST) (envelope-from wollman@khavrinen.csail.mit.edu) Received: (from wollman@localhost) by khavrinen.csail.mit.edu (8.13.1/8.13.4/Submit) id k0RHOUat034301; Fri, 27 Jan 2006 12:24:30 -0500 (EST) (envelope-from wollman) Date: Fri, 27 Jan 2006 12:24:30 -0500 (EST) From: Garrett Wollman Message-Id: <200601271724.k0RHOUat034301@khavrinen.csail.mit.edu> To: glebius@freebsd.org X-Newsgroups: mit.lcs.mail.freebsd-arch In-Reply-To: <20060127093602.GO83922@cell.sick.ru> Organization: MIT Computer Science & Artificial Intelligence Lab X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (khavrinen.csail.mit.edu [127.0.0.1]); Fri, 27 Jan 2006 12:24:33 -0500 (EST) X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on khavrinen.csail.mit.edu Cc: arch@freebsd.org Subject: Re: fix return code for pipe(2) syscall X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 17:47:50 -0000 In article <20060127093602.GO83922@cell.sick.ru> you write: >Yes, according to SUSv3 the only errors from pipe(2) are ENFILE >and EMFILE. POSIX does not define an exhaustive enumeration of error conditions. *Any* error return is permissible, provided only that *for those conditions noted in the ERRORS section* the code identified for that condition is returned. It is perfectly permissible for every system call to fail with [ENOTADUCK] unless the first five bytes of the caller's address space contain the word "quack". -GAWollman