summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
AgeCommit message (Collapse)Author
2004-09-28deregister + ansify, no change in object code. ok deraadt@ millert@Otto Moerbeek
2004-09-25typo fix, from the original diff in PR 3932Brad Smith
2004-09-25oopsTheo de Raadt
2004-09-24access one too far away; from claus; ok millertTheo de Raadt
2004-09-24explain why mmap; pointed out by claus, pr 3932Theo de Raadt
2004-09-18Add 'z' and 't' modifiers for printing size_t and ptrdiff_t.Otto Moerbeek
ok millert@ deraadt@
2004-09-16Handle ll's correctly for positional args. Problem spotted by hin@,Otto Moerbeek
ok henning@ millert@ deraadt@
2004-09-14signed vs unsignedTheo de Raadt
2004-08-20Don't need to check lbuf != NULL when free()ing it. In addition,Todd C. Miller
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@
2004-06-20Fix the short description for fileno()Jean-Francois Brousseau
ok otto@, millert@
2004-06-07major bump to libc and libpthread to break the dependency of aMarco S Hyman
particular implementation of libpthread for libc. libc no longer needs pthread.h to compile. OK millert@, brad@, tedu@
2004-05-03build the error message in strerror_r.c directly, avoiding one copy there.Marc Espie
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@.
2004-04-10Apply change from vsnprintf.c rev. 1.5. Use a single characterTodd C. Miller
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@
2004-01-11__sglue should be extern; from art@Todd C. Miller
2003-10-17typo;Jason McIntyre
2003-10-08Avoid a possible signed->unsigned assignment, fixes PR1709 (Claus Assmann)Anil Madhavapeddy
millert@ ok
2003-09-26for %#s, # is the amount of input string, not the amount of output string.Theo de Raadt
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.
2003-08-17Sort headers in exampleAlexander Yurchenko
ok millert@
2003-07-24warn about unsafe APIs at link time. Conditional on libc/Makefile definingTheo de Raadt
APIWARN; disabled by default. In use by many developers for quite some time, now they have a common knob to enable/disable this
2003-07-15.Ql Cm -> .Sq Cm where literal makes no sense;Jason McIntyre
2003-07-02nonstandard->non-standardAnil Madhavapeddy
jmc@ ok
2003-07-026 X's -> 10 X's in all examples, per avsm's idea, millert agreesPeter Valchev
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-11oopsTheo de Raadt
2003-06-11ansification; checked by pvalTheo de Raadt
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-01- section reorderJason McIntyre
- kill unnecessary .Ns macros - add some man page section numbers to .Xr's
2003-05-17Better English.Paul Janzen
2003-05-17Document behaviour when size = 1. ok millert@Paul Janzen
2003-05-16When positional arguments need more memory for storage (more than 8 args),Theo de Raadt
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
2003-05-03typos;Jason McIntyre
2003-04-25Make function declaration and man page match prototype. Closes PR 3236Todd C. Miller
2003-04-22char * in prototypes should be const; Kamo HiroyasuTodd C. Miller
2003-04-16Warn people that the value of the pointer passed in to asprinf()Todd C. Miller
is implementation-specific when we get ENOMEM but mention that *we* set it to NULL.
2003-04-02fifo -> FIFOJason McIntyre
ok millert@
2003-03-06.Xr typos;Jason McIntyre
2003-03-06.Xr's;Jason McIntyre
typos in man page section ok deraadt@
2003-02-16teach people about strlcpy, not strcpyTheo de Raadt
2002-11-24"The contents is" -> "The contents are"Chad Loder
2002-11-21Add strerror_r and functions versions of getchar_unlocked andMarco S Hyman
putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@
2002-10-24Use va_copy() for varargs assignemnt. va_copy() is standard with C99Dale Rahn
and gcc3.2 requires this on powerpc.
2002-09-14Move __cleanup into mprotect'ed page to prevent unintentional modificationsDaniel Hartmeier
similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
2002-07-24add *asprintfTheo de Raadt
2002-07-24Document that *printf can return -1 on error. This includes snprintf(),Todd C. Miller
though our implementation never does this.
2002-07-20correct check for strchr() failure in EXAMPLE; from pinskia@physics.uc.eduPeter Valchev
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-05-27Don't decrement the current character pointer past the beginning of theTodd C. Miller
buffer passed in. Based on a patch from Mark Andrews. deraadt@ OK
2002-05-01o) start new sentence on a new line;Mike Pechkin
o) always close .Bl tags; o) fix usage of .Xr; millert@ ok
2002-04-29fix for NetBSD lib/16483Marc Espie
Do not even try to allocate buffer if SSTR and not SALC (e.g., from snprintf and not asprintf). vfprintf is smart enough to then not try and write to it. ok millert@, deraadt@