| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
wrapper .h files and asm labels to let internal calls resolve directly and
not be overridable or use the PLT. Then, apply that framework to most of
the functions in stdio.h, string.h, err.h, and wchar.h. Delete the
should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.
tests clean on i386, amd64, sparc64, powerpc, and mips64
naming feedback from kettenis@ and millert@
ok kettenis@
|
|
|
|
|
|
|
| |
and llib-lwrap.ln databases; so that the lint features doing format
strings checks are enabled by default.
Looks good to millert@.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
media to fit
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
| |
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@
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
| |
|
| |
|
|
|
|
|
|
| |
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().
|
|
|
|
|
| |
should be < 1. While EOF is currently defined as -1 it is bad form
to assume this.
|
| |
|
|
|
|
| |
Make sure everything uses {SYS,}LIBC_SCCS properly
|
|
|