* termios.cc (cfsetspeed): New function.
* cygwin.din (cfsetspeed): Export. * posix.sgml (std-bsd): Add cfsetspeed. * include/sys/termios.h (cfsetspeed): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
This commit is contained in:
		| @@ -1,3 +1,11 @@ | |||||||
|  | 2012-11-21  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net> | ||||||
|  |  | ||||||
|  | 	* termios.cc (cfsetspeed): New function. | ||||||
|  | 	* cygwin.din (cfsetspeed): Export. | ||||||
|  | 	* posix.sgml (std-bsd): Add cfsetspeed. | ||||||
|  | 	* include/sys/termios.h (cfsetspeed): Declare. | ||||||
|  | 	* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. | ||||||
|  |  | ||||||
| 2012-11-16  Corinna Vinschen  <corinna@vinschen.de> | 2012-11-16  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* include/mntent.h: Only include paths.h when building for Cygwin. | 	* include/mntent.h: Only include paths.h when building for Cygwin. | ||||||
|   | |||||||
| @@ -208,6 +208,7 @@ cfgetospeed NOSIGFE | |||||||
| cfmakeraw NOSIGFE | cfmakeraw NOSIGFE | ||||||
| cfsetispeed SIGFE | cfsetispeed SIGFE | ||||||
| cfsetospeed SIGFE | cfsetospeed SIGFE | ||||||
|  | cfsetspeed SIGFE | ||||||
| chdir SIGFE | chdir SIGFE | ||||||
| _chdir = chdir SIGFE | _chdir = chdir SIGFE | ||||||
| chmod SIGFE | chmod SIGFE | ||||||
|   | |||||||
| @@ -431,12 +431,13 @@ details. */ | |||||||
|       260: Export scandirat. |       260: Export scandirat. | ||||||
|       261: Export memrchr. |       261: Export memrchr. | ||||||
|       262: Export getmntent_r. |       262: Export getmntent_r. | ||||||
|  |       263: Export cfsetspeed. | ||||||
|      */ |      */ | ||||||
|  |  | ||||||
|      /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ |      /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ | ||||||
|  |  | ||||||
| #define CYGWIN_VERSION_API_MAJOR 0 | #define CYGWIN_VERSION_API_MAJOR 0 | ||||||
| #define CYGWIN_VERSION_API_MINOR 262 | #define CYGWIN_VERSION_API_MINOR 263 | ||||||
|  |  | ||||||
|      /* There is also a compatibity version number associated with the |      /* There is also a compatibity version number associated with the | ||||||
| 	shared memory regions.  It is incremented when incompatible | 	shared memory regions.  It is incremented when incompatible | ||||||
|   | |||||||
| @@ -345,6 +345,7 @@ speed_t cfgetispeed(const struct termios *); | |||||||
| speed_t cfgetospeed(const struct termios *); | speed_t cfgetospeed(const struct termios *); | ||||||
| int cfsetispeed (struct termios *, speed_t); | int cfsetispeed (struct termios *, speed_t); | ||||||
| int cfsetospeed (struct termios *, speed_t); | int cfsetospeed (struct termios *, speed_t); | ||||||
|  | int cfsetspeed (struct termios *, speed_t); | ||||||
|  |  | ||||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||||
| } | } | ||||||
|   | |||||||
| @@ -957,6 +957,7 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008).</para> | |||||||
|     bindresvport |     bindresvport | ||||||
|     bindresvport_sa |     bindresvport_sa | ||||||
|     cfmakeraw |     cfmakeraw | ||||||
|  |     cfsetspeed | ||||||
|     daemon |     daemon | ||||||
|     dn_comp |     dn_comp | ||||||
|     dn_expand |     dn_expand | ||||||
|   | |||||||
| @@ -328,6 +328,20 @@ cfsetispeed (struct termios *in_tp, speed_t speed) | |||||||
|   return res; |   return res; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | /* cfsetspeed: 4.4BSD */ | ||||||
|  | extern "C" int | ||||||
|  | cfsetspeed (struct termios *in_tp, speed_t speed) | ||||||
|  | { | ||||||
|  |   struct termios *tp = __tonew_termios (in_tp); | ||||||
|  |   int res; | ||||||
|  |   /* errors come only from unsupported baud rates, so setspeed() would return | ||||||
|  |      identical results in both calls */ | ||||||
|  |   if ((res = setspeed (tp->c_ospeed, speed)) == 0) | ||||||
|  |     setspeed (tp->c_ispeed, speed); | ||||||
|  |   __toapp_termios (in_tp, tp); | ||||||
|  |   return res; | ||||||
|  | } | ||||||
|  |  | ||||||
| extern "C" void | extern "C" void | ||||||
| cfmakeraw(struct termios *tp) | cfmakeraw(struct termios *tp) | ||||||
| { | { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user