[2d19ed6c] | 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 |
---|
[0874502] | 10 | |
---|
[2d19ed6c] | 11 | @section Referenced C Language Routines |
---|
[0874502] | 12 | |
---|
| 13 | ANSI C Section 4.2 --- Diagnostics |
---|
| 14 | |
---|
| 15 | @example |
---|
[2a087f3] | 16 | assert(), Function, Implemented |
---|
[0874502] | 17 | @end example |
---|
| 18 | |
---|
| 19 | ANSI C Section 4.3 --- Character Handling |
---|
| 20 | |
---|
| 21 | @example |
---|
[2a087f3] | 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 |
---|
[0874502] | 35 | @end example |
---|
| 36 | |
---|
| 37 | ANSI C Section 4.4 --- Localization |
---|
| 38 | |
---|
| 39 | @example |
---|
[2a087f3] | 40 | setlocale(), Function, Partial Implementation |
---|
[0874502] | 41 | @end example |
---|
| 42 | |
---|
| 43 | ANSI C Section 4.5 --- Mathematics |
---|
| 44 | |
---|
| 45 | @example |
---|
[2a087f3] | 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 |
---|
[0874502] | 68 | @end example |
---|
| 69 | |
---|
| 70 | ANSI C Section 4.6 --- Non-Local Jumps |
---|
| 71 | |
---|
| 72 | @example |
---|
[2a087f3] | 73 | setjmp(), Function, Implemented |
---|
| 74 | longjmp(), Function, Implemented |
---|
[0874502] | 75 | @end example |
---|
| 76 | |
---|
| 77 | ANSI C Section 4.9 --- Input/Output |
---|
| 78 | |
---|
| 79 | @example |
---|
[6984a19] | 80 | FILE, Type, Implemented |
---|
[2a087f3] | 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 |
---|
[0874502] | 115 | @end example |
---|
| 116 | |
---|
[c78be42] | 117 | NOTE: @code{rename} is also included in another section. @ref{Rename a File}. |
---|
| 118 | |
---|
[0874502] | 119 | ANSI C Section 4.10 --- General Utilities |
---|
| 120 | |
---|
| 121 | @example |
---|
[2a087f3] | 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 |
---|
[0874502] | 136 | @end example |
---|
| 137 | |
---|
[c78be42] | 138 | NOTE: @code{getenv} is also included in another section. |
---|
| 139 | @ref{Environment Access}. |
---|
| 140 | |
---|
[0874502] | 141 | ANSI C Section 4.11 --- String Handling |
---|
| 142 | |
---|
| 143 | @example |
---|
[2a087f3] | 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 |
---|
[0874502] | 158 | @end example |
---|
| 159 | |
---|
| 160 | ANSI C Section 4.12 --- Date and Time Handling |
---|
| 161 | |
---|
| 162 | @example |
---|
[2a087f3] | 163 | asctime(), Function, Implemented |
---|
| 164 | ctime(), Function, Implemented |
---|
| 165 | gmtime(), Function, Implemented |
---|
| 166 | localtime(), Function, Implemented |
---|
| 167 | mktime(), Function, Implemented |
---|
| 168 | strftime(), Function, Implemented |
---|
[0874502] | 169 | @end example |
---|
| 170 | |
---|
[2a087f3] | 171 | NOTE: RTEMS has no notion of time zones. |
---|
| 172 | |
---|
[c78be42] | 173 | NOTE: @code{time} is also included in another section. |
---|
| 174 | @ref{Get System Time}. |
---|
| 175 | |
---|
[7331714] | 176 | From Surrounding Text |
---|
| 177 | |
---|
| 178 | @example |
---|
[180ca02] | 179 | EXIT_SUCCESS, Constant, Implemented |
---|
| 180 | EXIT_FAILURE, Constant, Implemented |
---|
[7331714] | 181 | @end example |
---|
| 182 | |
---|
| 183 | |
---|
[2d19ed6c] | 184 | @subsection Extensions to Time Functions |
---|
[0874502] | 185 | |
---|
[5ed1beb5] | 186 | @subsection Extensions to setlocale Function |
---|
[0874502] | 187 | |
---|
[7331714] | 188 | @example |
---|
[180ca02] | 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 |
---|
[7331714] | 195 | @end example |
---|
| 196 | |
---|
[2d19ed6c] | 197 | @section C Language Input/Output Functions |
---|
[0874502] | 198 | |
---|
[2d19ed6c] | 199 | @subsection Map a Stream Pointer to a File Descriptor |
---|
[0874502] | 200 | |
---|
| 201 | @example |
---|
[2a087f3] | 202 | fileno(), Function, Implemented |
---|
[180ca02] | 203 | STDIN_FILENO, Constant, Implemented |
---|
| 204 | STDOUT_FILENO, Constant, Implemented |
---|
[bda1a73] | 205 | STDERR_FILENO, Constant, Implemented |
---|
[0874502] | 206 | @end example |
---|
| 207 | |
---|
[2d19ed6c] | 208 | @subsection Open a Stream on a File Descriptor |
---|
[0874502] | 209 | |
---|
| 210 | @example |
---|
[2a087f3] | 211 | fdopen(), Function, Implemented |
---|
[0874502] | 212 | @end example |
---|
| 213 | |
---|
[2d19ed6c] | 214 | @subsection Interactions of Other FILE-Type C Functions |
---|
[0874502] | 215 | |
---|
[5ed1beb5] | 216 | @subsection Operations on Files - the remove Function |
---|
[0874502] | 217 | |
---|
[5ed1beb5] | 218 | @subsection Temporary File Name - the tmpnam Function |
---|
[0874502] | 219 | |
---|
[2d19ed6c] | 220 | @subsection Stdio Locking Functions |
---|
[0874502] | 221 | |
---|
| 222 | @example |
---|
[2a087f3] | 223 | flockfile(), Function, Unimplemented |
---|
| 224 | ftrylockfile(), Function, Unimplemented |
---|
| 225 | funlockfile(), Function, Unimplemented |
---|
[0874502] | 226 | @end example |
---|
| 227 | |
---|
[2d19ed6c] | 228 | @subsection Stdio With Explicit Client Locking |
---|
[0874502] | 229 | |
---|
| 230 | @example |
---|
[2a087f3] | 231 | getc_unlocked(), Function, Unimplemented |
---|
| 232 | getchar_unlocked(), Function, Unimplemented |
---|
| 233 | putc_unlocked(), Function, Unimplemented |
---|
| 234 | putchar_unlocked(), Function, Unimplemented |
---|
[0874502] | 235 | @end example |
---|
| 236 | |
---|
[2d19ed6c] | 237 | @section Other C Language Functions |
---|
[0874502] | 238 | |
---|
[2d19ed6c] | 239 | @subsection Nonlocal Jumps |
---|
[0874502] | 240 | |
---|
| 241 | @example |
---|
[6984a19] | 242 | sigjmp_buf, Type, Unimplemented |
---|
[2a087f3] | 243 | sigsetjmp(), Function, Unimplemented |
---|
| 244 | siglongjmp(), Function, Unimplemented |
---|
[0874502] | 245 | @end example |
---|
| 246 | |
---|
[2d19ed6c] | 247 | @subsection Set Time Zone |
---|
[0874502] | 248 | |
---|
| 249 | @example |
---|
[2a087f3] | 250 | tzset(), Function, Unimplemented |
---|
[0874502] | 251 | @end example |
---|
| 252 | |
---|
[2d19ed6c] | 253 | @subsection Find String Token |
---|
[0874502] | 254 | |
---|
| 255 | @example |
---|
[2a087f3] | 256 | strtok_r(), Function, Implemented |
---|
[0874502] | 257 | @end example |
---|
| 258 | |
---|
[2d19ed6c] | 259 | @subsection ASCII Time Representation |
---|
[0874502] | 260 | |
---|
| 261 | @example |
---|
[2a087f3] | 262 | asctime_r(), Function, Implemented |
---|
[0874502] | 263 | @end example |
---|
| 264 | |
---|
[2d19ed6c] | 265 | @subsection Current Time Representation |
---|
[0874502] | 266 | |
---|
| 267 | @example |
---|
[2a087f3] | 268 | ctime_r(), Function, Implemented |
---|
[0874502] | 269 | @end example |
---|
| 270 | |
---|
[2d19ed6c] | 271 | @subsection Coordinated Universal Time |
---|
[0874502] | 272 | |
---|
| 273 | @example |
---|
[2a087f3] | 274 | gmtime_r(), Function, Implemented |
---|
[0874502] | 275 | @end example |
---|
| 276 | |
---|
[2d19ed6c] | 277 | @subsection Local Time |
---|
[0874502] | 278 | |
---|
| 279 | @example |
---|
[2a087f3] | 280 | localtime_r(), Function, Implemented |
---|
[0874502] | 281 | @end example |
---|
| 282 | |
---|
[2d19ed6c] | 283 | @subsection Pseudo-Random Sequence Generation Functions |
---|
| 284 | |
---|
[0874502] | 285 | @example |
---|
[2a087f3] | 286 | rand_r(), Function, Implemented |
---|
[0874502] | 287 | @end example |
---|
| 288 | |
---|