summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fvwrite.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use recallocarray() to avoid leaving detritus in memory when resizingmillert2017-03-171-2/+3
| | | | the string buffer used by asprintf() and vasprintf(). OK deraadt@
* When reallocating the buffer for asprintf(), just round up to themillert2017-03-161-6/+5
| | | | | nearest page instead of doubling the old size until it is large enough. OK deraadt@
* Delete casts to off_t and size_t that are implied by assignmentsguenther2016-09-211-3/+3
| | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
* Fix the handle locking in stdio to use flockfile/funlockfilekurt2009-11-091-4/+4
| | | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. committing on behalf of and okay guenther@ now that we have install media space available.
* Back out previous commit, as it caused too much growth for the installguenther2009-10-221-4/+4
| | | | media to fit
* Fix the handle locking in stdio to use flockfile/funlockfileguenther2009-10-211-4/+4
| | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. ok kurt@, earlier version tested by sthen@ and jj@
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* deregister + ansify, no change in object code. ok deraadt@ millert@otto2004-09-281-8/+6
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* a first pass at -Wallderaadt2001-07-091-1/+2
|
* Local changes that should not have gone inmillert1999-08-071-7/+2
|
* If fread() returns EBADF, also set the error flag; tobez@plab.ku.dkmillert1999-08-071-2/+7
|
* Allocate space exponentially, not linearly for v?asprintf; mycroft@netbsd.orgmillert1998-11-201-9/+11
|
* realloc repairderaadt1998-08-141-4/+5
|
* Deal with realloc() failure in v?asprintf()millert1997-11-301-2/+3
|
* Implement asprintf(3) and vasprintf(3) functions similar to themillert1997-11-291-1/+17
| | | | | ones in the glibc. Some man pages changes from FreeBSD (asprintf.c/vasprintf.c are not based on GNU or FreeBSD code).
* Need <errno.h>tholo1996-10-261-1/+2
|
* Set errno when trying to write to a read-only streamtholo1996-10-261-2/+4
|
* Fix RCS idstholo1996-08-191-6/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+194