From f0d5809dac5eb4bfd620b4d539dfb8b0b483459e Mon Sep 17 00:00:00 2001 From: joseph Date: Mon, 3 Aug 2009 17:00:12 +0000 Subject: Merge changes between r8732 and r8757 from /fsf/glibc-2_10-branch. git-svn-id: svn://svn.eglibc.org/branches/eglibc-2_10@8758 7b3dc134-2b1b-0410-93df-9e9f96275f8d --- ports/ChangeLog.mips | 5 ++++ .../sysdeps/unix/sysv/linux/mips/mips32/accept4.c | 32 ++++++++++++++++++++++ .../unix/sysv/linux/mips/mips32/internal_accept4.S | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 ports/sysdeps/unix/sysv/linux/mips/mips32/accept4.c create mode 100644 ports/sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips index d5122b178..4c4c373d5 100644 --- a/ports/ChangeLog.mips +++ b/ports/ChangeLog.mips @@ -1,3 +1,8 @@ +2009-08-03 Joseph Myers + + * sysdeps/unix/sysv/linux/mips/mips32/accept4.c, + sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: New. + 2009-07-20 Aurelien Jarno * sysdeps/unix/sysv/linux/mips/kernel-features.h: Define diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips32/accept4.c b/ports/sysdeps/unix/sysv/linux/mips/mips32/accept4.c new file mode 100644 index 000000000..98a41f96d --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/mips/mips32/accept4.c @@ -0,0 +1,32 @@ +/* Copyright (C) 2008, 2009 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, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +/* Avoid accept4.c trying to use a definition based on the socketcall + syscall and internal_accept4.S. */ + +#include +#include +#include + +#include +#include +#include + +#undef __NR_socketcall + +#include diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S b/ports/sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S new file mode 100644 index 000000000..30434d733 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S @@ -0,0 +1,2 @@ +/* MIPS does not have socket.S and the socketcall syscall should + generally be avoided, though it exists. */ -- cgit v1.2.3