Fixes for cfget[io]speed

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Tue Jan 11 09:36:00 GMT 2011


I discovered some compliance issues with cfget[io]speed:

* POSIX requires these to be declared (at least) as functions[1];
* POSIX requires their argument to be const[1];
* the macros are not safe for C++ code.

The following patch fixes these issues, providing that constifying the
arguments doesn't change the ABI.


Yaakov

[1]
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix-cfgetospeed.patch
Type: text/x-patch
Size: 1945 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110111/d5e07fa6/attachment.bin>


More information about the Cygwin-patches mailing list