1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-1999. |
---|
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 Manager |
---|
10 | |
---|
11 | @section Introduction |
---|
12 | |
---|
13 | The |
---|
14 | language-specific services for the C programming language manager is ... |
---|
15 | |
---|
16 | The directives provided by the language-specific services for the C programming language manager are: |
---|
17 | |
---|
18 | @itemize @bullet |
---|
19 | @item @code{setlocale} - Set the Current Locale |
---|
20 | @item @code{fileno} - Obtain File Descriptor Number for this File |
---|
21 | @item @code{fdopen} - Associate Stream with File Descriptor |
---|
22 | @item @code{flockfile} - Acquire Ownership of File Stream |
---|
23 | @item @code{ftrylockfile} - Poll to Acquire Ownership of File Stream |
---|
24 | @item @code{funlockfile} - Release Ownership of File Stream |
---|
25 | @item @code{getc_unlocked} - Get Character without Locking |
---|
26 | @item @code{getchar_unlocked} - Get Character from stdin without Locking |
---|
27 | @item @code{putc_unlocked} - Put Character without Locking |
---|
28 | @item @code{putchar_unlocked} - Put Character to stdin without Locking |
---|
29 | @item @code{setjmp} - Save Context for Non-Local Goto |
---|
30 | @item @code{longjmp} - Non-Local Jump to a Saved Context |
---|
31 | @item @code{sigsetjmp} - Save Context with Signal Status for Non-Local Goto |
---|
32 | @item @code{siglongjmp} - Non-Local Jump with Signal Status to a Saved Context |
---|
33 | @item @code{tzset} - Initialize Time Conversion Information |
---|
34 | @item @code{strtok_r} - Reentrant Extract Token from String |
---|
35 | @item @code{asctime_r} - Reentrant struct tm to ASCII Time Conversion |
---|
36 | @item @code{ctime_r} - Reentrant time_t to ASCII Time Conversion |
---|
37 | @item @code{gmtime_r} - Reentrant UTC Time Conversion |
---|
38 | @item @code{localtime_r} - Reentrant Local Time Conversion |
---|
39 | @item @code{rand_r} - Reentrant Random Number Generation |
---|
40 | @end itemize |
---|
41 | |
---|
42 | @section Background |
---|
43 | |
---|
44 | There is currently no text in this section. |
---|
45 | |
---|
46 | @section Operations |
---|
47 | |
---|
48 | There is currently no text in this section. |
---|
49 | |
---|
50 | @section Directives |
---|
51 | |
---|
52 | This section details the language-specific services for the C programming language manager's directives. |
---|
53 | A subsection is dedicated to each of this manager's directives |
---|
54 | and describes the calling sequence, related constants, usage, |
---|
55 | and status codes. |
---|
56 | |
---|
57 | @c |
---|
58 | @c |
---|
59 | @c |
---|
60 | @page |
---|
61 | @subsection setlocale - Set the Current Locale |
---|
62 | |
---|
63 | @findex setlocale |
---|
64 | @cindex set the current locale |
---|
65 | |
---|
66 | @subheading CALLING SEQUENCE: |
---|
67 | |
---|
68 | @ifset is-C |
---|
69 | @example |
---|
70 | int setlocale( |
---|
71 | ); |
---|
72 | @end example |
---|
73 | @end ifset |
---|
74 | |
---|
75 | @ifset is-Ada |
---|
76 | @end ifset |
---|
77 | |
---|
78 | @subheading STATUS CODES: |
---|
79 | |
---|
80 | @table @b |
---|
81 | @item E |
---|
82 | The |
---|
83 | |
---|
84 | @end table |
---|
85 | |
---|
86 | @subheading DESCRIPTION: |
---|
87 | |
---|
88 | @subheading NOTES: |
---|
89 | |
---|
90 | @c |
---|
91 | @c |
---|
92 | @c |
---|
93 | @page |
---|
94 | @subsection fileno - Obtain File Descriptor Number for this File |
---|
95 | |
---|
96 | @findex fileno |
---|
97 | @cindex obtain file descriptor number for this file |
---|
98 | |
---|
99 | @subheading CALLING SEQUENCE: |
---|
100 | |
---|
101 | @ifset is-C |
---|
102 | @example |
---|
103 | int fileno( |
---|
104 | ); |
---|
105 | @end example |
---|
106 | @end ifset |
---|
107 | |
---|
108 | @ifset is-Ada |
---|
109 | @end ifset |
---|
110 | |
---|
111 | @subheading STATUS CODES: |
---|
112 | |
---|
113 | @table @b |
---|
114 | @item E |
---|
115 | The |
---|
116 | |
---|
117 | @end table |
---|
118 | |
---|
119 | @subheading DESCRIPTION: |
---|
120 | |
---|
121 | @subheading NOTES: |
---|
122 | |
---|
123 | @c |
---|
124 | @c |
---|
125 | @c |
---|
126 | @page |
---|
127 | @subsection fdopen - Associate Stream with File Descriptor |
---|
128 | |
---|
129 | @findex fdopen |
---|
130 | @cindex associate stream with file descriptor |
---|
131 | |
---|
132 | @subheading CALLING SEQUENCE: |
---|
133 | |
---|
134 | @ifset is-C |
---|
135 | @example |
---|
136 | int fdopen( |
---|
137 | ); |
---|
138 | @end example |
---|
139 | @end ifset |
---|
140 | |
---|
141 | @ifset is-Ada |
---|
142 | @end ifset |
---|
143 | |
---|
144 | @subheading STATUS CODES: |
---|
145 | |
---|
146 | @table @b |
---|
147 | @item E |
---|
148 | The |
---|
149 | |
---|
150 | @end table |
---|
151 | |
---|
152 | @subheading DESCRIPTION: |
---|
153 | |
---|
154 | @subheading NOTES: |
---|
155 | |
---|
156 | @c |
---|
157 | @c |
---|
158 | @c |
---|
159 | @page |
---|
160 | @subsection flockfile - Acquire Ownership of File Stream |
---|
161 | |
---|
162 | @findex flockfile |
---|
163 | @cindex acquire ownership of file stream |
---|
164 | |
---|
165 | @subheading CALLING SEQUENCE: |
---|
166 | |
---|
167 | @ifset is-C |
---|
168 | @example |
---|
169 | int flockfile( |
---|
170 | ); |
---|
171 | @end example |
---|
172 | @end ifset |
---|
173 | |
---|
174 | @ifset is-Ada |
---|
175 | @end ifset |
---|
176 | |
---|
177 | @subheading STATUS CODES: |
---|
178 | |
---|
179 | @table @b |
---|
180 | @item E |
---|
181 | The |
---|
182 | |
---|
183 | @end table |
---|
184 | |
---|
185 | @subheading DESCRIPTION: |
---|
186 | |
---|
187 | @subheading NOTES: |
---|
188 | |
---|
189 | @c |
---|
190 | @c |
---|
191 | @c |
---|
192 | @page |
---|
193 | @subsection ftrylockfile - Poll to Acquire Ownership of File Stream |
---|
194 | |
---|
195 | @findex ftrylockfile |
---|
196 | @cindex poll to acquire ownership of file stream |
---|
197 | |
---|
198 | @subheading CALLING SEQUENCE: |
---|
199 | |
---|
200 | @ifset is-C |
---|
201 | @example |
---|
202 | int ftrylockfile( |
---|
203 | ); |
---|
204 | @end example |
---|
205 | @end ifset |
---|
206 | |
---|
207 | @ifset is-Ada |
---|
208 | @end ifset |
---|
209 | |
---|
210 | @subheading STATUS CODES: |
---|
211 | |
---|
212 | @table @b |
---|
213 | @item E |
---|
214 | The |
---|
215 | |
---|
216 | @end table |
---|
217 | |
---|
218 | @subheading DESCRIPTION: |
---|
219 | |
---|
220 | @subheading NOTES: |
---|
221 | |
---|
222 | @c |
---|
223 | @c |
---|
224 | @c |
---|
225 | @page |
---|
226 | @subsection funlockfile - Release Ownership of File Stream |
---|
227 | |
---|
228 | @findex funlockfile |
---|
229 | @cindex release ownership of file stream |
---|
230 | |
---|
231 | @subheading CALLING SEQUENCE: |
---|
232 | |
---|
233 | @ifset is-C |
---|
234 | @example |
---|
235 | int funlockfile( |
---|
236 | ); |
---|
237 | @end example |
---|
238 | @end ifset |
---|
239 | |
---|
240 | @ifset is-Ada |
---|
241 | @end ifset |
---|
242 | |
---|
243 | @subheading STATUS CODES: |
---|
244 | |
---|
245 | @table @b |
---|
246 | @item E |
---|
247 | The |
---|
248 | |
---|
249 | @end table |
---|
250 | |
---|
251 | @subheading DESCRIPTION: |
---|
252 | |
---|
253 | @subheading NOTES: |
---|
254 | |
---|
255 | @c |
---|
256 | @c |
---|
257 | @c |
---|
258 | @page |
---|
259 | @subsection getc_unlocked - Get Character without Locking |
---|
260 | |
---|
261 | @findex getc_unlocked |
---|
262 | @cindex get character without locking |
---|
263 | |
---|
264 | @subheading CALLING SEQUENCE: |
---|
265 | |
---|
266 | @ifset is-C |
---|
267 | @example |
---|
268 | int getc_unlocked( |
---|
269 | ); |
---|
270 | @end example |
---|
271 | @end ifset |
---|
272 | |
---|
273 | @ifset is-Ada |
---|
274 | @end ifset |
---|
275 | |
---|
276 | @subheading STATUS CODES: |
---|
277 | |
---|
278 | @table @b |
---|
279 | @item E |
---|
280 | The |
---|
281 | |
---|
282 | @end table |
---|
283 | |
---|
284 | @subheading DESCRIPTION: |
---|
285 | |
---|
286 | @subheading NOTES: |
---|
287 | |
---|
288 | @c |
---|
289 | @c |
---|
290 | @c |
---|
291 | @page |
---|
292 | @subsection getchar_unlocked - Get Character from stdin without Locking |
---|
293 | |
---|
294 | @findex getchar_unlocked |
---|
295 | @cindex get character from stdin without locking |
---|
296 | |
---|
297 | @subheading CALLING SEQUENCE: |
---|
298 | |
---|
299 | @ifset is-C |
---|
300 | @example |
---|
301 | int getchar_unlocked( |
---|
302 | ); |
---|
303 | @end example |
---|
304 | @end ifset |
---|
305 | |
---|
306 | @ifset is-Ada |
---|
307 | @end ifset |
---|
308 | |
---|
309 | @subheading STATUS CODES: |
---|
310 | |
---|
311 | @table @b |
---|
312 | @item E |
---|
313 | The |
---|
314 | |
---|
315 | @end table |
---|
316 | |
---|
317 | @subheading DESCRIPTION: |
---|
318 | |
---|
319 | @subheading NOTES: |
---|
320 | |
---|
321 | @c |
---|
322 | @c |
---|
323 | @c |
---|
324 | @page |
---|
325 | @subsection putc_unlocked - Put Character without Locking |
---|
326 | |
---|
327 | @findex putc_unlocked |
---|
328 | @cindex put character without locking |
---|
329 | |
---|
330 | @subheading CALLING SEQUENCE: |
---|
331 | |
---|
332 | @ifset is-C |
---|
333 | @example |
---|
334 | int putc_unlocked( |
---|
335 | ); |
---|
336 | @end example |
---|
337 | @end ifset |
---|
338 | |
---|
339 | @ifset is-Ada |
---|
340 | @end ifset |
---|
341 | |
---|
342 | @subheading STATUS CODES: |
---|
343 | |
---|
344 | @table @b |
---|
345 | @item E |
---|
346 | The |
---|
347 | |
---|
348 | @end table |
---|
349 | |
---|
350 | @subheading DESCRIPTION: |
---|
351 | |
---|
352 | @subheading NOTES: |
---|
353 | |
---|
354 | @c |
---|
355 | @c |
---|
356 | @c |
---|
357 | @page |
---|
358 | @subsection putchar_unlocked - Put Character to stdin without Locking |
---|
359 | |
---|
360 | @findex putchar_unlocked |
---|
361 | @cindex put character to stdin without locking |
---|
362 | |
---|
363 | @subheading CALLING SEQUENCE: |
---|
364 | |
---|
365 | @ifset is-C |
---|
366 | @example |
---|
367 | int putchar_unlocked( |
---|
368 | ); |
---|
369 | @end example |
---|
370 | @end ifset |
---|
371 | |
---|
372 | @ifset is-Ada |
---|
373 | @end ifset |
---|
374 | |
---|
375 | @subheading STATUS CODES: |
---|
376 | |
---|
377 | @table @b |
---|
378 | @item E |
---|
379 | The |
---|
380 | |
---|
381 | @end table |
---|
382 | |
---|
383 | @subheading DESCRIPTION: |
---|
384 | |
---|
385 | @subheading NOTES: |
---|
386 | |
---|
387 | @c |
---|
388 | @c |
---|
389 | @c |
---|
390 | @page |
---|
391 | @subsection setjmp - Save Context for Non-Local Goto |
---|
392 | |
---|
393 | @findex setjmp |
---|
394 | @cindex save context for non |
---|
395 | |
---|
396 | @subheading CALLING SEQUENCE: |
---|
397 | |
---|
398 | @ifset is-C |
---|
399 | @example |
---|
400 | int setjmp( |
---|
401 | ); |
---|
402 | @end example |
---|
403 | @end ifset |
---|
404 | |
---|
405 | @ifset is-Ada |
---|
406 | @end ifset |
---|
407 | |
---|
408 | @subheading STATUS CODES: |
---|
409 | |
---|
410 | @table @b |
---|
411 | @item E |
---|
412 | The |
---|
413 | |
---|
414 | @end table |
---|
415 | |
---|
416 | @subheading DESCRIPTION: |
---|
417 | |
---|
418 | @subheading NOTES: |
---|
419 | |
---|
420 | @c |
---|
421 | @c |
---|
422 | @c |
---|
423 | @page |
---|
424 | @subsection longjmp - Non-Local Jump to a Saved Context |
---|
425 | |
---|
426 | @findex longjmp |
---|
427 | @cindex non |
---|
428 | |
---|
429 | @subheading CALLING SEQUENCE: |
---|
430 | |
---|
431 | @ifset is-C |
---|
432 | @example |
---|
433 | int longjmp( |
---|
434 | ); |
---|
435 | @end example |
---|
436 | @end ifset |
---|
437 | |
---|
438 | @ifset is-Ada |
---|
439 | @end ifset |
---|
440 | |
---|
441 | @subheading STATUS CODES: |
---|
442 | |
---|
443 | @table @b |
---|
444 | @item E |
---|
445 | The |
---|
446 | |
---|
447 | @end table |
---|
448 | |
---|
449 | @subheading DESCRIPTION: |
---|
450 | |
---|
451 | @subheading NOTES: |
---|
452 | |
---|
453 | @c |
---|
454 | @c |
---|
455 | @c |
---|
456 | @page |
---|
457 | @subsection sigsetjmp - Save Context with Signal Status for Non-Local Goto |
---|
458 | |
---|
459 | @findex sigsetjmp |
---|
460 | @cindex save context with signal status for non |
---|
461 | |
---|
462 | @subheading CALLING SEQUENCE: |
---|
463 | |
---|
464 | @ifset is-C |
---|
465 | @example |
---|
466 | int sigsetjmp( |
---|
467 | ); |
---|
468 | @end example |
---|
469 | @end ifset |
---|
470 | |
---|
471 | @ifset is-Ada |
---|
472 | @end ifset |
---|
473 | |
---|
474 | @subheading STATUS CODES: |
---|
475 | |
---|
476 | @table @b |
---|
477 | @item E |
---|
478 | The |
---|
479 | |
---|
480 | @end table |
---|
481 | |
---|
482 | @subheading DESCRIPTION: |
---|
483 | |
---|
484 | @subheading NOTES: |
---|
485 | |
---|
486 | @c |
---|
487 | @c |
---|
488 | @c |
---|
489 | @page |
---|
490 | @subsection siglongjmp - Non-Local Jump with Signal Status to a Saved Context |
---|
491 | |
---|
492 | @findex siglongjmp |
---|
493 | @cindex non |
---|
494 | |
---|
495 | @subheading CALLING SEQUENCE: |
---|
496 | |
---|
497 | @ifset is-C |
---|
498 | @example |
---|
499 | int siglongjmp( |
---|
500 | ); |
---|
501 | @end example |
---|
502 | @end ifset |
---|
503 | |
---|
504 | @ifset is-Ada |
---|
505 | @end ifset |
---|
506 | |
---|
507 | @subheading STATUS CODES: |
---|
508 | |
---|
509 | @table @b |
---|
510 | @item E |
---|
511 | The |
---|
512 | |
---|
513 | @end table |
---|
514 | |
---|
515 | @subheading DESCRIPTION: |
---|
516 | |
---|
517 | @subheading NOTES: |
---|
518 | |
---|
519 | @c |
---|
520 | @c |
---|
521 | @c |
---|
522 | @page |
---|
523 | @subsection tzset - Initialize Time Conversion Information |
---|
524 | |
---|
525 | @findex tzset |
---|
526 | @cindex initialize time conversion information |
---|
527 | |
---|
528 | @subheading CALLING SEQUENCE: |
---|
529 | |
---|
530 | @ifset is-C |
---|
531 | @example |
---|
532 | int tzset( |
---|
533 | ); |
---|
534 | @end example |
---|
535 | @end ifset |
---|
536 | |
---|
537 | @ifset is-Ada |
---|
538 | @end ifset |
---|
539 | |
---|
540 | @subheading STATUS CODES: |
---|
541 | |
---|
542 | @table @b |
---|
543 | @item E |
---|
544 | The |
---|
545 | |
---|
546 | @end table |
---|
547 | |
---|
548 | @subheading DESCRIPTION: |
---|
549 | |
---|
550 | @subheading NOTES: |
---|
551 | |
---|
552 | @c |
---|
553 | @c |
---|
554 | @c |
---|
555 | @page |
---|
556 | @subsection strtok_r - Reentrant Extract Token from String |
---|
557 | |
---|
558 | @findex strtok_r |
---|
559 | @cindex reentrant extract token from string |
---|
560 | |
---|
561 | @subheading CALLING SEQUENCE: |
---|
562 | |
---|
563 | @ifset is-C |
---|
564 | @example |
---|
565 | int strtok_r( |
---|
566 | ); |
---|
567 | @end example |
---|
568 | @end ifset |
---|
569 | |
---|
570 | @ifset is-Ada |
---|
571 | @end ifset |
---|
572 | |
---|
573 | @subheading STATUS CODES: |
---|
574 | |
---|
575 | @table @b |
---|
576 | @item E |
---|
577 | The |
---|
578 | |
---|
579 | @end table |
---|
580 | |
---|
581 | @subheading DESCRIPTION: |
---|
582 | |
---|
583 | @subheading NOTES: |
---|
584 | |
---|
585 | @c |
---|
586 | @c |
---|
587 | @c |
---|
588 | @page |
---|
589 | @subsection asctime_r - Reentrant struct tm to ASCII Time Conversion |
---|
590 | |
---|
591 | @findex asctime_r |
---|
592 | @cindex reentrant struct tm to ascii time conversion |
---|
593 | |
---|
594 | @subheading CALLING SEQUENCE: |
---|
595 | |
---|
596 | @ifset is-C |
---|
597 | @example |
---|
598 | int asctime_r( |
---|
599 | ); |
---|
600 | @end example |
---|
601 | @end ifset |
---|
602 | |
---|
603 | @ifset is-Ada |
---|
604 | @end ifset |
---|
605 | |
---|
606 | @subheading STATUS CODES: |
---|
607 | |
---|
608 | @table @b |
---|
609 | @item E |
---|
610 | The |
---|
611 | |
---|
612 | @end table |
---|
613 | |
---|
614 | @subheading DESCRIPTION: |
---|
615 | |
---|
616 | @subheading NOTES: |
---|
617 | |
---|
618 | @c |
---|
619 | @c |
---|
620 | @c |
---|
621 | @page |
---|
622 | @subsection ctime_r - Reentrant time_t to ASCII Time Conversion |
---|
623 | |
---|
624 | @findex ctime_r |
---|
625 | @cindex reentrant time_t to ascii time conversion |
---|
626 | |
---|
627 | @subheading CALLING SEQUENCE: |
---|
628 | |
---|
629 | @ifset is-C |
---|
630 | @example |
---|
631 | int ctime_r( |
---|
632 | ); |
---|
633 | @end example |
---|
634 | @end ifset |
---|
635 | |
---|
636 | @ifset is-Ada |
---|
637 | @end ifset |
---|
638 | |
---|
639 | @subheading STATUS CODES: |
---|
640 | |
---|
641 | @table @b |
---|
642 | @item E |
---|
643 | The |
---|
644 | |
---|
645 | @end table |
---|
646 | |
---|
647 | @subheading DESCRIPTION: |
---|
648 | |
---|
649 | @subheading NOTES: |
---|
650 | |
---|
651 | @c |
---|
652 | @c |
---|
653 | @c |
---|
654 | @page |
---|
655 | @subsection gmtime_r - Reentrant UTC Time Conversion |
---|
656 | |
---|
657 | @findex gmtime_r |
---|
658 | @cindex reentrant utc time conversion |
---|
659 | |
---|
660 | @subheading CALLING SEQUENCE: |
---|
661 | |
---|
662 | @ifset is-C |
---|
663 | @example |
---|
664 | int gmtime_r( |
---|
665 | ); |
---|
666 | @end example |
---|
667 | @end ifset |
---|
668 | |
---|
669 | @ifset is-Ada |
---|
670 | @end ifset |
---|
671 | |
---|
672 | @subheading STATUS CODES: |
---|
673 | |
---|
674 | @table @b |
---|
675 | @item E |
---|
676 | The |
---|
677 | |
---|
678 | @end table |
---|
679 | |
---|
680 | @subheading DESCRIPTION: |
---|
681 | |
---|
682 | @subheading NOTES: |
---|
683 | |
---|
684 | @c |
---|
685 | @c |
---|
686 | @c |
---|
687 | @page |
---|
688 | @subsection localtime_r - Reentrant Local Time Conversion |
---|
689 | |
---|
690 | @findex localtime_r |
---|
691 | @cindex reentrant local time conversion |
---|
692 | |
---|
693 | @subheading CALLING SEQUENCE: |
---|
694 | |
---|
695 | @ifset is-C |
---|
696 | @example |
---|
697 | int localtime_r( |
---|
698 | ); |
---|
699 | @end example |
---|
700 | @end ifset |
---|
701 | |
---|
702 | @ifset is-Ada |
---|
703 | @end ifset |
---|
704 | |
---|
705 | @subheading STATUS CODES: |
---|
706 | |
---|
707 | @table @b |
---|
708 | @item E |
---|
709 | The |
---|
710 | |
---|
711 | @end table |
---|
712 | |
---|
713 | @subheading DESCRIPTION: |
---|
714 | |
---|
715 | @subheading NOTES: |
---|
716 | |
---|
717 | @c |
---|
718 | @c |
---|
719 | @c |
---|
720 | @page |
---|
721 | @subsection rand_r - Reentrant Random Number Generation |
---|
722 | |
---|
723 | @findex rand_r |
---|
724 | @cindex reentrant random number generation |
---|
725 | |
---|
726 | @subheading CALLING SEQUENCE: |
---|
727 | |
---|
728 | @ifset is-C |
---|
729 | @example |
---|
730 | int rand_r( |
---|
731 | ); |
---|
732 | @end example |
---|
733 | @end ifset |
---|
734 | |
---|
735 | @ifset is-Ada |
---|
736 | @end ifset |
---|
737 | |
---|
738 | @subheading STATUS CODES: |
---|
739 | |
---|
740 | @table @b |
---|
741 | @item E |
---|
742 | The |
---|
743 | |
---|
744 | @end table |
---|
745 | |
---|
746 | @subheading DESCRIPTION: |
---|
747 | |
---|
748 | @subheading NOTES: |
---|
749 | |
---|