summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/local.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make _fwalk and _cleanup completely internal to libcguenther2016-05-231-4/+2
| | | | ok deraadt@
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-071-3/+12
| | | | | | | | | | | | | | | | | 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@
* Hide __atexit and __atexit_register_cleanup()guenther2015-10-251-3/+1
| | | | | | | | 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@
* wrap _fwalk() so internal calls are direct (at least until we stopguenther2015-10-041-1/+2
| | | | exporting it)
* Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internalguenther2015-08-271-4/+8
| | | | | | symbols that are not longer exported. (This improves the generated code.) ok deraadt@
* Make __svfscanf() the unlocked, core of vfscanf() and use it inguenther2011-11-081-1/+2
| | | | | | sscanf()/vsscanf() where locking is unnecessary. ok millert@
* Add wscanf(3) and friends. Based on our scanf(3) implementation, with widestsp2011-10-161-1/+3
| | | | | character support changes based on code from FreeBSD. ok espie guenther; man page help from schwarze
* Bring back wprintf. We've sorted out what to do for gcc2 and gcc3.stsp2011-04-281-1/+2
| | | | "Yes, go ahead then" deraadt
* Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.stsp2011-04-241-2/+1
|
* Add fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, and wprintf to libc.stsp2011-04-241-1/+2
| | | | | | 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
* Fix the handle locking in stdio to use flockfile/funlockfilekurt2009-11-091-1/+6
| | | | | | | | | | | | | 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-6/+1
| | | | media to fit
* Fix the handle locking in stdio to use flockfile/funlockfileguenther2009-10-211-1/+6
| | | | | | | | | | | | 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@
* fix a few warnings, keep the crypt stuff for later.espie2005-10-101-1/+2
| | | | okay otto@
* next citrus step.espie2005-06-171-1/+3
| | | | | reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump
* Change internals of FILE: reuse the unget buffer field to access anespie2005-04-301-5/+7
| | | | | | | | | | | | | | | | 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.
* make sure the implementation matches the prototype..pat2005-03-311-2/+2
| | | | | | char const * -> const char * ok otto@ deraadt@
* ansi + de-registerpat2005-03-301-2/+2
| | | | ok otto deraadt
* fix typo in comment.moritz2005-03-081-2/+2
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Move __cleanup into mprotect'ed page to prevent unintentional modificationsdhartmei2002-09-141-2/+2
| | | | similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-171-2/+2
|
* 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-161-15/+15
|
* Fix RCS idstholo1996-08-191-3/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+89