Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | mktemp(3) et al. go in stdlib.h, not unistd.h. While there be more | 2005-05-27 | 1 | -11/+27 | ||
| | | | | explicit about mktemp(3) in the man page. | |||||
* | let vfscanf be a real function. Use a weak_alias on systems where this | 2005-05-11 | 7 | -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 an | 2005-04-30 | 14 | -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 it | 2005-04-14 | 1 | -37/+49 | ||
| | | | | is more clear which variants return which values; ok jmc otto | |||||
* | Explain what happens when len equals 0 for snprintf(). | 2005-04-14 | 1 | -1/+9 | ||
| | | | | ok jmc@ millert@ | |||||
* | make sure the implementation matches the prototype.. | 2005-03-31 | 12 | -25/+25 | ||
| | | | | | | char const * -> const char * ok otto@ deraadt@ | |||||
* | ansi | 2005-03-30 | 2 | -6/+4 | ||
| | | | | ok otto moritz deraadt | |||||
* | ansi + de-register | 2005-03-30 | 1 | -2/+2 | ||
| | | | | ok otto deraadt | |||||
* | Document that perror() treats an empty string like NULL. | 2005-03-24 | 1 | -8/+6 | ||
| | ||||||
* | fix typo in comment. | 2005-03-08 | 1 | -2/+2 | ||
| | ||||||
* | Be correct in our man pages when talking about NUL termination (that is, | 2005-02-25 | 3 | -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@ | 2004-09-28 | 61 | -385/+227 | ||
| | ||||||
* | typo fix, from the original diff in PR 3932 | 2004-09-25 | 1 | -2/+2 | ||
| | ||||||
* | oops | 2004-09-25 | 1 | -2/+2 | ||
| | ||||||
* | access one too far away; from claus; ok millert | 2004-09-24 | 1 | -3/+3 | ||
| | ||||||
* | explain why mmap; pointed out by claus, pr 3932 | 2004-09-24 | 1 | -2/+4 | ||
| | ||||||
* | Add 'z' and 't' modifiers for printing size_t and ptrdiff_t. | 2004-09-18 | 2 | -5/+101 | ||
| | | | | ok millert@ deraadt@ | |||||
* | Handle ll's correctly for positional args. Problem spotted by hin@, | 2004-09-16 | 1 | -2/+7 | ||
| | | | | ok henning@ millert@ deraadt@ | |||||
* | signed vs unsigned | 2004-09-14 | 1 | -2/+2 | ||
| | ||||||
* | Don't need to check lbuf != NULL when free()ing it. In addition, | 2004-08-20 | 1 | -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() | 2004-06-20 | 1 | -2/+2 | ||
| | | | | ok otto@, millert@ | |||||
* | major bump to libc and libpthread to break the dependency of a | 2004-06-07 | 1 | -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. | 2004-05-03 | 1 | -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 character | 2004-04-10 | 1 | -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@ | 2004-01-11 | 1 | -2/+4 | ||
| | ||||||
* | typo; | 2003-10-17 | 1 | -2/+2 | ||
| | ||||||
* | Avoid a possible signed->unsigned assignment, fixes PR1709 (Claus Assmann) | 2003-10-08 | 1 | -6/+6 | ||
| | | | | millert@ ok | |||||
* | for %#s, # is the amount of input string, not the amount of output string. | 2003-09-26 | 1 | -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 example | 2003-08-17 | 1 | -2/+2 | ||
| | | | | ok millert@ | |||||
* | warn about unsafe APIs at link time. Conditional on libc/Makefile defining | 2003-07-24 | 2 | -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; | 2003-07-15 | 1 | -2/+2 | ||
| | ||||||
* | nonstandard->non-standard | 2003-07-02 | 1 | -2/+2 | ||
| | | | | jmc@ ok | |||||
* | 6 X's -> 10 X's in all examples, per avsm's idea, millert agrees | 2003-07-02 | 1 | -4/+4 | ||
| | ||||||
* | Sync with share/misc/license.template and add missing DARPA credit | 2003-06-17 | 2 | -18/+18 | ||
| | | | | where applicable. | |||||
* | oops | 2003-06-11 | 2 | -7/+2 | ||
| | ||||||
* | ansification; checked by pval | 2003-06-11 | 2 | -2/+7 | ||
| | ||||||
* | Use an ISC-tyle license for all my code; it is simpler and more permissive. | 2003-06-03 | 2 | -46/+24 | ||
| | ||||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 90 | -541/+181 | ||
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | |||||
* | - section reorder | 2003-06-01 | 6 | -125/+126 | ||
| | | | | | - kill unnecessary .Ns macros - add some man page section numbers to .Xr's | |||||
* | Better English. | 2003-05-17 | 1 | -3/+3 | ||
| | ||||||
* | Document behaviour when size = 1. ok millert@ | 2003-05-17 | 2 | -2/+16 | ||
| | ||||||
* | When positional arguments need more memory for storage (more than 8 args), | 2003-05-16 | 1 | -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; | 2003-05-03 | 4 | -11/+11 | ||
| | ||||||
* | Make function declaration and man page match prototype. Closes PR 3236 | 2003-04-25 | 2 | -11/+9 | ||
| | ||||||
* | char * in prototypes should be const; Kamo Hiroyasu | 2003-04-22 | 1 | -4/+4 | ||
| | ||||||
* | Warn people that the value of the pointer passed in to asprinf() | 2003-04-16 | 1 | -3/+8 | ||
| | | | | | is implementation-specific when we get ENOMEM but mention that *we* set it to NULL. | |||||
* | fifo -> FIFO | 2003-04-02 | 2 | -4/+4 | ||
| | | | | ok millert@ | |||||
* | .Xr typos; | 2003-03-06 | 2 | -5/+5 | ||
| | ||||||
* | .Xr's; | 2003-03-06 | 2 | -4/+4 | ||
| | | | | | | typos in man page section ok deraadt@ | |||||
* | teach people about strlcpy, not strcpy | 2003-02-16 | 1 | -2/+2 | ||
| |