]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r331936, r331942, r331943, r331945, r331947, r331948
authorcy <cy@FreeBSD.org>
Wed, 18 Apr 2018 19:18:14 +0000 (19:18 +0000)
committercy <cy@FreeBSD.org>
Wed, 18 Apr 2018 19:18:14 +0000 (19:18 +0000)
commitc00d3b23449ed11f61948fdd529022f1621a9891
tree06f99f04e6a84dc3960c21739f8282b907a9fcca
parentc4642292bc00ef62b477d6f9395cfcc717abb691
MFC r331936, r331942, r331943, r331945, r331947, r331948

Add new gets_s(3) stdio function.

This implements the gets_s(3) function as documented at
http://en.cppreference.com/w/c/io/gets. It facilitates the
optional removal of gets(3).

Reviewed by: ed
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D12785
include/stdio.h
lib/libc/stdio/Makefile.inc
lib/libc/stdio/Symbol.map
lib/libc/stdio/fgets.3
lib/libc/stdio/gets_s.c [new file with mode: 0644]
lib/libc/tests/stdio/Makefile
lib/libc/tests/stdio/gets_s_test.c [new file with mode: 0644]