View Issue Details

IDProjectCategoryView StatusLast Update
00011241003.1(2008)/Issue 7System Interfacespublic2018-08-16 15:49
Reporterdannyniu Assigned Toajosey  
PrioritynormalSeverityEditorialTypeEnhancement Request
Status ClosedResolutionRejected 
NameDannyNiu/NJF
Organization
User Reference
SectionSystem Interfaces - write()
Page NumberInformative section
Line NumberRationales
Interp Status---
Final Accepted Text
Summary0001124: Mention different IO semantics of pipe and FIFO.
DescriptionIn the rationale section for the write() function, we've taken note of the fact that, some systems allows a write of length zero to indicate end-of-file to the other end of a pipe.

In my opinion, this feature is the by-product of some systems using the message-nondiscard IO semantics for pipe, such as 8th edition we've noted in the text. And I think it's reasonable, that we further note such semantics, by mentioning on such systems, read() from a pipe, will return the content of at most one write() call.
Desired ActionAdd to after the text:

Also, some existing systems ... permit a write of zero bytes ... indicates a successful write of an end-of-file indication.

The following:

On such systems, a read() from a pipe or a FIFO, may return at most the content of one write() call. Applications should not assume the system would provide either semantics unless otherwise configured through implementation-defined method.
TagsNo tags attached.

Activities

Don Cragun

2018-08-16 15:48

manager   bugnote:0004083

This behavior was provided by UNIX Version 8 for pipes only and is a documented feature of STREAMS devices running in message nondiscard mode. STREAMS processing in POSIX has been made obsolescent and is expected to be removed from a future version of the standard. Therefore, this change request is rejected.

Issue History

Date Modified Username Field Change
2017-03-05 02:46 dannyniu New Issue
2017-03-05 02:46 dannyniu Status New => Under Review
2017-03-05 02:46 dannyniu Assigned To => ajosey
2017-03-05 02:46 dannyniu Name => DannyNiu/NJF
2017-03-05 02:46 dannyniu Section => System Interfaces - write()
2017-03-05 02:46 dannyniu Page Number => Informative section
2017-03-05 02:46 dannyniu Line Number => Rationales
2017-03-05 06:10 dannyniu Desired Action Updated
2018-08-16 15:48 Don Cragun Note Added: 0004083
2018-08-16 15:49 Don Cragun Interp Status => ---
2018-08-16 15:49 Don Cragun Status Under Review => Closed
2018-08-16 15:49 Don Cragun Resolution Open => Rejected