Orion Poplawski 07d25f
diff -up octave-3.6.2-rc2/libgnu/stdio.in.h.gets octave-3.6.2-rc2/libgnu/stdio.in.h
Orion Poplawski 07d25f
--- octave-3.6.2-rc2/libgnu/stdio.in.h.gets	2012-05-24 12:46:13.000000000 -0600
Orion Poplawski 07d25f
+++ octave-3.6.2-rc2/libgnu/stdio.in.h	2012-05-24 16:29:54.813734894 -0600
Orion Poplawski 07d25f
@@ -1,12 +1,10 @@
Orion Poplawski 07d25f
-/* -*- buffer-read-only: t -*- vi: set ro: */
Orion Poplawski 07d25f
-/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
Orion Poplawski 07d25f
 /* A GNU-like <stdio.h>.
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
    Copyright (C) 2004, 2007-2012 Free Software Foundation, Inc.
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
    This program is free software; you can redistribute it and/or modify
Orion Poplawski 07d25f
    it under the terms of the GNU General Public License as published by
Orion Poplawski 07d25f
-   the Free Software Foundation; either version 3, or (at your option)
Orion Poplawski 07d25f
+   the Free Software Foundation; either version 2, or (at your option)
Orion Poplawski 07d25f
    any later version.
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
    This program is distributed in the hope that it will be useful,
Orion Poplawski 07d25f
@@ -15,8 +13,7 @@
Orion Poplawski 07d25f
    GNU General Public License for more details.
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
    You should have received a copy of the GNU General Public License
Orion Poplawski 07d25f
-   along with this program; if not, write to the Free Software Foundation,
Orion Poplawski 07d25f
-   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
Orion Poplawski 07d25f
+   along with this program; if not, see <http: www.gnu.org="" licenses=""/>.  */
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
 #if __GNUC__ >= 3
Orion Poplawski 07d25f
 @PRAGMA_SYSTEM_HEADER@
Orion Poplawski 07d25f
@@ -55,7 +52,8 @@
Orion Poplawski 07d25f
 #include <stddef.h>
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
 /* Get off_t and ssize_t.  Needed on many systems, including glibc 2.8
Orion Poplawski 07d25f
-   and eglibc 2.11.2.  */
Orion Poplawski 07d25f
+   and eglibc 2.11.2.
Orion Poplawski 07d25f
+   May also define off_t to a 64-bit type on native Windows.  */
Orion Poplawski 07d25f
 #include <sys types.h="">
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
 /* The __attribute__ feature is available in gcc versions 2.5 and later.
Orion Poplawski 07d25f
@@ -701,22 +699,11 @@ _GL_WARN_ON_USE (getline, "getline is un
Orion Poplawski 07d25f
 # endif
Orion Poplawski 07d25f
 #endif
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
-#if @GNULIB_GETS@
Orion Poplawski 07d25f
-# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
Orion Poplawski 07d25f
-#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Orion Poplawski 07d25f
-#   undef gets
Orion Poplawski 07d25f
-#   define gets rpl_gets
Orion Poplawski 07d25f
-#  endif
Orion Poplawski 07d25f
-_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
Orion Poplawski 07d25f
-_GL_CXXALIAS_RPL (gets, char *, (char *s));
Orion Poplawski 07d25f
-# else
Orion Poplawski 07d25f
-_GL_CXXALIAS_SYS (gets, char *, (char *s));
Orion Poplawski 07d25f
-#  undef gets
Orion Poplawski 07d25f
-# endif
Orion Poplawski 07d25f
-_GL_CXXALIASWARN (gets);
Orion Poplawski 07d25f
 /* It is very rare that the developer ever has full control of stdin,
Orion Poplawski 07d25f
-   so any use of gets warrants an unconditional warning.  Assume it is
Orion Poplawski 07d25f
-   always declared, since it is required by C89.  */
Orion Poplawski 07d25f
+   so any use of gets warrants an unconditional warning; besides, C11
Orion Poplawski 07d25f
+   removed it.  */
Orion Poplawski 07d25f
+#undef gets
Orion Poplawski 07d25f
+#if HAVE_RAW_DECL_GETS
Orion Poplawski 07d25f
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
Orion Poplawski 07d25f
 #endif
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
@@ -781,7 +768,7 @@ _GL_CXXALIASWARN (pclose);
Orion Poplawski 07d25f
 #elif defined GNULIB_POSIXCHECK
Orion Poplawski 07d25f
 # undef pclose
Orion Poplawski 07d25f
 # if HAVE_RAW_DECL_PCLOSE
Orion Poplawski 07d25f
-_GL_WARN_ON_USE (pclose, "popen is unportable - "
Orion Poplawski 07d25f
+_GL_WARN_ON_USE (pclose, "pclose is unportable - "
Orion Poplawski 07d25f
                  "use gnulib module pclose for more portability");
Orion Poplawski 07d25f
 # endif
Orion Poplawski 07d25f
 #endif
Orion Poplawski 07d25f
@@ -1056,9 +1043,9 @@ _GL_WARN_ON_USE (snprintf, "snprintf is
Orion Poplawski 07d25f
 # endif
Orion Poplawski 07d25f
 #endif
Orion Poplawski 07d25f
 
Orion Poplawski 07d25f
-/* Some people would argue that sprintf should be handled like gets
Orion Poplawski 07d25f
-   (for example, OpenBSD issues a link warning for both functions),
Orion Poplawski 07d25f
-   since both can cause security holes due to buffer overruns.
Orion Poplawski 07d25f
+/* Some people would argue that all sprintf uses should be warned about
Orion Poplawski 07d25f
+   (for example, OpenBSD issues a link warning for it),
Orion Poplawski 07d25f
+   since it can cause security holes due to buffer overruns.
Orion Poplawski 07d25f
    However, we believe that sprintf can be used safely, and is more
Orion Poplawski 07d25f
    efficient than snprintf in those safe cases; and as proof of our
Orion Poplawski 07d25f
    belief, we use sprintf in several gnulib modules.  So this header