Unix and Linux Discussions Tagged with stream |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
2,442 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
682 |
Software Releases - RSS News |
|
|
|
0 |
5,639 |
IT Security RSS |
|
|
|
5 |
10,775 |
Shell Programming and Scripting |
|
|
|
0 |
1,552 |
Complex Event Processing RSS News |
|
|
|
0 |
650 |
Software Releases - RSS News |
|
|
|
0 |
1,344 |
UNIX and Linux RSS News |
|
|
|
3 |
1,974 |
Solaris |
|
|
|
0 |
2,217 |
Complex Event Processing RSS News |
|
|
|
5 |
1,706 |
Shell Programming and Scripting |
|
|
|
0 |
1,869 |
Complex Event Processing RSS News |
|
|
|
4 |
5,341 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,925 |
Programming |
|
|
|
9 |
22,330 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,346 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,049 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
3,787 |
Programming |
|
|
|
1 |
2,078 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,433 |
UNIX for Dummies Questions & Answers |
orientation(5) File Formats Manual orientation(5)
NAME
orientation - the orientation of a stream
DESCRIPTION
The orientation of a stream is a property of a object that is handled as a input/output stream. It is useful when the input/output model
assumes that characters are handled as wide-characters within an application and stored as multi-byte characters in files, and that all the
wide-character input/output functions begin executing with the stream positioned at the boundary between two multi-byte characters.
After a stream is associated with a file, but before any operations are performed on the stream, the stream is without orientation. If a
wide-character input or output function is applied to a stream without orientation, the stream becomes wide-oriented implicitly. Likewise,
if a byte input or output operation is applied to a stream without orientation, the stream becomes byte-oriented implicitly. Only the
function can alter the orientation of a stream explicitly when the stream is without orientation.
Just after a stream is associated with a pipe by the function, the stream is byte-oriented.
After the stream becomes byte-oriented or wide-oriented, the orientation of a stream will be fixed and can not be changed until the stream
is closed.
The following functions are wide-character input/output functions.
The following functions are byte input/output functions.
EXAMPLES
To read characters from a stream when the orientation of the stream is unknown :
WARNINGS
If byte input/output functions are applied to a wide-oriented stream or wide-character input/output functions are applied to a byte-ori-
ented stream, the behavior is undefined.
AUTHOR
The functionality of the orientation of a stream was developed by HP and Mitsubishi Electric Corporation.
SEE ALSO
fgetws(3C), fopen(3S), fread(3S), fwide(3C), fwprintf(3C), fwscanf(3C), getc(3S), gets(3S), getwc(3C), popen(3S), printf(3S), putc(3S),
puts(3S), putwc(3C), putws(3C), scanf(3S), ungetc(3S), ungetwc(3C).
orientation(5)