From owner-svn-src-head@freebsd.org Tue Apr 3 20:41:08 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6112DF7E927; Tue, 3 Apr 2018 20:41:08 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5C5072A17; Tue, 3 Apr 2018 20:41:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w33KevlO067759 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 3 Apr 2018 23:41:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w33KevlO067759 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w33KevHt067757; Tue, 3 Apr 2018 23:40:57 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 3 Apr 2018 23:40:57 +0300 From: Konstantin Belousov To: Cy Schubert Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r331943 - head/include Message-ID: <20180403204057.GM1774@kib.kiev.ua> References: <201804032014.w33KEbY2036305@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201804032014.w33KEbY2036305@repo.freebsd.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 20:41:08 -0000 On Tue, Apr 03, 2018 at 08:14:37PM +0000, Cy Schubert wrote: > Author: cy > Date: Tue Apr 3 20:14:37 2018 > New Revision: 331943 > URL: https://svnweb.freebsd.org/changeset/base/331943 > > Log: > Include update to stdio.h missed in r331936. > > In my attempt to limit the commit in r331936 to only the gets_s() > commit and not include unrelated patches in my tree, this patch > was missed. > > Reported by: pfg > MFC after: 2 weeks > X-MFC with: r331936 > Differential Revision: https://reviews.freebsd.org/D12785 > > Modified: > head/include/stdio.h > > Modified: head/include/stdio.h > ============================================================================== > --- head/include/stdio.h Tue Apr 3 19:51:23 2018 (r331942) > +++ head/include/stdio.h Tue Apr 3 20:14:37 2018 (r331943) > @@ -51,6 +51,11 @@ typedef __size_t size_t; > #define _SIZE_T_DECLARED > #endif > > +#ifndef _RSIZE_T_DEFINED > +#define _RSIZE_T_DEFINED > +typedef size_t rsize_t; > +#endif > + > #if __POSIX_VISIBLE >= 200809 > #ifndef _OFF_T_DECLARED > #define _OFF_T_DECLARED > @@ -265,6 +270,9 @@ size_t fwrite(const void * __restrict, size_t, size_t > int getc(FILE *); > int getchar(void); > char *gets(char *); > +#if defined(__EXT1_VISIBLE) && __EXT1_VISIBLE == 1 What is the purpose of the __EXT1_VISIBLE == 1 check ? It is against the intended __XX_VISIBLE mechanism construction. > +char *gets_s(char *, rsize_t); > +#endif > void perror(const char *); > int printf(const char * __restrict, ...); > int putc(int, FILE *);