1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-1998. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @chapter Language-Specific Services for the C Programming Language |
---|
10 | |
---|
11 | @section Referenced C Language Routines |
---|
12 | |
---|
13 | ANSI C Section 4.2 --- Diagnostics |
---|
14 | |
---|
15 | @example |
---|
16 | assert(), Function, Implemented |
---|
17 | @end example |
---|
18 | |
---|
19 | ANSI C Section 4.3 --- Character Handling |
---|
20 | |
---|
21 | @example |
---|
22 | isalnum(), Function, Implemented |
---|
23 | isalpha(), Function, Implemented |
---|
24 | iscntrl(), Function, Implemented |
---|
25 | isdigit(), Function, Implemented |
---|
26 | isgraph(), Function, Implemented |
---|
27 | islower(), Function, Implemented |
---|
28 | isprint(), Function, Implemented |
---|
29 | ispunct(), Function, Implemented |
---|
30 | isspace(), Function, Implemented |
---|
31 | isupper(), Function, Implemented |
---|
32 | isxdigit(), Function, Implemented |
---|
33 | tolower(), Function, Implemented |
---|
34 | toupper(), Function, Implemented |
---|
35 | @end example |
---|
36 | |
---|
37 | ANSI C Section 4.4 --- Localization |
---|
38 | |
---|
39 | @example |
---|
40 | setlocale(), Function, Partial Implementation |
---|
41 | @end example |
---|
42 | |
---|
43 | ANSI C Section 4.5 --- Mathematics |
---|
44 | |
---|
45 | @example |
---|
46 | acos(), Function, Implemented |
---|
47 | asin(), Function, Implemented |
---|
48 | atan(), Function, Implemented |
---|
49 | atan2(), Function, Implemented |
---|
50 | cos(), Function, Implemented |
---|
51 | sin(), Function, Implemented |
---|
52 | tan(), Function, Implemented |
---|
53 | cosh(), Function, Implemented |
---|
54 | sinh(), Function, Implemented |
---|
55 | tanh(), Function, Implemented |
---|
56 | exp(), Function, Implemented |
---|
57 | frexp(), Function, Implemented |
---|
58 | ldexp(), Function, Implemented |
---|
59 | log(), Function, Implemented |
---|
60 | log10(), Function, Implemented |
---|
61 | modf(), Function, Implemented |
---|
62 | pow(), Function, Implemented |
---|
63 | sqrt(), Function, Implemented |
---|
64 | ceil(), Function, Implemented |
---|
65 | fabs(), Function, Implemented |
---|
66 | floor(), Function, Implemented |
---|
67 | fmod(), Function, Implemented |
---|
68 | @end example |
---|
69 | |
---|
70 | ANSI C Section 4.6 --- Non-Local Jumps |
---|
71 | |
---|
72 | @example |
---|
73 | setjmp(), Function, Implemented |
---|
74 | longjmp(), Function, Implemented |
---|
75 | @end example |
---|
76 | |
---|
77 | ANSI C Section 4.9 --- Input/Output |
---|
78 | |
---|
79 | @example |
---|
80 | FILE, Type, Implemented |
---|
81 | clearerr(), Function, Implemented |
---|
82 | fclose(), Function, Implemented |
---|
83 | feof(), Function, Implemented |
---|
84 | ferror(), Function, Implemented |
---|
85 | fflush(), Function, Implemented |
---|
86 | fgetc(), Function, Implemented |
---|
87 | fgets(), Function, Implemented |
---|
88 | fopen(), Function, Implemented |
---|
89 | fputc(), Function, Implemented |
---|
90 | fputs(), Function, Implemented |
---|
91 | fread(), Function, Implemented |
---|
92 | freopen(), Function, Implemented |
---|
93 | fseek(), Function, Implemented |
---|
94 | ftell(), Function, Implemented |
---|
95 | fwrite(), Function, Implemented |
---|
96 | getc(), Function, Implemented |
---|
97 | getchar(), Function, Implemented |
---|
98 | gets(), Function, Implemented |
---|
99 | perror(), Function, Implemented |
---|
100 | printf(), Function, Implemented |
---|
101 | fprintf(), Function, Implemented |
---|
102 | sprintf(), Function, Implemented |
---|
103 | putc(), Function, Implemented |
---|
104 | putchar(), Function, Implemented |
---|
105 | puts(), Function, Implemented |
---|
106 | remove(), Function, Implemented |
---|
107 | rewind(), Function, Implemented |
---|
108 | scanf(), Function, Implemented |
---|
109 | fscanf(), Function, Implemented |
---|
110 | sscanf(), Function, Implemented |
---|
111 | setbuf(), Function, Implemented |
---|
112 | tmpfile(), Function, Implemented |
---|
113 | tmpnam(), Function, Implemented |
---|
114 | ungetc(), Function, Implemented |
---|
115 | @end example |
---|
116 | |
---|
117 | NOTE: @code{rename} is also included in another section. @ref{Rename a File}. |
---|
118 | |
---|
119 | ANSI C Section 4.10 --- General Utilities |
---|
120 | |
---|
121 | @example |
---|
122 | abs(), Function, Implemented |
---|
123 | atof(), Function, Implemented |
---|
124 | atoi(), Function, Implemented |
---|
125 | atol(), Function, Implemented |
---|
126 | rand(), Function, Implemented |
---|
127 | srand(), Function, Implemented |
---|
128 | calloc(), Function, Implemented |
---|
129 | free(), Function, Implemented |
---|
130 | malloc(), Function, Implemented |
---|
131 | realloc(), Function, Implemented |
---|
132 | abort(), Function, Implemented |
---|
133 | exit(), Function, Implemented |
---|
134 | bsearch(), Function, Implemented |
---|
135 | qsort(), Function, Implemented |
---|
136 | @end example |
---|
137 | |
---|
138 | NOTE: @code{getenv} is also included in another section. |
---|
139 | @ref{Environment Access}. |
---|
140 | |
---|
141 | ANSI C Section 4.11 --- String Handling |
---|
142 | |
---|
143 | @example |
---|
144 | strcpy(), Function, Implemented |
---|
145 | strncpy(), Function, Implemented |
---|
146 | strcat(), Function, Implemented |
---|
147 | strncat(), Function, Implemented |
---|
148 | strcmp(), Function, Implemented |
---|
149 | strncmp(), Function, Implemented |
---|
150 | strchr(), Function, Implemented |
---|
151 | strcspn(), Function, Implemented |
---|
152 | strpbrk(), Function, Implemented |
---|
153 | strrchr(), Function, Implemented |
---|
154 | strspn(), Function, Implemented |
---|
155 | strstr(), Function, Implemented |
---|
156 | strtok(), Function, Implemented |
---|
157 | strlen(), Function, Implemented |
---|
158 | @end example |
---|
159 | |
---|
160 | ANSI C Section 4.12 --- Date and Time Handling |
---|
161 | |
---|
162 | @example |
---|
163 | asctime(), Function, Implemented |
---|
164 | ctime(), Function, Implemented |
---|
165 | gmtime(), Function, Implemented |
---|
166 | localtime(), Function, Implemented |
---|
167 | mktime(), Function, Implemented |
---|
168 | strftime(), Function, Implemented |
---|
169 | @end example |
---|
170 | |
---|
171 | NOTE: RTEMS has no notion of time zones. |
---|
172 | |
---|
173 | NOTE: @code{time} is also included in another section. |
---|
174 | @ref{Get System Time}. |
---|
175 | |
---|
176 | From Surrounding Text |
---|
177 | |
---|
178 | @example |
---|
179 | EXIT_SUCCESS, Constant, Implemented |
---|
180 | EXIT_FAILURE, Constant, Implemented |
---|
181 | @end example |
---|
182 | |
---|
183 | |
---|
184 | @subsection Extensions to Time Functions |
---|
185 | |
---|
186 | @subsection Extensions to @code{setlocale} Function |
---|
187 | |
---|
188 | @example |
---|
189 | LC_CTYPE, Constant, Implemented |
---|
190 | LC_COLLATE, Constant, Implemented |
---|
191 | LC_TIME, Constant, Implemented |
---|
192 | LC_NUMERIC, Constant, Implemented |
---|
193 | LC_MONETARY, Constant, Implemented |
---|
194 | LC_ALL, Constant, Implemented |
---|
195 | @end example |
---|
196 | |
---|
197 | @section C Language Input/Output Functions |
---|
198 | |
---|
199 | @subsection Map a Stream Pointer to a File Descriptor |
---|
200 | |
---|
201 | @example |
---|
202 | fileno(), Function, Implemented |
---|
203 | STDIN_FILENO, Constant, Implemented |
---|
204 | STDOUT_FILENO, Constant, Implemented |
---|
205 | STDERR_FILENO, Constant, ImplementeD |
---|
206 | @end example |
---|
207 | |
---|
208 | @subsection Open a Stream on a File Descriptor |
---|
209 | |
---|
210 | @example |
---|
211 | fdopen(), Function, Implemented |
---|
212 | @end example |
---|
213 | |
---|
214 | @subsection Interactions of Other FILE-Type C Functions |
---|
215 | |
---|
216 | @subsection Operations on Files -- the @code{remove} Function |
---|
217 | |
---|
218 | @subsection Temporary File Name -- the @code{tmpnam} Function |
---|
219 | |
---|
220 | @subsection Stdio Locking Functions |
---|
221 | |
---|
222 | @example |
---|
223 | flockfile(), Function, Unimplemented |
---|
224 | ftrylockfile(), Function, Unimplemented |
---|
225 | funlockfile(), Function, Unimplemented |
---|
226 | @end example |
---|
227 | |
---|
228 | @subsection Stdio With Explicit Client Locking |
---|
229 | |
---|
230 | @example |
---|
231 | getc_unlocked(), Function, Unimplemented |
---|
232 | getchar_unlocked(), Function, Unimplemented |
---|
233 | putc_unlocked(), Function, Unimplemented |
---|
234 | putchar_unlocked(), Function, Unimplemented |
---|
235 | @end example |
---|
236 | |
---|
237 | @section Other C Language Functions |
---|
238 | |
---|
239 | @subsection Nonlocal Jumps |
---|
240 | |
---|
241 | @example |
---|
242 | sigjmp_buf, Type, Unimplemented |
---|
243 | sigsetjmp(), Function, Unimplemented |
---|
244 | siglongjmp(), Function, Unimplemented |
---|
245 | @end example |
---|
246 | |
---|
247 | @subsection Set Time Zone |
---|
248 | |
---|
249 | @example |
---|
250 | tzset(), Function, Unimplemented |
---|
251 | @end example |
---|
252 | |
---|
253 | @subsection Find String Token |
---|
254 | |
---|
255 | @example |
---|
256 | strtok_r(), Function, Implemented |
---|
257 | @end example |
---|
258 | |
---|
259 | @subsection ASCII Time Representation |
---|
260 | |
---|
261 | @example |
---|
262 | asctime_r(), Function, Implemented |
---|
263 | @end example |
---|
264 | |
---|
265 | @subsection Current Time Representation |
---|
266 | |
---|
267 | @example |
---|
268 | ctime_r(), Function, Implemented |
---|
269 | @end example |
---|
270 | |
---|
271 | @subsection Coordinated Universal Time |
---|
272 | |
---|
273 | @example |
---|
274 | gmtime_r(), Function, Implemented |
---|
275 | @end example |
---|
276 | |
---|
277 | @subsection Local Time |
---|
278 | |
---|
279 | @example |
---|
280 | localtime_r(), Function, Implemented |
---|
281 | @end example |
---|
282 | |
---|
283 | @subsection Pseudo-Random Sequence Generation Functions |
---|
284 | |
---|
285 | @example |
---|
286 | rand_r(), Function, Implemented |
---|
287 | @end example |
---|
288 | |
---|