summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove extraneous cast to malloc call in fgetln example.ray2006-03-191-2/+2
| | | | OK otto@
* Pull in inttypes.h, not stdint.h so we get the prototypes formillert2006-01-131-4/+4
| | | | strtoimax/strtoumax.
* Use long long and intmax_t instead of quad_t throughout. Adapted inmillert2006-01-134-269/+268
| | | | part from FreeBSD.
* Fix the handling of negative hexadecimal numbers in integer formats.millert2006-01-081-10/+16
| | | | From NetBSD.
* improve the RETURN VALUES section;jmc2006-01-071-8/+12
| | | | | | | for such a small diff, this one was hard work... based on a diff from ray lai; blood, sweat, and tears (and ok) kettenis
* Adapt things to use __type_t instead of _BSD_TYPE_T_millert2006-01-068-16/+16
| | | | | Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
* fix the mkstemps .Fn;jmc2006-01-061-2/+2
|
* in code fragment:jmc2006-01-061-14/+14
| | | | | | | | | | | - allocate enough space for sfn. - remove variable initializations that get overwritten anyway. - change spaces to tabs. - change "sizeof sfn" to "sizeof(sfn)". - change fprintf(stderr) to warn(). from ray lai; ok millert
* Do not overlap flags; problem introduced when new escapes were added.millert2006-01-031-7/+7
|
* Remove useless if() introduced by accident in rev 1.3. Checking themillert2005-12-281-5/+3
| | | | | flag for sprintf-ness is not useful in a code path that is not called for sprintf and friends.
* Missing piece from previous commitmillert2005-12-191-1/+2
|
* Add %hhd to *printf and *scanf as well as %z to *scanf. This wasmillert2005-12-192-12/+39
| | | | | sent out and approved about 6 months ago and has been rotting in my tree ever since.
* clarify the description of append mode;jmc2005-11-141-2/+7
| | | | | this comes originally from a mail from mpech@; ok otto@, and no one else objected;
* fix a few warnings, keep the crypt stuff for later.espie2005-10-102-3/+4
| | | | okay otto@
* Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.espie2005-10-107-7/+14
| | | | | Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
* support %jd from c99, although intmax_t may not be available.tedu2005-09-232-2/+20
| | | | ok deraadt espie kettenis
* zap remaining rcsid.espie2005-08-0869-285/+69
| | | | | | Kill old files that are no longer compiled. okay theo
* zap getdtablesize() external ref (removes a bit of compat from instbin).espie2005-08-021-1/+3
| | | | okay millert@
* - typos, punctuation, spacing, macro, layout, etc. fixesjaredy2005-07-2613-64/+81
| | | | | | - avoid first person ok jmc
* clarify description of 'c' conversion; ok millert, jmcjaredy2005-07-261-4/+3
|
* no need to typecast NULL; ok millert, jmcjaredy2005-07-261-4/+4
|
* remove note about long double not being supported by vax.jaredy2005-07-261-5/+2
| | | | | | this should have been in CAVEATS anyway. ok millert, jmc
* note error return of mkstemps; ok millert, jmcjaredy2005-07-261-3/+5
|
* - simplify descriptions of stream positioning in various open modesjaredy2005-07-261-8/+15
| | | | | | | | | - mention that append mode always forces the stream position to EOF on writes from NetBSD -r 1.9 ok millert, jmc
* - remove .Sh LIBRARYjmc2005-06-176-17/+17
| | | | | - add $OpenBSD$ tag - a couple minor tweaks
* next citrus step.espie2005-06-1734-26/+1389
| | | | | reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump
* Fix rearranging of parameters for quad types.espie2005-06-081-11/+24
| | | | | | | Use stateful functions for mbtowc. Use the same loop for scanning and for rescanning the format. okay millert@
* Use '\0' not 0 when storing as a char, part from Andrey Matveev.millert2005-05-285-14/+14
|
* Move the va_start()/va_end() pair such that it directly backets the callmillert2005-05-282-8/+7
| | | | | to vfprintf() like the rest of the *printf functions. This is clearer and makes the error case in asprintf() simpler. From Andrey Matveev.
* mktemp(3) et al. go in stdlib.h, not unistd.h. While there be moremillert2005-05-271-11/+27
| | | | explicit about mktemp(3) in the man page.
* let vfscanf be a real function. Use a weak_alias on systems where thisespie2005-05-117-12/+42
| | | | | | | | is feasible. Okay millert@ There's a major libc bump coming that is going to cover this as well...
* Change internals of FILE: reuse the unget buffer field to access anespie2005-04-3014-41/+128
| | | | | | | | | | | | | | | | extended attribute data structure (pimpl idiom). Idea taken from citrus. Much discussion with deraadt@, otto@, millert@... This is the least disruptive way to extend FILE, since its size can't really change without this being a flag day. So the size doesn't change. Actual additions to the structure will come in separate steps, since this change is nasty enough on its own. Tests by otto@ and others, careful reading of code by otto@ and millert@. This is definitely a major bump, and has been checked to not impact a full ports build.
* move return values to a seperate section, and split them out so that itderaadt2005-04-141-37/+49
| | | | is more clear which variants return which values; ok jmc otto
* Explain what happens when len equals 0 for snprintf().otto2005-04-141-1/+9
| | | | ok jmc@ millert@
* make sure the implementation matches the prototype..pat2005-03-3112-25/+25
| | | | | | char const * -> const char * ok otto@ deraadt@
* ansipat2005-03-302-6/+4
| | | | ok otto moritz deraadt
* ansi + de-registerpat2005-03-301-2/+2
| | | | ok otto deraadt
* Document that perror() treats an empty string like NULL.millert2005-03-241-8/+6
|
* fix typo in comment.moritz2005-03-081-2/+2
|
* Be correct in our man pages when talking about NUL termination (that is,cloder2005-02-253-6/+6
| | | | | termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
* deregister + ansify, no change in object code. ok deraadt@ millert@otto2004-09-2861-385/+227
|
* typo fix, from the original diff in PR 3932brad2004-09-251-2/+2
|
* oopsderaadt2004-09-251-2/+2
|
* access one too far away; from claus; ok millertderaadt2004-09-241-3/+3
|
* explain why mmap; pointed out by claus, pr 3932deraadt2004-09-241-2/+4
|
* Add 'z' and 't' modifiers for printing size_t and ptrdiff_t.otto2004-09-182-5/+101
| | | | ok millert@ deraadt@
* Handle ll's correctly for positional args. Problem spotted by hin@,otto2004-09-161-2/+7
| | | | ok henning@ millert@ deraadt@
* signed vs unsignedderaadt2004-09-141-2/+2
|
* Don't need to check lbuf != NULL when free()ing it. In addition,millert2004-08-201-6/+3
| | | | | since the EOF w/o EOL can only happen for the last line, move the free() outside the loop so we only do it once. OK otto@
* Fix the short description for fileno()jfb2004-06-201-2/+2
| | | | ok otto@, millert@