svn commit: r331943 - head/include
Konstantin Belousov
kostikbel at gmail.com
Tue Apr 3 20:41:08 UTC 2018
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 *);
More information about the svn-src-head
mailing list