From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932065AbeADIDr (ORCPT + 1 other); Thu, 4 Jan 2018 03:03:47 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:54748 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752215AbeADIDm (ORCPT ); Thu, 4 Jan 2018 03:03:42 -0500 From: Christoph Hellwig To: linux-aio@kvack.org Cc: Avi Kivity , linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] provide a generic io_syscall6 Date: Thu, 4 Jan 2018 09:03:22 +0100 Message-Id: <20180104080325.14716-4-hch@lst.de> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180104080325.14716-1-hch@lst.de> References: <20180104080325.14716-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: This allows to call a 6-argument syscall using the generic syscall() function from libc. No arch-specific version is specified as it would be a lot of effort for very little gain. Signed-off-by: Christoph Hellwig --- src/syscall.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/syscall.h b/src/syscall.h index 3819519..e7ff81b 100644 --- a/src/syscall.h +++ b/src/syscall.h @@ -39,3 +39,12 @@ #warning "using generic syscall method" #include "syscall-generic.h" #endif + +#ifndef io_syscall6 +#define io_syscall6(type,fname,sname,type1,arg1,type2,arg2,type3,arg3, \ + type4,arg4,type5,arg5,type6,arg6) \ +type fname (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, \ + type6 arg6) \ +_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3, (long)arg4, \ + (long)arg5, (long)arg5) +#endif /* io_syscall6 */ -- 2.14.2