#
a9c2ddde |
| 23-May-2016 |
guenther <guenther@openbsd.org> |
Make _fwalk and _cleanup completely internal to libc
ok deraadt@
|
#
fe38b55c |
| 07-May-2016 |
guenther <guenther@openbsd.org> |
Use a Thread Information Block in both single and multi-threaded programs. This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an
Use a Thread Information Block in both single and multi-threaded programs. This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!
Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now!
Clean up libpthread's symbol exports like libc.
On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec.
Testing by various, particularly sthen@ and patrick@ ok kettenis@
show more ...
|
#
57b9636d |
| 25-Oct-2015 |
guenther <guenther@openbsd.org> |
Hide __atexit and __atexit_register_cleanup() Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct Switch regress/lib/libc/atexit/ to be built with -static so that it can still access
Hide __atexit and __atexit_register_cleanup() Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct Switch regress/lib/libc/atexit/ to be built with -static so that it can still access __atexit*
ok millert@ jca@
show more ...
|
#
7645a7bf |
| 04-Oct-2015 |
guenther <guenther@openbsd.org> |
wrap _fwalk() so internal calls are direct (at least until we stop exporting it)
|
#
bb64080b |
| 27-Aug-2015 |
guenther <guenther@openbsd.org> |
Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internal symbols that are not longer exported. (This improves the generated code.)
ok deraadt@
|
#
e09d0be9 |
| 08-Nov-2011 |
guenther <guenther@openbsd.org> |
Make __svfscanf() the unlocked, core of vfscanf() and use it in sscanf()/vsscanf() where locking is unnecessary.
ok millert@
|
#
2d31a56b |
| 16-Oct-2011 |
stsp <stsp@openbsd.org> |
Add wscanf(3) and friends. Based on our scanf(3) implementation, with wide character support changes based on code from FreeBSD. ok espie guenther; man page help from schwarze
|
#
25963022 |
| 28-Apr-2011 |
stsp <stsp@openbsd.org> |
Bring back wprintf. We've sorted out what to do for gcc2 and gcc3. "Yes, go ahead then" deraadt
|
#
760d4ce4 |
| 24-Apr-2011 |
stsp <stsp@openbsd.org> |
Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.
|
#
92b22d3d |
| 24-Apr-2011 |
stsp <stsp@openbsd.org> |
Add fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, and wprintf to libc. Based on our vfprintf etc. implementations. Wide character parts based on NetBSD but with lots of macros expanded. Minor b
Add fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, and wprintf to libc. Based on our vfprintf etc. implementations. Wide character parts based on NetBSD but with lots of macros expanded. Minor bump for libc. ok kettenis espie
show more ...
|
#
c5acf43a |
| 09-Nov-2009 |
kurt <kurt@openbsd.org> |
Fix the handle locking in stdio to use flockfile/funlockfile internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is th
Fix the handle locking in stdio to use flockfile/funlockfile 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.
show more ...
|
#
7ff09c5c |
| 22-Oct-2009 |
guenther <guenther@openbsd.org> |
Back out previous commit, as it caused too much growth for the install media to fit
|
#
9962e7fd |
| 21-Oct-2009 |
guenther <guenther@openbsd.org> |
Fix the handle locking in stdio to use flockfile/funlockfile internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is th
Fix the handle locking in stdio to use flockfile/funlockfile 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@
show more ...
|
#
c919a5c6 |
| 10-Oct-2005 |
espie <espie@openbsd.org> |
fix a few warnings, keep the crypt stuff for later. okay otto@
|
#
c2fb3212 |
| 17-Jun-2005 |
espie <espie@openbsd.org> |
next citrus step.
reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump
|
#
685aea3c |
| 30-Apr-2005 |
espie <espie@openbsd.org> |
Change internals of FILE: reuse the unget buffer field to access an extended attribute data structure (pimpl idiom). Idea taken from citrus. Much discussion with deraadt@, otto@, millert@...
This is
Change internals of FILE: reuse the unget buffer field to access an 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.
show more ...
|
#
9e895940 |
| 31-Mar-2005 |
pat <pat@openbsd.org> |
make sure the implementation matches the prototype.. char const * -> const char *
ok otto@ deraadt@
|
#
d8bc04e4 |
| 30-Mar-2005 |
pat <pat@openbsd.org> |
ansi + de-register
ok otto deraadt
|
#
ad9dc899 |
| 08-Mar-2005 |
moritz <moritz@openbsd.org> |
fix typo in comment.
|
#
6580fee3 |
| 02-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
8d62ee40 |
| 14-Sep-2002 |
dhartmei <dhartmei@openbsd.org> |
Move __cleanup into mprotect'ed page to prevent unintentional modifications similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
|
#
f3c3a9c6 |
| 17-Feb-2002 |
millert <millert@openbsd.org> |
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
|
#
c72b5b24 |
| 16-Feb-2002 |
millert <millert@openbsd.org> |
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 don
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.
show more ...
|
#
e9b2b68c |
| 19-Aug-1996 |
tholo <tholo@openbsd.org> |
Fix RCS ids Make sure everything uses {SYS,}LIBC_SCCS properly
|
#
df930be7 |
| 18-Oct-1995 |
deraadt <deraadt@openbsd.org> |
initial import of NetBSD tree
|