summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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@
* major bump to libc and libpthread to break the dependency of amarc2004-06-071-13/+2
| | | | | | particular implementation of libpthread for libc. libc no longer needs pthread.h to compile. OK millert@, brad@, tedu@
* build the error message in strerror_r.c directly, avoiding one copy there.espie2004-05-031-9/+3
| | | | | | | | handle a few subtle details caught by the regression tests: correct termination, non copying if buffer length == 0, errno setting. let all former users of __strerror go through strerror_r. Work by Todd Miller and I. Okay millert@.
* Apply change from vsnprintf.c rev. 1.5. Use a single charactermillert2004-04-101-5/+10
| | | | | buffer for the size==0 case. Stdio internals do not deal correctly with zero size buffer and NULL pointer. From torek@bsdi.com; Ok henning@
* __sglue should be extern; from art@millert2004-01-111-2/+4
|
* typo;jmc2003-10-171-2/+2
|
* Avoid a possible signed->unsigned assignment, fixes PR1709 (Claus Assmann)avsm2003-10-081-6/+6
| | | | millert@ ok
* for %#s, # is the amount of input string, not the amount of output string.deraadt2003-09-261-3/+8
| | | | | | hence # must be 1 less than the size of the storage buffer. yes, we've known this for a long time, but it is not clearly documented and half the code out there does not use n-1! whoever designed this needs to be tortured.
* Sort headers in examplegrange2003-08-171-2/+2
| | | | ok millert@
* warn about unsafe APIs at link time. Conditional on libc/Makefile definingderaadt2003-07-242-2/+12
| | | | | APIWARN; disabled by default. In use by many developers for quite some time, now they have a common knob to enable/disable this
* .Ql Cm -> .Sq Cm where literal makes no sense;jmc2003-07-151-2/+2
|
* nonstandard->non-standardavsm2003-07-021-2/+2
| | | | jmc@ ok
* 6 X's -> 10 X's in all examples, per avsm's idea, millert agreespvalchev2003-07-021-4/+4
|
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-172-18/+18
| | | | where applicable.
* oopsderaadt2003-06-112-7/+2
|
* ansification; checked by pvalderaadt2003-06-112-2/+7
|
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-032-46/+24
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0290-541/+181
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* - section reorderjmc2003-06-016-125/+126
| | | | | - kill unnecessary .Ns macros - add some man page section numbers to .Xr's
* Better English.pjanzen2003-05-171-3/+3
|
* Document behaviour when size = 1. ok millert@pjanzen2003-05-172-2/+16
|
* When positional arguments need more memory for storage (more than 8 args),deraadt2003-05-161-16/+30
| | | | | | | use mmap() instead of malloc(). this makes all the functionality in snprintf() and friends signal race safe. it also makes syslog_r() and the entire family of *warn*() and *err*() signal race safe, which was the real goal. ok pjazen millert
* typos;jmc2003-05-034-11/+11
|
* Make function declaration and man page match prototype. Closes PR 3236millert2003-04-252-11/+9
|
* char * in prototypes should be const; Kamo Hiroyasumillert2003-04-221-4/+4
|
* Warn people that the value of the pointer passed in to asprinf()millert2003-04-161-3/+8
| | | | | is implementation-specific when we get ENOMEM but mention that *we* set it to NULL.
* fifo -> FIFOjmc2003-04-022-4/+4
| | | | ok millert@
* .Xr typos;jmc2003-03-062-5/+5
|
* .Xr's;jmc2003-03-062-4/+4
| | | | | | typos in man page section ok deraadt@
* teach people about strlcpy, not strcpyderaadt2003-02-161-2/+2
|