summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
AgeCommit message (Collapse)Author
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@
2002-04-05Use the more likely pointer in a sample code fragment; miod@ ok.Aaron Campbell
2002-03-05style(9) for the example; Alexander YurchenkoTodd C. Miller
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-02more pid_t useTheo de Raadt
2001-12-07missing commaTodd C. Miller
2001-12-05KNF, i need this for what comes next..Theo de Raadt
2001-09-22Typo: tempfile ==> tempnam.Heikki Korpela
ok millert@
2001-09-06It is silly to reference the Tahoe architecture.Todd C. Miller
2001-09-05make sure that va_start() has matching va_end()Theo de Raadt
2001-09-04put changes back, this time ALL the files.Federico G. Schwindt
2001-08-30Back out fgsch@'s tree breaking commits.Todd T. Fries
Test next time, ok?
2001-08-30fix some const warningsFederico G. Schwindt