summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fgets.3
Commit message (Collapse)AuthorAgeFilesLines
* libc: remove getsEd Maste2019-09-011-40/+8
| | | | | | | | | | | | | | | | | | | | 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: svn path=/head/; revision=351659
* Follow up on r331936. gets_s(3) will also fail in the same way thatCy Schubert2018-10-231-0/+2
| | | | | | | | | | gets(3) does. This was missed in r331936. Reported by: emaste@ MFC after: 3 days Notes: svn path=/head/; revision=339656
* Add gets_s(3) to the man page title (noticed by ed@).Cy Schubert2018-04-031-2/+3
| | | | | | | | | | | | While I'm at it correct the update date in the man page. Reported by: ed@ MFC after: 2 weeks X-MFC with: r331936 Differential Revision: https://reviews.freebsd.org/D12785 Notes: svn path=/head/; revision=331942
* Add new gets_s(3) stdio function.Cy Schubert2018-04-031-2/+24
| | | | | | | | | | | | | | 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 MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D12785 Notes: svn path=/head/; revision=331936
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Remove reference to non-existent FreeBSD Security ArchitectureEitan Adler2012-05-091-3/+1
| | | | | | | | Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=235202
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theUlrich Spörlein2010-05-131-13/+13
| | | | | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru Notes: svn path=/head/; revision=208027
* - Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(),David Schultz2009-02-281-1/+2
| | | | | | | | | | | | | | | wcscasecmp(), and wcsncasecmp(). - Make some previously non-standard extensions visible if POSIX_VISIBLE >= 200809. - Use restrict qualifiers in stpcpy(). - Declare off_t and size_t in stdio.h. - Bump __FreeBSD_version in case the new symbols (particularly getline()) cause issues with ports. Reviewed by: standards@ Notes: svn path=/head/; revision=189136
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Remove references to nonexistent "FreeBSD Security Architecture" document.Tim J. Robbins2005-09-051-5/+0
| | | | Notes: svn path=/head/; revision=149792
* Consistently mark std(in|out|err) with .Dv, because that's how theyRuslan Ermilov2002-12-041-1/+1
| | | | | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re Notes: svn path=/head/; revision=107619
* Add restrict type-qualifier.Mike Barcroft2002-10-121-2/+2
| | | | Notes: svn path=/head/; revision=104989
* Cross-reference between byte and wide-character stdio functions. RemoveTim J. Robbins2002-10-101-1/+2
| | | | | | | references to fputwc() and fgetwc() being macros while I'm at it. Notes: svn path=/head/; revision=104750
* Grammar fix: "contents" is plural.Archie Cobbs2002-05-311-2/+2
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=97651
* mdoc(7) police:Ruslan Ermilov2002-01-091-1/+2
| | | | | | | Stop abusing the .%J macro for where the .Pa macro should have been used. Notes: svn path=/head/; revision=89138
* All information from the "BUGS" section not belonging in "SECURITYChris Costello2002-01-061-13/+5
| | | | | | | | | | CONSIDERATIONS" moved to "COMPATIBILITY". Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=88973
* Add new "SECURITY CONSIDERATIONS" sections.Chris Costello2002-01-061-0/+14
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=88971
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* .St -ansiC -> .St -isoCRuslan Ermilov2001-02-261-2/+2
| | | | Notes: svn path=/head/; revision=73088
* Use `Er' variable to define first column width in ERRORS section.Alexey Zelkin2000-05-061-1/+1
| | | | Notes: svn path=/head/; revision=60078
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Correct the paramter type of the second argument to fgets.Mike Pritchard1996-08-061-1/+1
| | | | | | | Obtained from: NetBSD-bugs mailing list Notes: svn path=/head/; revision=17456
* Say what happens to the buffer when fgets() returns NULL.Bruce Evans1996-03-271-6/+11
| | | | | | | Fixed bogus cross references and a misordered line. Notes: svn path=/head/; revision=14838
* fgetline does not exist.. fgetln is in it's place. Correct the X-Ref.Peter Wemm1995-08-181-1/+1
| | | | | | | Noticed by: Brian Tao, Bruce Evans Notes: svn path=/head/; revision=10100
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+151
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573