Viewing Issue Simple Details
[ Jump to Notes ]
|
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Type |
Date Submitted |
Last Update |
0001371 |
[1003.1(2016/18)/Issue7+TC2] Base Definitions and Headers |
Objection |
Clarification Requested |
2020-07-10 14:29 |
2024-06-11 09:08 |
|
Reporter |
geoffclare |
View Status |
public |
|
Assigned To |
|
Priority |
normal |
Resolution |
Accepted |
|
Status |
Closed |
|
|
|
|
Name |
Geoff Clare |
Organization |
The Open Group |
User Reference |
|
Section |
3.370 Stream |
Page Number |
93 |
Line Number |
2583 |
Interp Status |
--- |
Final Accepted Text |
|
|
Summary |
0001371: Definition of stream is XSH-specific |
Description |
The definition of the term "stream" says it is a "file access object [...] as described by the ISO C standard" and says these objects can be created using fdopen(), etc.
This is XSH-specific, but the term needs to apply to XCU as well. In particular, the current definitions of "standard error", "standard input" and "standard output" are the ones from POSIX.2-1992 and they use the word "stream". In that standard, the definition of "stream" was:An ordered sequence of characters, as described by the C Standard which, although it also refers to the C Standard, does not associate "stream" with a file access object.
The definition also says streams are "associated with a file descriptor", but this is not true for streams opened with fmemopen() or open_memstream().
|
Desired Action |
Change:Appearing in lowercase, a stream is a file access object that allows access to an ordered sequence of characters, as described by the ISO C standard. Such objects can be created by the fdopen(), fmemopen(), fopen(), open_memstream(), or popen() functions, and are associated with a file descriptor. to:Appearing in lowercase, a stream is an ordered sequence of bytes, as described by the ISO C standard.
In the shell command language, each stream is associated with a file descriptor. These can be opened using redirection operators.
<small>Note:Redirection is defined in detail in [xref to XCU 2.7].</small> In the C language, each stream is accessed via a file access object and is either a stream associated with a file descriptor or a memory stream. A file access object associated with a file descriptor can be created by the fdopen(), fopen(), or popen() functions. A file access object for a memory stream can be created by the fmemopen() or open_memstream() functions. |
Tags |
tc3-2008 |
|
Attached Files |
|
|