From patchwork Tue Dec 10 17:01:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1207167 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515623-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="oqNzBANV"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="GrITLT4E"; dkim-atps=neutral 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 47XRD76f7zz9sR0 for ; Wed, 11 Dec 2019 04:01:27 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=lc2xeo6lxblulAlOovRcmT9gqMLrGJpo6EpMLhp2+Bl670geGiJaI BF41zeMfGIfrWLaXHrpsJ6vMUu9tCH5ch/t1P2tQGZoYN89BXWyy3sXGP21h6wTB i4kKx3RrLDplMOOlbDga4+C0t9SBKbL1gRw/ZcH/iyRwoO00Qj44xU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=TOIQStlH3zRoU97XVcna/5snKIA=; b=oqNzBANVC2+ZQ+yYxb9E 2aDEpZhGca3DT+qJq7rhU12Xk6Xe4i4e/F6/bkHdq9QGcAU7lyGByoUpAQomYJ9n 4sGRd62/BdmxoF+Zd5M5hNohd+oYDYDXRC8VdBKMOz7nilyFLyF1JNN4l1XEbiTp JPUC9RS1F616YPI6qmJxbbc= Received: (qmail 116942 invoked by alias); 10 Dec 2019 17:01:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 116928 invoked by uid 89); 10 Dec 2019 17:01:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=ios X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-1.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (207.211.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Dec 2019 17:01:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575997277; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=yqTl60QZLu6I/40+1nLSFqKyei1c3ntcOkNr02J87O4=; b=GrITLT4Ec+bKCrD6ziBAoc9hji01nx6bVinz1j70Ya5C/5CBxkOQZwDyBaAl/SoK0ZhlKN cLNf+6frOic/cBOn/0DhMZ0Q/nYMCSTRwmZP6nzO7PSbpgGCYXGgiwrJj1R48pCpqGNZbY MLDoIPxi66wNLS6uADn37C5RqeVwmt0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-273-yMHHifDBOgiLC_OkXAms2Q-1; Tue, 10 Dec 2019 12:01:14 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 590A68EDBD1; Tue, 10 Dec 2019 17:01:12 +0000 (UTC) Received: from localhost (unknown [10.33.36.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id D06756FDDA; Tue, 10 Dec 2019 17:01:11 +0000 (UTC) Date: Tue, 10 Dec 2019 17:01:11 +0000 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] libstdc++: Fix description of std::ios::trunc (PR 92886) Message-ID: <20191210170111.GA2042920@redhat.com> MIME-Version: 1.0 X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.12.1 (2019-06-15) X-Mimecast-Spam-Score: 0 Content-Disposition: inline PR libstdc++/92886 * include/bits/ios_base.h (std::ios_base::trunc): Fix comment. Committing to trunk as obvious. commit 9acff881dea3a00ae588f8ebc4c5289b98f7ee52 Author: Jonathan Wakely Date: Tue Dec 10 17:00:30 2019 +0000 libstdc++: Fix description of std::ios::trunc (PR 92886) PR libstdc++/92886 * include/bits/ios_base.h (std::ios_base::trunc): Fix comment. diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h index 06a3e0870f3..be908b3ffd2 100644 --- a/libstdc++-v3/include/bits/ios_base.h +++ b/libstdc++-v3/include/bits/ios_base.h @@ -445,7 +445,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// Open for output. Default for @c ofstream and fstream. static const openmode out = _S_out; - /// Open for input. Default for @c ofstream. + /// Truncate an existing stream when opening. Default for @c ofstream. static const openmode trunc = _S_trunc; // 27.4.2.1.5 Type ios_base::seekdir