Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-09-13 02:32:07 +0400
committerChristopher Faylor <me@cgf.cx>2008-09-13 02:32:07 +0400
commit175742d8c818ff31b06174494a77b30e5008eb83 (patch)
treedfbf349b29de835555f6ded1db161ff2e776617c /winsup/cygwin/termios.cc
parent7df9b8ba8e832a14084b60c3daa035bcba5c5a8d (diff)
* Makefile.in: Add -c option which is now removed from COMPILE_C*.
* cygwin.din (cfmakeraw): Export. * termios.cc (cfmakeraw): Implement. * include/sys/termios.h (cfmakeraw): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Diffstat (limited to 'winsup/cygwin/termios.cc')
-rw-r--r--winsup/cygwin/termios.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/winsup/cygwin/termios.cc b/winsup/cygwin/termios.cc
index fe6a1de3c..4476be17d 100644
--- a/winsup/cygwin/termios.cc
+++ b/winsup/cygwin/termios.cc
@@ -311,3 +311,14 @@ cfsetispeed (struct termios *in_tp, speed_t speed)
__toapp_termios (in_tp, tp);
return res;
}
+
+extern "C" void
+cfmakeraw(struct termios *tp)
+{
+ tp->c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP
+ | INLCR | IGNCR | ICRNL | IXON);
+ tp->c_oflag &= ~OPOST;
+ tp->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
+ tp->c_cflag &= ~(CSIZE | PARENB);
+ tp->c_cflag |= CS8;
+}