View Issue Details

IDProjectCategoryView StatusLast Update
00013711003.1(2016/18)/Issue7+TC2Base Definitions and Headerspublic2024-06-11 09:08
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeClarification Requested
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Section3.370 Stream
Page Number93
Line Number2583
Interp Status---
Final Accepted Text
Summary0001371: Definition of stream is XSH-specific
DescriptionThe 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 ActionChange:
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.
Tagstc3-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-07-10 14:29 geoffclare New Issue
2020-07-10 14:29 geoffclare Name => Geoff Clare
2020-07-10 14:29 geoffclare Organization => The Open Group
2020-07-10 14:29 geoffclare Section => 3.370 Stream
2020-07-10 14:29 geoffclare Page Number => 93
2020-07-10 14:29 geoffclare Line Number => 2583
2020-07-10 14:29 geoffclare Interp Status => ---
2020-12-14 16:51 Don Cragun Status New => Resolved
2020-12-14 16:51 Don Cragun Resolution Open => Accepted
2020-12-14 16:54 geoffclare Desired Action Updated
2020-12-14 16:59 Don Cragun Tag Attached: tc3-2008
2020-12-18 09:16 geoffclare Status Resolved => Applied
2024-06-11 09:08 agadmin Status Applied => Closed