OpenBSD CVS

CVS log for src/include/stdio.h


[BACK] Up to [local] / src / include

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_4_9_BASE


Revision 1.38 / (download) - annotate - [select for diffs], Mon Nov 9 00:18:27 2009 UTC (14 years, 6 months ago) by kurt
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.37: +19 -19 lines
Diff to previous 1.37 (colored)

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.