summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
Commit message (Collapse)AuthorAgeFilesLines
* Merge vfprintf.c revision 1.52.Tim J. Robbins2003-03-141-2/+2
| | | | Notes: svn path=/head/; revision=112229
* Kludge around a bug that results from printf() assuming thatDavid Schultz2003-03-141-1/+1
| | | | | | | | | | | | dtoa() is buggy. The bug would cause incorrect output to be generated when format strings such as '%5.0f' were used with nonzero numbers whose magnitude is less than 1. Reported by: df(1) by way of periodic(8) Reviewed by: mike Notes: svn path=/head/; revision=112224
* Unexpand RCS tag.Tim J. Robbins2003-03-141-1/+1
| | | | Notes: svn path=/head/; revision=112223
* MFp4: Catch up to recent __dtoa() interface changes and removal of cvt()'sTim J. Robbins2003-03-131-11/+10
| | | | | | | last argument. Notes: svn path=/head/; revision=112174
* Replace our ancient dtoa/strtod implementation with the gdtoaDavid Schultz2003-03-121-9/+10
| | | | | | | | | | | | | | | | | | | | | package, a more recent, generalized set of routines. Among the changes: - Declare strtof() and strtold() in stdlib.h. - Add glue to libc to support these routines for all kinds of ``long double''. - Update printf() to reflect the fact that dtoa works slightly differently now. As soon as I see that nothing has blown up, I will kill src/lib/libc/stdlib/strtod.c. Soon printf() will be able to use the new routines to output long doubles without loss of precision, but numerous bugs in the existing code must be addressed first. Reviewed by: bde (briefly), mike (mentor), obrien Notes: svn path=/head/; revision=112163
* MFp4: Add the standard "the {fgetws,fputws} function will fail if" textTim J. Robbins2003-03-092-0/+6
| | | | | | | to the Errors section. Notes: svn path=/head/; revision=112019
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-234-10/+12
| | | | Notes: svn path=/head/; revision=111285
* Fix the description for mkdtemp(), which creates directories, not files.Gregory Neil Shapiro2003-02-191-1/+1
| | | | | | | | Submitted by: Murray S. Kucherawy <msk@blackops.org> X-MFC after: re approval Notes: svn path=/head/; revision=111117
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Jacques Vidrine2003-02-161-2/+2
| | | | | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5 Notes: svn path=/head/; revision=111010
* Fix use of an uninitialized pointer introduced in a previous revision.Mike Makonnen2003-02-061-0/+1
| | | | | | | Approved by: markm (mentor)(implicit) Notes: svn path=/head/; revision=110429
* Back out previous. Many people disagreed with removing the warning.Tim J. Robbins2003-01-301-0/+8
| | | | Notes: svn path=/head/; revision=110127
* Remove runtime warning about gets().Tim J. Robbins2003-01-301-8/+0
| | | | Notes: svn path=/head/; revision=110085
* Lock stdin on entry, unlock on return, use __sgetc() instead of getchar()Tim J. Robbins2003-01-301-5/+9
| | | | | | | | to avoid locking the stream for each character and to avoid input being scattered among multiple threads. Notes: svn path=/head/; revision=110082
* Remove part of my stateful locale patch that slipped into the previous rev.Tim J. Robbins2003-01-261-3/+0
| | | | Notes: svn path=/head/; revision=109880
* Initial implementation of the C99 feature whereby calling freopen() withTim J. Robbins2003-01-262-2/+94
| | | | | | | | | | | | | a NULL filename argument allows a stream's mode to be changed. At the moment it just recycles the old file descriptor instead of storing the filename somewhere and using that to reopen the file, as the standard seems to require. Strictly conforming C99 applications probably can't tell the difference but POSIX ones can. PR: 46791 Notes: svn path=/head/; revision=109871
* Lock the stream before calling __sfileno() to retrieve the file descriptor.Tim J. Robbins2003-01-131-2/+10
| | | | | | | 1003.1-2001 requires that fileno() behave as if it locks the stream. Notes: svn path=/head/; revision=109155
* Add missing word to "Return Values" section.Tim J. Robbins2003-01-131-0/+1
| | | | Notes: svn path=/head/; revision=109154
* The macro versions of putc() and putchar() are gone.Tim J. Robbins2003-01-101-9/+3
| | | | Notes: svn path=/head/; revision=109057
* There is no macro version of getc() anymore.Tim J. Robbins2003-01-101-2/+1
| | | | Notes: svn path=/head/; revision=109056
* Bring the list of function-like macros up to date with reality.Tim J. Robbins2003-01-101-28/+20
| | | | Notes: svn path=/head/; revision=109055
* spell multiple correctly.Alfred Perlstein2003-01-101-1/+1
| | | | Notes: svn path=/head/; revision=109051
* Document clearerr_unlocked(), feof_unlocked(), ferror_unlocked()Tim J. Robbins2003-01-102-3/+38
| | | | | | | and fileno_unlocked(). Notes: svn path=/head/; revision=109050
* Add a manual page for flockfile(), ftrylockfile(), and funlockfile().Tim J. Robbins2003-01-102-1/+106
| | | | Notes: svn path=/head/; revision=109047
* Document getc_unlocked(), getchar_unlocked(), putc_unlocked(),Tim J. Robbins2003-01-103-6/+68
| | | | | | | and putchar_unlocked(). Notes: svn path=/head/; revision=109043
* Add function versions of getchar_unlocked(), getc_unlocked(),Tim J. Robbins2003-01-102-1/+96
| | | | | | | | | putchar_unlocked(), putc_unlocked(), feof_unlocked(), ferror_unlocked(), clearerr_unlocked(), and fileno_unlocked(). The first four are required by POSIX. The rest are provided for consistency. Notes: svn path=/head/; revision=109042
* Remove an unused variable: mbresult.Tim J. Robbins2003-01-071-1/+0
| | | | Notes: svn path=/head/; revision=108867
* #include <stdlib.h> for free()'s prototype.Tim J. Robbins2003-01-071-0/+1
| | | | Notes: svn path=/head/; revision=108866
* Note that the printf(3) and scanf(3) family of functions don't deal withTim J. Robbins2003-01-062-2/+14
| | | | | | | multibyte characters in the format string correctly. Notes: svn path=/head/; revision=108775
* #include "local.h" to make __svfscanf()'s prototype visible.Tim J. Robbins2003-01-033-0/+3
| | | | Notes: svn path=/head/; revision=108622
* Reset the stream orientation to 0 (unoriented) in freopen(), as requiredTim J. Robbins2003-01-031-0/+1
| | | | | | | by the C standard. Notes: svn path=/head/; revision=108598
* mdoc(7) police: Deal with self-xrefs.Ruslan Ermilov2002-12-241-1/+1
| | | | Notes: svn path=/head/; revision=108257
* Document the fact that the printf() family of functions return negativeTim J. Robbins2002-12-201-2/+14
| | | | | | | | | | values (EOF in our case) on error, and some of the possible errno values in an Errors section. PR: 39257 Notes: svn path=/head/; revision=108121
* C99 standardised the vscanf() family of functions, update StandardsTim J. Robbins2002-12-201-2/+5
| | | | | | | section to reflect this. Notes: svn path=/head/; revision=108120
* Write the message to stderr, not file descriptor 2, so that perror()Tim J. Robbins2002-12-191-1/+7
| | | | | | | writes to the correct stream if stderr has been redirected with freopen(). Notes: svn path=/head/; revision=108090
* Use strerror_r() to format the error message so that strerror()'s staticTim J. Robbins2002-12-191-1/+4
| | | | | | | | | | | buffer does not get clobbered. ISO/IEC 9899:1999 7.21.6.2 3: "The implementation shall behave as if no library function calls the strerror function." Notes: svn path=/head/; revision=108089
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-195-8/+10
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.Ruslan Ermilov2002-12-181-2/+2
| | | | Notes: svn path=/head/; revision=108040
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-185-5/+21
| | | | Notes: svn path=/head/; revision=108037
* mdoc(7) police: tiny nits.Ruslan Ermilov2002-12-091-4/+4
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107707
* Consistently mark std(in|out|err) with .Dv, because that's how theyRuslan Ermilov2002-12-0412-17/+17
| | | | | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re Notes: svn path=/head/; revision=107619
* mdoc(7) police: markup overhaul.Ruslan Ermilov2002-12-046-14/+22
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107616
* mdoc(7) police: formatting nits.Ruslan Ermilov2002-11-291-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107387
* libc_r wasn't so tied to libc for 22 months.Ruslan Ermilov2002-11-181-3/+1
| | | | Notes: svn path=/head/; revision=107052
* bde points out that the LIBC_MAJOR macro doesn't exist and requestsWarner Losh2002-11-141-3/+6
| | | | | | | | | | that we not use it here. In its place I've put a comment about the current state of play. Submitted by: bde Notes: svn path=/head/; revision=106915
* Restore Peter's version of static __sF. There's too much pain for itWarner Losh2002-11-101-1/+4
| | | | | | | | | | | | | | | to be static for 5.0. I may remove this for 5.1 or 5.2. No more binaries or libarires will be generated with __sF starting as of yesterday. Originally the plan had been to eliminate this for 5.0, but we didn't get the __std{in,out,err}p changes merged into -stable until yesterday (rather than in September 2001 like it should have been). Given that didn't happen on time, we can't do the other part of the scheme now. # Please do not change this without talking to me first. Notes: svn path=/head/; revision=106721
* Backout "compatibility hack" for __sF.Alfred Perlstein2002-11-042-9/+1
| | | | | | | Requested by: Steve Kargl <sgk@troutmask.apl.washington.edu> (submitter) Notes: svn path=/head/; revision=106396
* Provide a hook to make __sF visible outside of libc for commercial appsAlfred Perlstein2002-11-022-1/+9
| | | | | | | | | if WANT_COMPAT4_STDIO is defined when compiling libc. Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu> Notes: svn path=/head/; revision=106352
* No need to include floatio.h here: vfscanf() no longer uses anythingTim J. Robbins2002-11-012-2/+0
| | | | | | | it defines. Notes: svn path=/head/; revision=106282
* Make __sF static. This can not be allowed to exist in 5.x.Alfred Perlstein2002-10-311-1/+1
| | | | Notes: svn path=/head/; revision=106230
* Cross-reference putc(3).Tim J. Robbins2002-10-281-0/+1
| | | | Notes: svn path=/head/; revision=106083