stdio: don't assume gets any more
authorEric Blake <eblake@redhat.com>
Thu, 29 Mar 2012 19:30:41 +0000 (13:30 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 30 Mar 2012 03:08:03 +0000 (21:08 -0600)
commit66712c23388e93e5c518ebc8515140fa0c807348
tree59e8a84c7b18d8b008ba75e15a6a2159da21246b
parent3d0ba3fe7865e7030b4d2097f122e64b16f0a5c9
stdio: don't assume gets any more

Gnulib intentionally does not have a gets module, and now that C11
and glibc have dropped it, we should be more proactive about warning
any user on a platform that still has a declaration of this dangerous
interface.

* m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
support.
* modules/stdio (Makefile.am): Likewise.
* lib/stdio-read.c (gets): Likewise.
* tests/test-stdio-c++.cc: Likewise.
* m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
* lib/stdio.in.h (gets): Make warning occur in more places.
* doc/posix-functions/gets.texi (gets): Update documentation.
Reported by Christer Solskogen.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/posix-functions/gets.texi
lib/stdio-read.c
lib/stdio.in.h
m4/stdio_h.m4
m4/warn-on-use.m4
modules/stdio
tests/test-stdio-c++.cc