Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | need to escape %U, since it is used in Re/Rs blocks; | 2014-04-19 | 1 | -2/+2 | |
| | |||||
* | Demonstrate correct usage of snprintf (regarding overflow detection) | 2014-04-19 | 1 | -3/+5 | |
| | | | | ok guenther | ||||
* | no gets | 2014-03-25 | 1 | -3/+2 | |
| | |||||
* | c11 compliance: remove gets() | 2014-03-23 | 3 | -117/+12 | |
| | |||||
* | It's still safe to assumed 'signed' exists | 2014-03-19 | 4 | -12/+12 | |
| | |||||
* | Fix unsigned comparision. | 2014-03-06 | 1 | -3/+3 | |
| | | | | ok mpi@ | ||||
* | obvious .Pa fixes; found with mandocdb(8) | 2014-01-21 | 2 | -7/+7 | |
| | |||||
* | f_prealloc() goes away. Comment from the original source file: | 2013-12-17 | 1 | -24/+1 | |
| | | | | | * XXX. Force immediate allocation of internal memory. Not used by stdio, * but documented historically for certain applications. Bad applications. | ||||
* | express final disapproval of the interfaces in libcompat, such as | 2013-12-04 | 1 | -3/+2 | |
| | | | | | | | | | them ftime(), gtty(), stty(), re_comp(), cuserid() and others. Discussion and ongoing work to fix the ports tree from many, especially naddy. ok naddy [There is a bit more cleanup possible after that, but this is considered the current safe step] | ||||
* | Use iswupper() for wide characters, not isupper(); ok deraadt | 2013-11-25 | 1 | -3/+2 | |
| | |||||
* | oops should not be static | 2013-11-13 | 1 | -2/+2 | |
| | |||||
* | a __fputwc_unlock() prototype was available in fvwrite.h, so use that | 2013-11-12 | 4 | -8/+7 | |
| | |||||
* | both files contain a function which should only be static. | 2013-11-12 | 2 | -4/+4 | |
| | | | | not cranking libc over this (unless an issue is found in ports) | ||||
* | Pull in gdtoa.h instead of declaring __dtoa() and __freedtoa() directly | 2013-11-01 | 2 | -6/+4 | |
| | | | | ok deraadt@ | ||||
* | Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN, | 2013-09-30 | 1 | -12/+12 | |
| | | | | MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@ | ||||
* | HISTORY; tweaks and ok sobrado@ jmc@ | 2013-07-18 | 3 | -9/+33 | |
| | |||||
* | more library history | 2013-07-17 | 10 | -21/+96 | |
| | | | | | facts checked by sobrado@ style tweaks and ok jmc@ | ||||
* | do not use Sx for sections outwith the page; | 2013-06-29 | 1 | -4/+3 | |
| | | | | man4 still to go... | ||||
* | Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze | 2013-06-05 | 22 | -69/+69 | |
| | |||||
* | add some prototypes, casts, includes, parenthesis, and whatnot to | 2013-04-17 | 4 | -5/+10 | |
| | | | | silence some warnings. | ||||
* | Set the stream orientation in open_{,w}memstream(). | 2013-04-03 | 2 | -2/+4 | |
| | | | | | | Check it in the regress test ok mpi@ | ||||
* | When there are multiple groups of functions with their own #includes | 2013-04-01 | 1 | -2/+3 | |
| | | | | | | | | listed, the #includes in each group are independent, so that users don't need to guess at possible carry-over. general idea ok otto@ millert@ actual diff ok jmc@ schwarze@ | ||||
* | Enable fmemopen(3) and open_{w,}memstream(3) | 2013-03-28 | 1 | -12/+13 | |
| | | | | commiting on behalf of mpi@ | ||||
* | Correct version number | 2013-03-28 | 2 | -6/+6 | |
| | |||||
* | Add an open_wmemstream(3) implementation and fix various issues for | 2013-03-27 | 3 | -55/+211 | |
| | | | | | | fmemopen(3) and open_memstream(3). With inputs from millert@, stsp@, guenther@, tedu@ and matthew@ | ||||
* | Return EINVAL if there are fewer than six template Xs in the path. | 2013-03-12 | 2 | -24/+30 | |
| | | | | ok deraadt@ millert@ | ||||
* | tweak wording of scanf return value; prompted by Jan Stary; ok jmc@ | 2013-03-05 | 1 | -4/+5 | |
| | |||||
* | Update STANDARDS section as appropriate for C99. | 2013-03-04 | 2 | -7/+9 | |
| | | | | ok guenther@ | ||||
* | Fix the combination of 'j' format flag and the XPG "<num>$" modifier. | 2013-03-02 | 1 | -2/+11 | |
| | | | | ok deraadt@ kettenis@ millert@ | ||||
* | Add a bunch of missing functions. | 2013-01-31 | 1 | -2/+19 | |
| | | | | ok millert@ | ||||
* | Add support for POSIX.1-2008 functions dprintf(3) and vdprintf(3). | 2013-01-30 | 5 | -8/+155 | |
| | | | | | Feedback from millert@ guenther@ OK guenther@ man page bits OK jmc@ | ||||
* | some small cleanup; | 2013-01-03 | 2 | -13/+14 | |
| | |||||
* | Add an implementation based on tedu@'s design of fmemopen(3) and | 2013-01-01 | 4 | -0/+655 | |
| | | | | | | | | open_memstream(3) so they can be polished in-tree. One of the manpages comes from NetBSD with some tweaks. Prodded by espie@, krw@, guenther@ | ||||
* | Remove excessive sys/cdefs.h inclusion | 2012-12-05 | 7 | -16/+7 | |
| | | | | ok guenther millert kettenis | ||||
* | tweak text for consistency; from artturi alm | 2012-10-03 | 1 | -3/+4 | |
| | |||||
* | tmpname -> tempnam; from Artturi Alm | 2012-09-07 | 1 | -3/+3 | |
| | |||||
* | sync comment with reality. | 2012-09-01 | 1 | -2/+2 | |
| | |||||
* | Use nl_langinfo(RADIXCHAR) instead of localeconv()->decimal_point in | 2012-06-26 | 2 | -4/+10 | |
| | | | | | | | | | | | | | | | | printf() and avoid calling it unless needed (i.e., when we have a floating point value to print). This isn't a big concern currently due to our limited locale support and current localeconv() implementation, but it's still technically a data race and implementing POSIX 2008 per-thread locales is likely to make it worse. nl_langinfo() isn't guaranteed by POSIX to be thread-safe either, but at least our current implementation is thread-safe and it's a simpler interface to keep that way. Printing floating point values isn't async-signal-safe anyway due to gdtoa()'s use of malloc(), so that's not an issue. ok deraadt, stsp, millert | ||||
* | Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(), | 2012-06-01 | 1 | -2/+10 | |
| | | | | | | | and valloc() are not in the current version, while posix_memalign() mkstemp(), and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'. ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@ | ||||
* | Don't misleadingly suggest that fpos_t only needs to be a complex type | 2012-05-22 | 1 | -4/+2 | |
| | | | | | on non-UNIX systems: it's a complex type on Linux, and to be C99 compliant we'll probably need it to be a complex type too. | ||||
* | Document that ftell() may return EOVERFLOW. | 2012-05-22 | 1 | -6/+31 | |
| | | | | Diff from Tim van der Molen. | ||||
* | Fix ftell() to return EOVERFLOW if the file offset is greater than | 2012-05-21 | 2 | -23/+10 | |
| | | | | | | | LONG_MAX. Also, remove an Alpha-specific optimization that only saves a couple of bytes of code size. ok millert, guenther | ||||
* | document getdelim() and getline(), and a grammar fix whilst here; | 2012-04-12 | 1 | -4/+6 | |
| | | | | | | from Jan Stary ok fgsch | ||||
* | Implement getdelim(3) and getline(3). | 2012-03-21 | 4 | -3/+332 | |
| | | | | | | | | | Prompted in a mail to tech@ by Jan Klemkow (j-dot-klemkow-at-wemelug-dot-de) but this is based on NetBSD's implementation instead with some tweaks by me. Further improvements would happen in tree. ok millert@; discussed with many others ports cleanup by naddy@, sthen@. Antti Harri, Gonzalo L. R. and myself. | ||||
* | Credit Keith Sklower and 2BSD for the first implementation of read-write | 2012-01-22 | 1 | -2/+7 | |
| | | | | | access; information found in the 2bsd directory of the CSRG archive CDs. feedback and ok jmc@ | ||||
* | Add missing header needed by iswspace() | 2012-01-18 | 1 | -1/+2 | |
| | | | | ok stsp@ | ||||
* | Add support for C99 %ls, %lc, and %l[ format directives to scanf(3). | 2012-01-18 | 3 | -9/+210 | |
| | | | | | | Based on code from FreeBSD. Tested by myself (full release/install cycle on i386 and sparc64) and ajacoutot. Man page help from jmc. | ||||
* | Document early history of a few functions specifically mentioned in 2BSD | 2012-01-15 | 2 | -4/+41 | |
| | | | | | | manuals; however, it turned out all of these actually predate 2BSD. All information from http://minnie.tuhs.org/cgi-bin/utree.pl. ok jmc@ sobrado@ | ||||
* | Make __svfscanf() the unlocked, core of vfscanf() and use it in | 2011-11-08 | 6 | -46/+23 | |
| | | | | | | sscanf()/vsscanf() where locking is unnecessary. ok millert@ | ||||
* | Sync scanf(3) to wscanf(3), and a few bits the opposite way: | 2011-11-02 | 2 | -66/+50 | |
| | | | | | .Fd -> .In, .Li -> .Vt, and remove various other gratuitous differences. feedback and ok stsp@, ok jmc@ |