Austin Group Defect Tracker

Aardvark Mark IV


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 2020-12-18 09:16
Reporter geoffclare View Status public  
Assigned To
Priority normal Resolution Accepted  
Status Applied  
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

- Relationships

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker