]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - doc/html/ref/posix-c-language-services.html
RedBoot TX53 Release 2012-02-15
[karo-tx-redboot.git] / doc / html / ref / posix-c-language-services.html
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.               -->
9 <HTML
10 ><HEAD
11 ><TITLE
12 >C Language Services [POSIX Section 8]</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
14 <META
15 NAME="GENERATOR"
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17 "><LINK
18 REL="HOME"
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
21 REL="UP"
22 TITLE="POSIX Standard Support"
23 HREF="posix-standard-support.html"><LINK
24 REL="PREVIOUS"
25 TITLE="Device and Class Specific Functions [POSIX Section 7]"
26 HREF="posix-device-and-class-specific-functions.html"><LINK
27 REL="NEXT"
28 TITLE="System Databases [POSIX Section 9]"
29 HREF="posix-system-databases.html"></HEAD
30 ><BODY
31 CLASS="SECT1"
32 BGCOLOR="#FFFFFF"
33 TEXT="#000000"
34 LINK="#0000FF"
35 VLINK="#840084"
36 ALINK="#0000FF"
37 ><DIV
38 CLASS="NAVHEADER"
39 ><TABLE
40 SUMMARY="Header navigation table"
41 WIDTH="100%"
42 BORDER="0"
43 CELLPADDING="0"
44 CELLSPACING="0"
45 ><TR
46 ><TH
47 COLSPAN="3"
48 ALIGN="center"
49 >eCos Reference Manual</TH
50 ></TR
51 ><TR
52 ><TD
53 WIDTH="10%"
54 ALIGN="left"
55 VALIGN="bottom"
56 ><A
57 HREF="posix-device-and-class-specific-functions.html"
58 ACCESSKEY="P"
59 >Prev</A
60 ></TD
61 ><TD
62 WIDTH="80%"
63 ALIGN="center"
64 VALIGN="bottom"
65 >Chapter 31. POSIX Standard Support</TD
66 ><TD
67 WIDTH="10%"
68 ALIGN="right"
69 VALIGN="bottom"
70 ><A
71 HREF="posix-system-databases.html"
72 ACCESSKEY="N"
73 >Next</A
74 ></TD
75 ></TR
76 ></TABLE
77 ><HR
78 ALIGN="LEFT"
79 WIDTH="100%"></DIV
80 ><DIV
81 CLASS="SECT1"
82 ><H1
83 CLASS="SECT1"
84 ><A
85 NAME="POSIX-C-LANGUAGE-SERVICES">C Language Services &#0091;POSIX Section 8&#0093;</H1
86 ><DIV
87 CLASS="SECT2"
88 ><H2
89 CLASS="SECT2"
90 ><A
91 NAME="AEN13100">Functions Implemented</H2
92 ><TABLE
93 BORDER="5"
94 BGCOLOR="#E0E0F0"
95 WIDTH="70%"
96 ><TR
97 ><TD
98 ><PRE
99 CLASS="SCREEN"
100 >char &#0042;setlocale( int category, const char &#0042;locale ); 
101 int fileno( FILE &#0042;stream ); 
102 FILE &#0042;fdopen( int fd, const char &#0042;type ); 
103 int getc&#0095;unlocked( FILE &#0042;stream); 
104 int getchar&#0095;unlocked( void ); 
105 int putc&#0095;unlocked( FILE &#0042;stream ); 
106 int putchar&#0095;unlocked( void ); 
107 char &#0042;strtok&#0095;r( char &#0042;s, const char &#0042;sep, 
108                 char &#0042;&#0042;lasts ); 
109 char &#0042;asctime&#0095;r( const struct tm &#0042;tm, char &#0042;buf ); 
110 char &#0042;ctime&#0095;r( const time&#0095;t &#0042;clock, char &#0042;buf ); 
111 struct tm &#0042;gmtime&#0095;r( const time&#0095;t &#0042;clock,
112                      struct tm &#0042;result ); 
113 struct tm &#0042;localtime&#0095;r( const time&#0095;t &#0042;clock,
114                         struct tm &#0042;result ); 
115 int rand&#0095;r( unsigned int &#0042;seed );</PRE
116 ></TD
117 ></TR
118 ></TABLE
119 ></DIV
120 ><DIV
121 CLASS="SECT2"
122 ><H2
123 CLASS="SECT2"
124 ><A
125 NAME="AEN13103">Functions Omitted</H2
126 ><TABLE
127 BORDER="5"
128 BGCOLOR="#E0E0F0"
129 WIDTH="70%"
130 ><TR
131 ><TD
132 ><PRE
133 CLASS="SCREEN"
134 >void flockfile( FILE &#0042;file ); 
135 int ftrylockfile( FILE &#0042;file ); 
136 void funlockfile( FILE &#0042;file ); 
137 int sigsetjmp( sigjmp&#0095;buf env, int savemask );                    &#0047;&#0047; TBA 
138 void siglongjmp( sigjmp&#0095;buf env, int val );                       &#0047;&#0047; TBA 
139 void tzset(void);                                                       &#0047;&#0047; TBA</PRE
140 ></TD
141 ></TR
142 ></TABLE
143 ></DIV
144 ><DIV
145 CLASS="SECT2"
146 ><H2
147 CLASS="SECT2"
148 ><A
149 NAME="AEN13106">Notes</H2
150 ><P
151 ></P
152 ><UL
153 ><LI
154 ><P
155 >           <SPAN
156 CLASS="emphasis"
157 ><I
158 CLASS="EMPHASIS"
159 >setlocale()</I
160 ></SPAN
161 > is implemented in the C
162             library Internationalization package.
163             </P
164 ></LI
165 ><LI
166 ><P
167 >           Functions <SPAN
168 CLASS="emphasis"
169 ><I
170 CLASS="EMPHASIS"
171 >fileno()</I
172 ></SPAN
173 > and
174             <SPAN
175 CLASS="emphasis"
176 ><I
177 CLASS="EMPHASIS"
178 >fdopen()</I
179 ></SPAN
180 > are implemented in the C
181             library STDIO package.
182             </P
183 ></LI
184 ><LI
185 ><P
186 >           Functions <SPAN
187 CLASS="emphasis"
188 ><I
189 CLASS="EMPHASIS"
190 >getc&#0095;unlocked()</I
191 ></SPAN
192 >, 
193             <SPAN
194 CLASS="emphasis"
195 ><I
196 CLASS="EMPHASIS"
197 >getchar&#0095;unlocked()</I
198 ></SPAN
199 >,
200             <SPAN
201 CLASS="emphasis"
202 ><I
203 CLASS="EMPHASIS"
204 >putc&#0095;unlocked()</I
205 ></SPAN
206 > and
207             <SPAN
208 CLASS="emphasis"
209 ><I
210 CLASS="EMPHASIS"
211 >putchar&#0095;unlocked()</I
212 ></SPAN
213 > are defined
214             but are currently identical to their non-unlocked
215             equivalents.
216             </P
217 ></LI
218 ><LI
219 ><P
220 >           <SPAN
221 CLASS="emphasis"
222 ><I
223 CLASS="EMPHASIS"
224 >strtok&#0095;r()</I
225 ></SPAN
226 >, <SPAN
227 CLASS="emphasis"
228 ><I
229 CLASS="EMPHASIS"
230 >asctime&#0095;r()</I
231 ></SPAN
232 >, 
233             <SPAN
234 CLASS="emphasis"
235 ><I
236 CLASS="EMPHASIS"
237 >ctime&#0095;r()</I
238 ></SPAN
239 >, <SPAN
240 CLASS="emphasis"
241 ><I
242 CLASS="EMPHASIS"
243 >gmtime&#0095;r()</I
244 ></SPAN
245 >, 
246             <SPAN
247 CLASS="emphasis"
248 ><I
249 CLASS="EMPHASIS"
250 >localtime&#0095;r()</I
251 ></SPAN
252 > and
253             <SPAN
254 CLASS="emphasis"
255 ><I
256 CLASS="EMPHASIS"
257 >rand&#0095;r()</I
258 ></SPAN
259 > are all currently in
260             the C library, alongside their non-reentrant versions.
261             </P
262 ></LI
263 ></UL
264 ></DIV
265 ></DIV
266 ><DIV
267 CLASS="NAVFOOTER"
268 ><HR
269 ALIGN="LEFT"
270 WIDTH="100%"><TABLE
271 SUMMARY="Footer navigation table"
272 WIDTH="100%"
273 BORDER="0"
274 CELLPADDING="0"
275 CELLSPACING="0"
276 ><TR
277 ><TD
278 WIDTH="33%"
279 ALIGN="left"
280 VALIGN="top"
281 ><A
282 HREF="posix-device-and-class-specific-functions.html"
283 ACCESSKEY="P"
284 >Prev</A
285 ></TD
286 ><TD
287 WIDTH="34%"
288 ALIGN="center"
289 VALIGN="top"
290 ><A
291 HREF="ecos-ref.html"
292 ACCESSKEY="H"
293 >Home</A
294 ></TD
295 ><TD
296 WIDTH="33%"
297 ALIGN="right"
298 VALIGN="top"
299 ><A
300 HREF="posix-system-databases.html"
301 ACCESSKEY="N"
302 >Next</A
303 ></TD
304 ></TR
305 ><TR
306 ><TD
307 WIDTH="33%"
308 ALIGN="left"
309 VALIGN="top"
310 >Device and Class Specific Functions &#0091;POSIX Section 7&#0093;</TD
311 ><TD
312 WIDTH="34%"
313 ALIGN="center"
314 VALIGN="top"
315 ><A
316 HREF="posix-standard-support.html"
317 ACCESSKEY="U"
318 >Up</A
319 ></TD
320 ><TD
321 WIDTH="33%"
322 ALIGN="right"
323 VALIGN="top"
324 >System Databases &#0091;POSIX Section 9&#0093;</TD
325 ></TR
326 ></TABLE
327 ></DIV
328 ></BODY
329 ></HTML
330 >