1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="C and math library overview"
23 HREF="c-and-math-library-overview.html"><LINK
25 TITLE="Some implementation details"
26 HREF="libc-implementation-details.html"><LINK
28 TITLE="C library startup"
29 HREF="c-library-startup.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="libc-implementation-details.html"
65 >Chapter 13. C and math library overview</TD
71 HREF="c-library-startup.html"
85 NAME="LIBC-THREAD-SAFETY">Thread safety</H1
87 >The ISO C library has configuration options that control thread
88 safety, i.e. working behavior if multiple threads call the same
89 function at the same time.</P
91 >The following functionality has to be configured correctly,
92 or used carefully in a multi-threaded environment:</P
123 (and all standard I/O functions except for
207 >date and time settings</P
211 >In some cases, to make <SPAN
218 easier, functions are provided (as specified by POSIX 1003.1) that define
219 re-entrant alternatives, i.e. <TT
239 configuration options are provided that control either locking of functions
240 or their shared data, such as with standard I/O streams,
241 or by using per-thread data, such as with the <TT
246 >In some other cases, like the setting of date and time, no
247 re-entrant or thread-safe alternative or configuration is provided
248 as it is simply not a worthwhile addition (date and time should
249 rarely need to be set.)</P
256 SUMMARY="Footer navigation table"
267 HREF="libc-implementation-details.html"
285 HREF="c-library-startup.html"
295 >Some implementation details</TD
301 HREF="c-and-math-library-overview.html"
309 >C library startup</TD