[PATCH]: Thread safe stdio

Thomas Pfaff tpfaff@gmx.net
Mon Jan 12 10:24:00 GMT 2004

This patch adds support for thread safe stdio.

It will add 3 new header files three which supersedes newlib ones.

One of these (_types.h) is just a copy of newlibs _types.h with a
modified _lock_t. It is not strictly necessary since sizeof(int)
== sizeof(void*).

This patch makes only sense when my patch for newlib will be accepted.



2004-01-12  Thomas Pfaff  <tpfaff@gmx.net>

	* include/sys/_types.h: New file.
	* include/sys/lock.h: Ditto.
	* include/sys/stdio.h: Ditto.
	* thread.cc: Include sys/lock.h
	(__cygwin_lock_init_recursive): New function.
	(__cygwin_lock_fini_recursive): Ditto.
	(__cygwin_lock_lock_recursive): Ditto.
	(__cygwin_lock_unlock_recursive): Ditto.
	(__cygwin_flockfile): Ditto.
	(__cygwin_funlockfile): Ditto.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20040112/223056f7/attachment.ksh>

More information about the Cygwin-patches mailing list