| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
| |
Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br>
Thanks.
|
|
|
|
|
|
| |
Kill old files that are no longer compiled.
okay theo
|
|
|
|
|
| |
to vfprintf() like the rest of the *printf functions. This is clearer
and makes the error case in asprintf() simpler. From Andrey Matveev.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
char const * -> const char *
ok otto@ deraadt@
|
|
|
|
| |
where applicable.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
realloc(3) to the size of the string, not the size of the buffer
allocated for the string (which is a noop). mycroft@netbsd.org
|
| |
|
|
|
|
|
| |
of the code as a large number of similar clauses makes it impossible
to write an ad for a product using the code...
|
| |
|
|
|
|
|
|
| |
For *s*printf, set f._file to -1 like the comments in stdio.h say.
Use '\0', not 0, where appropriate.
Don't error out on size of '0' for v?snprintf().
|
|
ones in the glibc. Some man pages changes from FreeBSD
(asprintf.c/vasprintf.c are not based on GNU or FreeBSD code).
|