From patchwork Fri May 16 18:50:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 979 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id A90C5360098 for ; Fri, 16 May 2014 11:50:31 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14307373) id 61D4F63D09566; Fri, 16 May 2014 11:50:31 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx23.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 3F38063D09583 for ; Fri, 16 May 2014 11:50:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=tjRPa/HHSCKFwrXk57fS9sTizzK+dHImNrtCCY6xwbBn0R ROAaUFRc+9s3pYdOA4rInxaiyy9TaX29fcTtVMW04UGG1emYpXwMaTrqSk5nzMi1 BYSzRYJXHAox2MDbNAFK79ywH+OK2rpFcx/hwYFpgnAWm09PycHlRIGIJmAZw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=GYWdFCmF2h3c4GiNKEQ6Rxo7ghg=; b=g3aUkREuQTZUAStEHjKd ORjOif3pnuci69LgZPu+iHV52ey8ND0420gWHj9v8lTH2l1Y3nlEb/QeOSqdiPGU rCG2hSE/FvPK2IIEYZnLS7moq8OWeepiGho9mZB+Q7TUEvVlyzGGUfHi0xxGFHjO cVgIWA7HubaN8ysYfQpbq2s= Received: (qmail 32671 invoked by alias); 16 May 2014 18:50:29 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 32658 invoked by uid 89); 16 May 2014 18:50:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] Add stub arch-fork.h header. Message-Id: <20140516185025.E1D4C2C3A14@topped-with-meat.com> Date: Fri, 16 May 2014 11:50:25 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=HrjlRSjS c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=t88k5L9wDm8A:10 a=Z6MIti7PxpgA:10 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=mDV3o1hIAAAA:8 a=dQFsdHIOMo_cXHyL26oA:9 a=CjuIK1q_8ugA:10 X-DH-Original-To: glibc@patchwork.siddhesh.in In fixing the mips/powerpc breakage I failed to realize I was breaking the other machines that I hadn't yet touched. This gets back to the status quo. Thanks, Roland * sysdeps/unix/sysv/linux/arch-fork.h: New file. --- /dev/null +++ b/sysdeps/unix/sysv/linux/arch-fork.h @@ -0,0 +1,27 @@ +/* ARCH_FORK definition for Linux fork implementation. Stub version. + Copyright (C) 2014 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 + . */ + +/* This file should define the function-like macro of no arguments + ARCH_FORK to an INLINE_SYSCALL invocation of the clone-like system + call, passing the CLONE_CHILD_SETTID and CLONE_CHILD_CLEARTID flags + and &THREAD_SELF->tid as the TID address. + + Machines that lack an arch-fork.h header file will hit an #error in + fork.c; this stub file doesn't contain an #error itself mainly for + the transition period of migrating old machine-specific fork.c files + to machine-specific arch-fork.h instead. */