From patchwork Thu Jan 16 16:17:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guy Martin X-Patchwork-Id: 3499551 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D00CD9F2E9 for ; Thu, 16 Jan 2014 16:33:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD90A20170 for ; Thu, 16 Jan 2014 16:33:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 71EBA20171 for ; Thu, 16 Jan 2014 16:33:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752120AbaAPQdS (ORCPT ); Thu, 16 Jan 2014 11:33:18 -0500 Received: from venus.vo.lu ([80.90.45.96]:58020 "EHLO venus.vo.lu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751890AbaAPQdR (ORCPT ); Thu, 16 Jan 2014 11:33:17 -0500 X-Greylist: delayed 905 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Jan 2014 11:33:17 EST Received: from ibiza.lux.tuxicoman.be (vodsl-8217.vo.lu [85.93.199.25]) by venus.vo.lu with SMTP (version=TLS\Tls cipher=Aes128 bits=128); Thu, 16 Jan 2014 17:17:51 +0100 Received: from cartman.lux.tuxicoman.be ([172.18.0.2] helo=webmail.tuxicoman.be) by ibiza.lux.tuxicoman.be with esmtp (Exim 4.80.1) (envelope-from ) id 1W3pdh-0007I2-Oy for linux-parisc@vger.kernel.org; Thu, 16 Jan 2014 17:17:53 +0100 MIME-Version: 1.0 Date: Thu, 16 Jan 2014 17:17:53 +0100 From: Guy Martin To: linux-parisc@vger.kernel.org Subject: [PATCH] Make EWOULDBLOCK be equal to EAGAIN on parisc. Message-ID: <7b86ec9f26dd9a18e7fae7a39e6a3382@tuxicoman.be> X-Sender: gmsoft@tuxicoman.be User-Agent: Roundcube Webmail/0.9.5 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Linux, only parisc uses a different value for EWOULDBLOCK which causes a lot of troubles for applications not checking for both values. Since the hpux compat is long dead, make EWOULDBLOCK behave the same as all other architectures. Signed-off-by: Guy Martin --- arch/parisc/include/uapi/asm/errno.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) #define ENAMETOOLONG 248 /* File name too long */ #define ELOOP 249 /* Too many symbolic links encountered */ diff --git a/arch/parisc/include/uapi/asm/errno.h b/arch/parisc/include/uapi/asm/errno.h index f3a8aa5..c0ae625 100644 --- a/arch/parisc/include/uapi/asm/errno.h +++ b/arch/parisc/include/uapi/asm/errno.h @@ -106,7 +106,7 @@ #define EALREADY 244 /* Operation already in progress */ #define EINPROGRESS 245 /* Operation now in progress */ -#define EWOULDBLOCK 246 /* Operation would block (Linux returns EAGAIN) */ +#define EWOULDBLOCK EAGAIN /* Operation would block (Not HPUX compliant) */ #define ENOTEMPTY 247 /* Directory not empty */