A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1493 ====================================================================== Reported By: geoffclare Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1493 Category: Shell and Utilities Type: Enhancement Request Severity: Comment Priority: normal Status: New Name: Geoff Clare Organization: The Open Group User Reference: Section: 2.7 Page Number: 2360 Line Number: 75306 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2021-07-29 14:33 UTC Last Modified: 2021-07-30 15:05 UTC ====================================================================== Summary: move XCU 2.7 definition of "file descriptor" into XBD 3 ======================================================================
---------------------------------------------------------------------- (0005426) kre (reporter) - 2021-07-30 15:05 https://austingroupbugs.net/view.php?id=1493#c5426 ---------------------------------------------------------------------- Re https://austingroupbugs.net/view.php?id=1493#c5424 -- yes, of course, there's no way to get rid of the 0 from fileno(stdin), so the close() in freopen() always does close(0) so the open the succeeds it will always return 0. Still not sure it is worth the notes though, if anything more complex than to note that there's no guarantee that fileno(stdXX) is the sand as standard XXput (or err). Saying what values they must have will just lead to people (as I did) trying to demonstrate that it isn't necessarily correct. Issue History Date Modified Username Field Change ====================================================================== 2021-07-29 14:33 geoffclare New Issue 2021-07-29 14:33 geoffclare Name => Geoff Clare 2021-07-29 14:33 geoffclare Organization => The Open Group 2021-07-29 14:33 geoffclare Section => 2.7 2021-07-29 14:33 geoffclare Page Number => 2360 2021-07-29 14:33 geoffclare Line Number => 75306 2021-07-29 14:33 geoffclare Interp Status => --- 2021-07-29 16:49 kre Note Added: 0005422 2021-07-30 08:53 geoffclare Note Added: 0005424 2021-07-30 15:05 kre Note Added: 0005426 ======================================================================