From bfff8b1becd7d01c074177df7196ab327cd8c844 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sun, 1 Jan 2017 00:14:16 +0000 Subject: Update copyright dates with scripts/update-copyrights. --- sysdeps/unix/sysv/linux/mips/mips32/accept4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/mips/mips32/accept4.c') diff --git a/sysdeps/unix/sysv/linux/mips/mips32/accept4.c b/sysdeps/unix/sysv/linux/mips/mips32/accept4.c index e5f9dfeb51..ff8ac37103 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/accept4.c +++ b/sysdeps/unix/sysv/linux/mips/mips32/accept4.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2008-2016 Free Software Foundation, Inc. +/* Copyright (C) 2008-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or -- cgit v1.2.3 From d08a482bc2b9a7ae69fd5c587e1f5d12aa317e0d Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 9 May 2017 23:16:19 +0000 Subject: Remove MIPS32 accept4, recvmmsg, sendmmsg implementations. MIPS32 has its own implementations of accept4, recvmmsg and sendmmsg because at one point it needed to avoid socketcall being used for those functions (MIPS32 has socketcall, but has never used it in glibc, and so never had socket.S at the time when socketcall used such a per-architecture file instead of C code). The current code no longer uses socketcall based on __NR_socketcall being defined, and the syscalls are always present on MIPS for supported kernels so the socketcall case in the code is dead for MIPS; this patch removes the implementations that are, as Adhemerval noted, no longer needed. Tested compilation for mips-linux-gnu with build-many-glibcs.py. * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Remove file. * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise. --- ChangeLog | 4 ++++ sysdeps/unix/sysv/linux/mips/mips32/accept4.c | 30 -------------------------- sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c | 29 ------------------------- sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c | 29 ------------------------- 4 files changed, 4 insertions(+), 88 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/mips/mips32/accept4.c delete mode 100644 sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c delete mode 100644 sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c (limited to 'sysdeps/unix/sysv/linux/mips/mips32/accept4.c') diff --git a/ChangeLog b/ChangeLog index 90aed79f8c..a772fce69f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2017-05-09 Joseph Myers + * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Remove file. + * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise. + * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise. + * sysdeps/unix/sysv/linux/accept4.c (accept4): Use syscall if [__ASSUME_ACCEPT4_SYSCALL], otherwise socketcall. * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Use syscall if diff --git a/sysdeps/unix/sysv/linux/mips/mips32/accept4.c b/sysdeps/unix/sysv/linux/mips/mips32/accept4.c deleted file mode 100644 index ff8ac37103..0000000000 --- a/sysdeps/unix/sysv/linux/mips/mips32/accept4.c +++ /dev/null @@ -1,30 +0,0 @@ -/* Copyright (C) 2008-2017 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see - . */ - -/* Avoid accept4.c trying to use a definition based on the socketcall - syscall and internal_accept4.S. */ - -#include -#include -#include - -#include -#include - -#undef __NR_socketcall - -#include diff --git a/sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c b/sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c deleted file mode 100644 index 33d87de35e..0000000000 --- a/sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c +++ /dev/null @@ -1,29 +0,0 @@ -/* Copyright (C) 2010-2017 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see - . */ - -/* Avoid recvmmsg.c trying to use a definition based on the socketcall - syscall and internal_recvmmsg.S. */ - -#include -#include - -#include -#include - -#undef __NR_socketcall - -#include diff --git a/sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c b/sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c deleted file mode 100644 index 8d113832ee..0000000000 --- a/sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c +++ /dev/null @@ -1,29 +0,0 @@ -/* Copyright (C) 2011-2017 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see - . */ - -/* Avoid sendmmsg.c trying to use a definition based on the socketcall - syscall and internal_sendmmsg.S. */ - -#include -#include - -#include -#include - -#undef __NR_socketcall - -#include -- cgit v1.2.3