aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-09-01 16:12:05 +0000
committerEd Maste <emaste@FreeBSD.org>2019-09-01 16:12:05 +0000
commit7381dcc9eeb7da1b1ba103212e15561e14b48a8d (patch)
treeeeaa77a0ef72438d893e997a8eb7a85bf1e0e0f8 /include
parent47b900534815085b63bb8a87071fc6e1626cec1f (diff)
downloadsrc-7381dcc9eeb7da1b1ba103212e15561e14b48a8d.tar.gz
src-7381dcc9eeb7da1b1ba103212e15561e14b48a8d.zip
libc: remove gets
gets is unsafe and shouldn't be used (for many years now). Leave it in the existing symbol version so anything that previously linked aginst it still runs, but do not allow new software to link against it. (The compatability/legacy implementation must not be static so that the symbol and in particular the compat sym gets@FBSD_1.0 make it into libc.) PR: 222796 (exp-run) Reported by: Paul Vixie Reviewed by: allanjude, cy, eadler, gnn, jhb, kib, ngie (some earlier) Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D12298
Notes
Notes: svn path=/head/; revision=351659
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index e94583097a26..41ae893dd7db 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -269,7 +269,6 @@ long ftell(FILE *);
size_t fwrite(const void * __restrict, size_t, size_t, FILE * __restrict);
int getc(FILE *);
int getchar(void);
-char *gets(char *);
#if __EXT1_VISIBLE
char *gets_s(char *, rsize_t);
#endif