A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1151 ====================================================================== Reported By: Clausecker Assigned To: ====================================================================== Project: 1003.1(2016)/Issue7+TC2 Issue ID: 1151 Category: System Interfaces Type: Enhancement Request Severity: Editorial Priority: normal Status: New Name: Robert Clausecker Organization: Fraunhofer Fokus User Reference: Section: termios.h, signal.h, 2.4.3 "Signal Actions", 11.2 "Parameters that Can be Set", new sections tcgetsize and tcsetsize Page Number: 414, 333, 494, 212 Line Number: 13877, 11115, 16845–16879, 7040 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2017-06-19 16:41 UTC Last Modified: 2017-06-22 10:36 UTC ====================================================================== Summary: Introduce new signal SIGWINCH and functions tcsetsize(), tcgetsize() to get/set terminal window size ======================================================================
---------------------------------------------------------------------- (0003797) shware_systems (reporter) - 2017-06-22 10:36 http://austingroupbugs.net/view.php?id=1151#c3797 ---------------------------------------------------------------------- Renaming it is required by XSH 2.2.2 Namespaces, afaik, whatever problems ensue. Last it was discussed new identifiers to be standardized were being drawn from the namespace reserved to implementations by the C standard since C89 or with prefixes / suffixes reserved by POSIX and C to implementations, for additions to any of the standard libraries. That those platforms used a file-scope-visible identifier reserved to applications with winsize is therefore their lookout, not the standard's, and this is not an exception from before Issue 1 or C89 that I see. Whether the interfaces should be posix_get/setsize() or posix_tcget/setsize() is open to debate, perhaps. As proposed what's there is usable if controlled by a visibility macro, to maintain backwards compatibility, but I forgot to add that part to the note. As apparently no platform is using winsize_t, using longs has no known backwards compatibility considerations for this functionality. Imo bug reports should have been filed over a decade ago with those platforms to obsolete the interfaces where the structure members are shorts, as being short sighted, for collateral issues. I agree use of an opaque type is plausible, but this has the overhead of adding min and max constant specifications too and still obsoletes that structure. ENOTSUP being returned is a case where the signal would not be generated because no attempt to access the device is being performed. This would be different from a device accepting a set command that has only one valid value, but may have side effects such as doing a form feed or clear screen, so the signal should be generated. This would return EINVAL if another value was passed in, I'd expect. Issue History Date Modified Username Field Change ====================================================================== 2017-06-19 16:41 Clausecker New Issue 2017-06-19 16:41 Clausecker File Added: sigwinch-proposal.txt 2017-06-19 16:41 Clausecker Name => Robert Clausecker 2017-06-19 16:41 Clausecker Organization => Fraunhofer Fokus 2017-06-19 16:41 Clausecker Section => termios.h, signal.h, 2.4.3 "Signal Actions", 11.2 "Parameters that Can be Set", new sections tcgetsize and tcsetsize 2017-06-19 16:41 Clausecker Page Number => 414, 333, 494, 212 2017-06-19 16:41 Clausecker Line Number => 13877, 11115, 16845–16879, 7040 2017-06-19 17:32 shware_systems Note Added: 0003786 2017-06-19 17:33 shware_systems Note Edited: 0003786 2017-06-19 18:06 EdSchouten Note Added: 0003787 2017-06-19 18:11 shware_systems Note Added: 0003788 2017-06-19 18:43 Clausecker Note Added: 0003789 2017-06-20 09:22 geoffclare Note Added: 0003791 2017-06-22 10:36 shware_systems Note Added: 0003797 ======================================================================