From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: [PATCH] asm-generic: add EMAXERRNO Date: Mon, 15 Jun 2009 07:31:51 -0600 Message-ID: <20090615133151.GI19977@parisc-linux.org> References: <200906151530.10299.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from palinux.external.hp.com ([192.25.206.14]:34930 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752671AbZFONbt (ORCPT ); Mon, 15 Jun 2009 09:31:49 -0400 Content-Disposition: inline In-Reply-To: <200906151530.10299.arnd@arndb.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Arnd Bergmann Cc: liqin.chen@sunplusct.com, Andrew Morton , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org On Mon, Jun 15, 2009 at 03:30:09PM +0200, Arnd Bergmann wrote: > Some architectures want to flag error returns from a syscall based on > the return value. The range from zero to -511 is for errors that > we can return to user space, so add a #define for this to > include/asm-generic/errno.h. I thought we could return anything up to -4095. -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step."