summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Reduce usage of predefined strings in manpages.bentley2015-02-282-7/+7
| | | | | | | | | | | Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
* SIZE_MAX is standard, we should be using it in preference to themillert2015-02-061-2/+3
| | | | obsolete SIZE_T_MAX. OK miod@ beck@
* Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@millert2015-02-052-4/+4
|
* Use .Rv where appropriate, and move it to RETURN VALUES;schwarze2015-01-291-8/+3
| | | | | remove .Tn, and a few minor macro adjustments. Patch from Kaspars at Bankovskis dot net.
* Move to the <limits.h> universe.deraadt2015-01-163-10/+10
| | | | review by millert, binary checking process with doug, concept with guenther
* typo; from Kaspars at Bankovskis dot netschwarze2015-01-151-4/+4
|
* remove .Tn from stdio manuals; Kaspars Bankovskis found one of theseschwarze2015-01-137-50/+28
|
* Remove unnecessary calls to __atexit_register_cleanup(), calling __sinit()guenther2015-01-132-4/+9
| | | | | | | instead where necessary. Based on a diff from enh (at) google.com ok millert@
* Add fgetwln(3) from FreeBSD and bump libc minor revision.millert2015-01-123-8/+206
|
* Remove #ifdef notdef bits--we are not going to change the fgetln()millert2015-01-051-13/+3
| | | | API to NUL-terminate the buffer.
* Show the sign for NaN as per POSIX; from Elliott Hughes.daniel2014-12-212-8/+6
| | | | ok martynas@, millert@, doug@
* don't do silly (and slow) one byte reads in unbuffered mode.tedu2014-12-081-1/+16
| | | | from enh at google
* garbage collect .Tnschwarze2014-11-261-8/+4
|
* zap trailing whitespace;jmc2014-11-251-2/+2
|
* C99 says setvbuf() returns non-zero, not EOF. Also, POSIX documentsmillert2014-11-252-10/+37
| | | | | that it returns an error for invalid mode which matches our behavior. OK jmc@ deraadt@
* Move guts of setbuf.3 into setvbuf.3 to make it clear which onemillert2014-11-253-117/+191
| | | | should be used in new code.
* abort() doesn't call atexit handlers any moreguenther2014-11-191-2/+2
|
* Reduce instances of `` '' in manuals.bentley2014-11-152-7/+12
| | | | | | | | | | | | troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
* explicitly clarify that reading also stops after size-1 bytestedu2014-11-041-3/+5
|
* Use "const char tempchars[]" instead of "const char *tempchars".millert2014-10-311-2/+2
| | | | | Since tempchars is never reassigned there's no need to indirect through a pointer. Still getting used to this newfangled C89.
* The open flags param to mkostemps() should be "flags" not "oflags"millert2014-10-261-3/+3
| | | | for consistency with the rest of the manual.
* Fix bounds check for newlen without relying on unspecified behavior.millert2014-10-161-4/+3
| | | | OK deraadt@
* use reallocarray, and avoid this << 1 ugliness.deraadt2014-10-111-3/+3
| | | | ok doug
* obvious reallocarray(); ok dougderaadt2014-10-081-2/+2
|
* provide section numbers for xrs;jmc2014-08-312-4/+4
|
* Add additional userland interfaces for setting close-on-exec on fdsguenther2014-08-317-63/+231
| | | | | | | | | | | | | when creating them: mkostemp(), mkostemps(), the 'e' mode letter for fopen(), freopen(), fdopen(), and popen(). The close-on-exec flag will be cleared by the action created by posix_spawn_file_actions_adddup2(). Also, add support for the C11 'x' mode letter for fopen() and freopen(), setting O_EXCL when possibly creating files. Note: this requires kernel support for pipe2() and dup3()! ok millert@
* rework some fflush text, as requestedjmc2014-07-031-4/+3
| | | | | | From: Edward tweaks From: Tim van der Molen
* Remove assigned but unused local variables and macro from vfwprintf().stsp2014-06-041-7/+1
| | | | | Found by Elliott @ google ok mpi@
* for non-valid combinations with `#', instead of trying to list them all,jmc2014-05-132-19/+6
| | | | | | simply say all other combinations are behaviour undefined; ok guenther, who reminded me to change these too;
* when demonstrating the correct "double-check" idiom, provide aderaadt2014-05-091-3/+3
| | | | reminder that the return value is int...
* We don't really need uniform distribution for mktemp(3) so usemillert2014-05-061-6/+19
| | | | | | | arc4random_buf() to avoid lots of arc4random() calls with a getpid() syscall for each one. We fetch 32 bytes of random data at a time which can handle up to 16 Xs. 16 Xs should be enough for anyone. Requested and OK deraadt@
* Add #ifndef NO_PRINTF_PERCENT_N. Since we are fully standardized, wederaadt2014-05-032-2/+10
| | | | | | | don't use disable %n ourselves. But Google's Android libc is based on our libc.... Giving them an easy knob to disable this dangerous feature easily make their job easier without making our job any harder. Request from Elliott @ google
* Extend fread() and fwrite() to check for integer overflow, in which casederaadt2014-05-013-4/+40
| | | | | errno EOVERFLOW is returned and error is set on the FILE. ok kettenis miod beck
* add closing parenthesis.sobrado2014-04-221-3/+3
| | | | ok millert@
* need to escape %U, since it is used in Re/Rs blocks;jmc2014-04-191-2/+2
|
* Demonstrate correct usage of snprintf (regarding overflow detection)deraadt2014-04-191-3/+5
| | | | ok guenther
* no getstedu2014-03-251-3/+2
|
* c11 compliance: remove gets()tedu2014-03-233-117/+12
|
* It's still safe to assumed 'signed' existsguenther2014-03-194-12/+12
|
* Fix unsigned comparision.gerhard2014-03-061-3/+3
| | | | ok mpi@
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-212-7/+7
|
* f_prealloc() goes away. Comment from the original source file:deraadt2013-12-171-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 asderaadt2013-12-041-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 deraadtstsp2013-11-251-3/+2
|
* oops should not be staticderaadt2013-11-131-2/+2
|
* a __fputwc_unlock() prototype was available in fvwrite.h, so use thatderaadt2013-11-124-8/+7
|
* both files contain a function which should only be static.deraadt2013-11-122-4/+4
| | | | not cranking libc over this (unless an issue is found in ports)
* Pull in gdtoa.h instead of declaring __dtoa() and __freedtoa() directlyguenther2013-11-012-6/+4
| | | | ok deraadt@
* Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,millert2013-09-301-12/+12
| | | | MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
* HISTORY; tweaks and ok sobrado@ jmc@schwarze2013-07-183-9/+33
|