Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2018 20:14:37 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r331943 - head/include
Message-ID:  <201804032014.w33KEbY2036305@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
+char	*gets_s(char *, rsize_t);
+#endif
 void	 perror(const char *);
 int	 printf(const char * __restrict, ...);
 int	 putc(int, FILE *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804032014.w33KEbY2036305>