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 | clearerr(), Function, Implemented |
---|
81 | fclose(), Function, Implemented |
---|
82 | feof(), Function, Implemented |
---|
83 | ferror(), Function, Implemented |
---|
84 | fflush(), Function, Implemented |
---|
85 | fgetc(), Function, Implemented |
---|
86 | fgets(), Function, Implemented |
---|
87 | fopen(), Function, Implemented |
---|
88 | fputc(), Function, Implemented |
---|
89 | fputs(), Function, Implemented |
---|
90 | fread(), Function, Implemented |
---|
91 | freopen(), Function, Implemented |
---|
92 | fseek(), Function, Implemented |
---|
93 | ftell(), Function, Implemented |
---|
94 | fwrite(), Function, Implemented |
---|
95 | getc(), Function, Implemented |
---|
96 | getchar(), Function, Implemented |
---|
97 | gets(), Function, Implemented |
---|
98 | perror(), Function, Implemented |
---|
99 | printf(), Function, Implemented |
---|
100 | fprintf(), Function, Implemented |
---|
101 | sprintf(), Function, Implemented |
---|
102 | putc(), Function, Implemented |
---|
103 | putchar(), Function, Implemented |
---|
104 | puts(), Function, Implemented |
---|
105 | remove(), Function, Implemented |
---|
106 | rename(), 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 | ANSI C Section 4.10 --- General Utilities |
---|
118 | |
---|
119 | @example |
---|
120 | abs(), Function, Implemented |
---|
121 | atof(), Function, Implemented |
---|
122 | atoi(), Function, Implemented |
---|
123 | atol(), Function, Implemented |
---|
124 | rand(), Function, Implemented |
---|
125 | srand(), Function, Implemented |
---|
126 | calloc(), Function, Implemented |
---|
127 | free(), Function, Implemented |
---|
128 | malloc(), Function, Implemented |
---|
129 | realloc(), Function, Implemented |
---|
130 | abort(), Function, Implemented |
---|
131 | exit(), Function, Implemented |
---|
132 | getenv(), Function, Implemented |
---|
133 | bsearch(), Function, Implemented |
---|
134 | qsort(), Function, Implemented |
---|
135 | @end example |
---|
136 | |
---|
137 | ANSI C Section 4.11 --- String Handling |
---|
138 | |
---|
139 | @example |
---|
140 | strcpy(), Function, Implemented |
---|
141 | strncpy(), Function, Implemented |
---|
142 | strcat(), Function, Implemented |
---|
143 | strncat(), Function, Implemented |
---|
144 | strcmp(), Function, Implemented |
---|
145 | strncmp(), Function, Implemented |
---|
146 | strchr(), Function, Implemented |
---|
147 | strcspn(), Function, Implemented |
---|
148 | strpbrk(), Function, Implemented |
---|
149 | strrchr(), Function, Implemented |
---|
150 | strspn(), Function, Implemented |
---|
151 | strstr(), Function, Implemented |
---|
152 | strtok(), Function, Implemented |
---|
153 | strlen(), Function, Implemented |
---|
154 | @end example |
---|
155 | |
---|
156 | ANSI C Section 4.12 --- Date and Time Handling |
---|
157 | |
---|
158 | @example |
---|
159 | time(), Function, Implemented |
---|
160 | asctime(), Function, Implemented |
---|
161 | ctime(), Function, Implemented |
---|
162 | gmtime(), Function, Implemented |
---|
163 | localtime(), Function, Implemented |
---|
164 | mktime(), Function, Implemented |
---|
165 | strftime(), Function, Implemented |
---|
166 | @end example |
---|
167 | |
---|
168 | NOTE: RTEMS has no notion of time zones. |
---|
169 | |
---|
170 | @subsection Extensions to Time Functions |
---|
171 | |
---|
172 | @subsection Extensions to @code{setlocale} Function |
---|
173 | |
---|
174 | @section C Language Input/Output Functions |
---|
175 | |
---|
176 | @subsection Map a Stream Pointer to a File Descriptor |
---|
177 | |
---|
178 | @example |
---|
179 | fileno(), Function, Implemented |
---|
180 | @end example |
---|
181 | |
---|
182 | @subsection Open a Stream on a File Descriptor |
---|
183 | |
---|
184 | @example |
---|
185 | fdopen(), Function, Implemented |
---|
186 | @end example |
---|
187 | |
---|
188 | @subsection Interactions of Other FILE-Type C Functions |
---|
189 | |
---|
190 | @subsection Operations on Files -- the @code{remove} Function |
---|
191 | |
---|
192 | @subsection Temporary File Name -- the @code{tmpnam} Function |
---|
193 | |
---|
194 | @subsection Stdio Locking Functions |
---|
195 | |
---|
196 | @example |
---|
197 | flockfile(), Function, Unimplemented |
---|
198 | ftrylockfile(), Function, Unimplemented |
---|
199 | funlockfile(), Function, Unimplemented |
---|
200 | @end example |
---|
201 | |
---|
202 | @subsection Stdio With Explicit Client Locking |
---|
203 | |
---|
204 | @example |
---|
205 | getc_unlocked(), Function, Unimplemented |
---|
206 | getchar_unlocked(), Function, Unimplemented |
---|
207 | putc_unlocked(), Function, Unimplemented |
---|
208 | putchar_unlocked(), Function, Unimplemented |
---|
209 | @end example |
---|
210 | |
---|
211 | @section Other C Language Functions |
---|
212 | |
---|
213 | @subsection Nonlocal Jumps |
---|
214 | |
---|
215 | @example |
---|
216 | sigsetjmp(), Function, Unimplemented |
---|
217 | siglongjmp(), Function, Unimplemented |
---|
218 | @end example |
---|
219 | |
---|
220 | @subsection Set Time Zone |
---|
221 | |
---|
222 | @example |
---|
223 | tzset(), Function, Unimplemented |
---|
224 | @end example |
---|
225 | |
---|
226 | @subsection Find String Token |
---|
227 | |
---|
228 | @example |
---|
229 | strtok_r(), Function, Implemented |
---|
230 | @end example |
---|
231 | |
---|
232 | @subsection ASCII Time Representation |
---|
233 | |
---|
234 | @example |
---|
235 | asctime_r(), Function, Implemented |
---|
236 | @end example |
---|
237 | |
---|
238 | @subsection Current Time Representation |
---|
239 | |
---|
240 | @example |
---|
241 | ctime_r(), Function, Implemented |
---|
242 | @end example |
---|
243 | |
---|
244 | @subsection Coordinated Universal Time |
---|
245 | |
---|
246 | @example |
---|
247 | gmtime_r(), Function, Implemented |
---|
248 | @end example |
---|
249 | |
---|
250 | @subsection Local Time |
---|
251 | |
---|
252 | @example |
---|
253 | localtime_r(), Function, Implemented |
---|
254 | @end example |
---|
255 | |
---|
256 | @subsection Pseudo-Random Sequence Generation Functions |
---|
257 | |
---|
258 | @example |
---|
259 | rand_r(), Function, Implemented |
---|
260 | @end example |
---|
261 | |
---|