From patchwork Mon May 30 11:34:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 627740 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 3rJF0b46DPz9sCy for ; Mon, 30 May 2016 21:35:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=U3PbTQYd; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= lwrZutrArP+gEY/o1bm2acEvDoY1Z6Q5hyxwGPVVrFzfGCAA0zoZrB+0lHPg9XTx k4sNikwptKIqwCWaKrtup8E4FxbmpG1rpMkDNLyBGrUCo6jMRdNLOcFL7uJyKDoP Wi1KIAklOBQw7geUq70kkaBVg7vL5w5qM8qIbUGDrXk= 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:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=vbg+nw /6L4ajfUBU0aJ+GWshfVc=; b=U3PbTQYdr2IVPUxwkZDFRuic55OCPGRm3xSZUF D0ip1ZixE3ZrzJWncX+eKFQPPDhmrynoQq4gh2D1ITSx3P0vKDUdwAvLRtzYnLWB EYpMw5NNECdT27xZctU8ERXli6F5dv4VwhaqL0qDVsvMvvPWbkEtxbPfUth4Z1IF 6nlfY= Received: (qmail 93652 invoked by alias); 30 May 2016 11:35:06 -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 93615 invoked by uid 89); 30 May 2016 11:35:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=BAYES_20, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=smallexample, POSIX12008, stpcpy, McGrath X-HELO: mx1.redhat.com Date: Mon, 30 May 2016 13:34:52 +0200 To: libc-alpha@sourceware.org Subject: [PATCH COMMITTED] stpcpy is part of POSIX.1-2008 [BZ #3629] User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20160530113452.544E9400F0E4F@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) 2016-05-30 Roland McGrath [BZ #3629] * manual/string.texi (Copying Strings and Arrays): stpcpy is part of POSIX.1-2008. diff --git a/manual/string.texi b/manual/string.texi index 016fd0b..58a905e 100644 --- a/manual/string.texi +++ b/manual/string.texi @@ -612,9 +612,9 @@ and @samp{bar} to produce @samp{foobar}, which it then prints. @include stpcpy.c.texi @end smallexample -This function is not part of the ISO or POSIX standards, and is not -customary on Unix systems, but we did not invent it either. Perhaps it -comes from MS-DOG. +This function is part of POSIX.1-2008 and later editions, but was +available in @theglibc{} and other systems as an extension long before +it was standardized. Its behavior is undefined if the strings overlap. The function is declared in @file{string.h}.