summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* "The contents is" -> "The contents are"cloder2002-11-241-2/+2
|
* Add strerror_r and functions versions of getchar_unlocked andmarc2002-11-212-5/+31
| | | | putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@
* Use va_copy() for varargs assignemnt. va_copy() is standard with C99drahn2002-10-241-3/+3
| | | | and gcc3.2 requires this on powerpc.
* Move __cleanup into mprotect'ed page to prevent unintentional modificationsdhartmei2002-09-144-11/+12
| | | | similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
* add *asprintfderaadt2002-07-241-1/+3
|
* Document that *printf can return -1 on error. This includes snprintf(),millert2002-07-241-1/+2
| | | | though our implementation never does this.
* correct check for strchr() failure in EXAMPLE; from pinskia@physics.uc.edupvalchev2002-07-201-2/+2
|
* spelling; from Brian Poole <raj@cerias.purdue.edu>todd2002-06-141-2/+2
|
* Don't decrement the current character pointer past the beginning of themillert2002-05-271-3/+3
| | | | buffer passed in. Based on a patch from Mark Andrews. deraadt@ OK
* o) start new sentence on a new line;mpech2002-05-011-2/+3
| | | | | | | o) always close .Bl tags; o) fix usage of .Xr; millert@ ok
* fix for NetBSD lib/16483espie2002-04-291-2/+5
| | | | | | | | 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@
* Use the more likely pointer in a sample code fragment; miod@ ok.aaron2002-04-051-2/+2
|
* style(9) for the example; Alexander Yurchenkomillert2002-03-051-3/+3
|
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-1912-151/+15
|
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-172-7/+5
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-168-32/+32
|
* more pid_t usederaadt2002-01-021-2/+3
|
* missing commamillert2001-12-071-2/+2
|
* KNF, i need this for what comes next..deraadt2001-12-051-47/+46
|
* Typo: tempfile ==> tempnam.heko2001-09-221-2/+2
| | | | ok millert@
* It is silly to reference the Tahoe architecture.millert2001-09-061-4/+2
|
* make sure that va_start() has matching va_end()deraadt2001-09-051-3/+4
|
* put changes back, this time ALL the files.fgsch2001-09-041-2/+2
|
* Back out fgsch@'s tree breaking commits.todd2001-08-301-2/+2
| | | | Test next time, ok?
* fix some const warningsfgsch2001-08-301-2/+2
|
* Fix a bug with the %e flag introduced in a -Wall pass. The originalmillert2001-08-131-2/+2
| | | | | code was in error but due to C precedence rules it didn't cause a problem.
* a first pass at -Wallderaadt2001-07-0925-34/+61
|