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. -->
12 >C Language Services [POSIX Section 8]</TITLE
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="POSIX Standard Support"
23 HREF="posix-standard-support.html"><LINK
25 TITLE="Device and Class Specific Functions [POSIX Section 7]"
26 HREF="posix-device-and-class-specific-functions.html"><LINK
28 TITLE="System Databases [POSIX Section 9]"
29 HREF="posix-system-databases.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="posix-device-and-class-specific-functions.html"
65 >Chapter 31. POSIX Standard Support</TD
71 HREF="posix-system-databases.html"
85 NAME="POSIX-C-LANGUAGE-SERVICES">C Language Services [POSIX Section 8]</H1
91 NAME="AEN13100">Functions Implemented</H2
100 >char *setlocale( int category, const char *locale );
101 int fileno( FILE *stream );
102 FILE *fdopen( int fd, const char *type );
103 int getc_unlocked( FILE *stream);
104 int getchar_unlocked( void );
105 int putc_unlocked( FILE *stream );
106 int putchar_unlocked( void );
107 char *strtok_r( char *s, const char *sep,
108 char **lasts );
109 char *asctime_r( const struct tm *tm, char *buf );
110 char *ctime_r( const time_t *clock, char *buf );
111 struct tm *gmtime_r( const time_t *clock,
112 struct tm *result );
113 struct tm *localtime_r( const time_t *clock,
114 struct tm *result );
115 int rand_r( unsigned int *seed );</PRE
125 NAME="AEN13103">Functions Omitted</H2
134 >void flockfile( FILE *file );
135 int ftrylockfile( FILE *file );
136 void funlockfile( FILE *file );
137 int sigsetjmp( sigjmp_buf env, int savemask ); // TBA
138 void siglongjmp( sigjmp_buf env, int val ); // TBA
139 void tzset(void); // TBA</PRE
149 NAME="AEN13106">Notes</H2
161 > is implemented in the C
162 library Internationalization package.
180 > are implemented in the C
181 library STDIO package.
190 >getc_unlocked()</I
197 >getchar_unlocked()</I
204 >putc_unlocked()</I
211 >putchar_unlocked()</I
214 but are currently identical to their non-unlocked
230 >asctime_r()</I
250 >localtime_r()</I
259 > are all currently in
260 the C library, alongside their non-reentrant versions.
271 SUMMARY="Footer navigation table"
282 HREF="posix-device-and-class-specific-functions.html"
300 HREF="posix-system-databases.html"
310 >Device and Class Specific Functions [POSIX Section 7]</TD
316 HREF="posix-standard-support.html"
324 >System Databases [POSIX Section 9]</TD