Download RTEMS POSIX API User's Guide

Transcript
v
6.4.9 tcflush - Discards terminal data . . . . . . . . . . . . . . . .
6.4.10 tcflow - Suspends/restarts terminal output. . . . .
6.4.11 tcgetpgrp - Gets foreground process group ID . .
6.4.12 tcsetpgrp - Sets foreground process group ID . .
7
134
135
136
137
Language-Specific Services for the C
Programming Language Manager . . . . . . . . 139
7.1
7.2
7.3
7.4
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Background. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
7.4.1 setlocale - Set the Current Locale . . . . . . . . . . . . . . 141
7.4.2 fileno - Obtain File Descriptor Number for this File
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
7.4.3 fdopen - Associate Stream with File Descriptor . . 143
7.4.4 flockfile - Acquire Ownership of File Stream . . . . 144
7.4.5 ftrylockfile - Poll to Acquire Ownership of File
Stream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
7.4.6 funlockfile - Release Ownership of File Stream . . 146
7.4.7 getc unlocked - Get Character without Locking . . 147
7.4.8 getchar unlocked - Get Character from stdin without
Locking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
7.4.9 putc unlocked - Put Character without Locking
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
7.4.10 putchar unlocked - Put Character to stdin without
Locking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
7.4.11 setjmp - Save Context for Non-Local Goto . . . . . 151
7.4.12 longjmp - Non-Local Jump to a Saved Context
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
7.4.13 sigsetjmp - Save Context with Signal Status for
Non-Local Goto . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
7.4.14 siglongjmp - Non-Local Jump with Signal Status to
a Saved Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
7.4.15 tzset - Initialize Time Conversion Information . . 155
7.4.16 strtok r - Reentrant Extract Token from String
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
7.4.17 asctime r - Reentrant struct tm to ASCII Time
Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
7.4.18 ctime r - Reentrant time t to ASCII Time
Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
7.4.19 gmtime r - Reentrant UTC Time Conversion . . 159
7.4.20 localtime r - Reentrant Local Time Conversion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
7.4.21 rand r - Reentrant Random Number Generation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161