From patchwork Wed Sep 1 01:49:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carmelo AMOROSO X-Patchwork-Id: 146431 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o818nOta030402 for ; Wed, 1 Sep 2010 08:49:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751863Ab0IAItY (ORCPT ); Wed, 1 Sep 2010 04:49:24 -0400 Received: from eu1sys200aog114.obsmtp.com ([207.126.144.137]:42195 "EHLO eu1sys200aog114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751383Ab0IAItX (ORCPT ); Wed, 1 Sep 2010 04:49:23 -0400 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob114.postini.com ([207.126.147.11]) with SMTP ID DSNKTH4TkbdseMv2yCtQP7sLxjAaCUn7mhbm@postini.com; Wed, 01 Sep 2010 08:49:22 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5B5509A for ; Wed, 1 Sep 2010 08:49:21 +0000 (GMT) Received: from mail3.ctn.st.com (mail3.ctn.st.com [164.130.116.150]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 90EF82064; Wed, 1 Sep 2010 08:49:20 +0000 (GMT) Received: from localhost ([164.130.129.16]) by mail3.ctn.st.com (MOS 3.8.7a) with ESMTP id DDP02487 (AUTH amorosoc); Wed, 1 Sep 2010 10:49:20 +0200 (CEST) From: Carmelo AMOROSO To: linux-sh@vger.kernel.org Cc: Carmelo Amoroso , Francesco Rundo Subject: [PATCH] sh: Add syscall entries for non multiplexed socket calls Date: Wed, 1 Sep 2010 03:49:29 +0200 Message-Id: <1283305771-31182-1-git-send-email-carmelo.amoroso@st.com> X-Mailer: git-send-email 1.5.5.6 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 01 Sep 2010 08:49:24 +0000 (UTC) diff --git a/arch/sh/include/asm/unistd_32.h b/arch/sh/include/asm/unistd_32.h index 01183ad..2000709 100644 --- a/arch/sh/include/asm/unistd_32.h +++ b/arch/sh/include/asm/unistd_32.h @@ -349,7 +349,26 @@ #define __NR_fanotify_mark 338 #define __NR_prlimit64 339 -#define NR_syscalls 340 +/* Non-multiplexed socket family */ +#define __NR_socket 340 +#define __NR_bind 341 +#define __NR_connect 342 +#define __NR_listen 343 +#define __NR_accept 344 +#define __NR_getsockname 345 +#define __NR_getpeername 346 +#define __NR_socketpair 347 +#define __NR_send 348 +#define __NR_sendto 349 +#define __NR_recv 350 +#define __NR_recvfrom 351 +#define __NR_shutdown 352 +#define __NR_setsockopt 353 +#define __NR_getsockopt 354 +#define __NR_sendmsg 355 +#define __NR_recvmsg 356 + +#define NR_syscalls 357 #ifdef __KERNEL__ diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S index 3c6d669..0847433 100644 --- a/arch/sh/kernel/syscalls_32.S +++ b/arch/sh/kernel/syscalls_32.S @@ -356,3 +356,21 @@ ENTRY(sys_call_table) .long sys_fanotify_init .long sys_fanotify_mark .long sys_prlimit64 + /* Broken-out socket family */ + .long sys_socket /* 340 */ + .long sys_bind + .long sys_connect + .long sys_listen + .long sys_accept + .long sys_getsockname /* 345 */ + .long sys_getpeername + .long sys_socketpair + .long sys_send + .long sys_sendto + .long sys_recv /* 350 */ + .long sys_recvfrom + .long sys_shutdown + .long sys_setsockopt + .long sys_getsockopt + .long sys_sendmsg /* 355 */ + .long sys_recvmsg