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: 349727 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ozlabs.org (Postfix) with ESMTPS id EAA3F140087 for ; Sat, 17 May 2014 04:50:34 +1000 (EST) 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=hfpf+5ncy2TL0xJ7sQollFnmVSyz9sEptpuiVTIvgo+9aP aWZyXm+vPsxWK27i3B9xEOeJUCcAEIZMaw71QhmZoDqK5hNwugGNbJ032AJ25SUw nEcHCIhe9PeI/bOUvmDfG1dBbg/L1MKVWUajcimAek39UVONMT4BjmOBHw/OA= 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=tw/r/hyxN2xuu1LmXdtT AyC0esvUZz1A5vKVs8BJatWLCuA8vtXyGB9Z2x0NTCuQYvYUSQ59/stv6/o3LSDW 0oxvk98o5xygPJSLOmXMos0nto8TUNndGgqCRYcOZjFy+QKWuKskwwNbxkYCIDsY tn7rHCkPukGWzI1OaKML4XU= 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 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. */