OSDN Git Service

* Makefile.in: Add -c option which is now removed from COMPILE_C*.
authorcgf <cgf>
Fri, 12 Sep 2008 22:32:07 +0000 (22:32 +0000)
committercgf <cgf>
Fri, 12 Sep 2008 22:32:07 +0000 (22:32 +0000)
* cygwin.din (cfmakeraw): Export.
* termios.cc (cfmakeraw): Implement.
* include/sys/termios.h (cfmakeraw): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

winsup/cygwin/ChangeLog
winsup/cygwin/Makefile.in
winsup/cygwin/cygwin.din
winsup/cygwin/include/cygwin/version.h
winsup/cygwin/include/sys/termios.h
winsup/cygwin/termios.cc

index 5b22e70..8f0897f 100644 (file)
@@ -1,3 +1,11 @@
+2008-09-12  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * 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.
+
 2008-09-11  Christopher Faylor  <me+cygwin@cgf.cx>
 
        * cygwin.din (sys_sigabbrev): Add this here.
index e9b9662..d6f6bb1 100644 (file)
@@ -451,7 +451,7 @@ lib%.a: %.o
 winver_stamp: mkvers.sh include/cygwin/version.h winver.rc $(DLL_OFILES)
        @echo "Making version.o and winver.o";\
        $(SHELL) ${word 1,$^} ${word 2,$^} ${word 3,$^} $(WINDRES) && \
-       $(COMPILE_CXX) -o version.o version.cc && \
+       $(COMPILE_CXX) -c -o version.o version.cc && \
        touch $@
 
 Makefile: cygwin.din
@@ -460,7 +460,7 @@ $(DEF_FILE): gendef cygwin.din $(srcdir)/tlsoffsets.h
        $^ $@ sigfe.s
 
 $(srcdir)/tlsoffsets.h: gentls_offsets cygtls.h
-       $^ $@ $(COMPILE_CXX)
+       $^ $@ $(COMPILE_CXX) -c
 
 sigfe.s: $(DEF_FILE)
        @[ -s $@ ] || \
index edd8442..3aeee87 100644 (file)
@@ -174,6 +174,7 @@ ceilf NOSIGFE
 _ceilf = ceilf NOSIGFE
 cfgetispeed NOSIGFE
 cfgetospeed NOSIGFE
+cfmakeraw NOSIGFE
 cfsetispeed SIGFE
 cfsetospeed SIGFE
 chdir SIGFE
index 23836a5..268f99d 100644 (file)
@@ -334,12 +334,13 @@ details. */
       185: Export futimens, utimensat.
       186: Remove ancient V8 regexp functions.  Also eliminate old crt0 interface
            which provided its own user_data structure.
+      187: Export cfmakeraw.
      */
 
      /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
 
 #define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 186
+#define CYGWIN_VERSION_API_MINOR 187
 
      /* There is also a compatibity version number associated with the
        shared memory regions.  It is incremented when incompatible
index 0571469..6648bc3 100644 (file)
@@ -330,6 +330,7 @@ int tcsendbreak (int, int);
 int tcdrain (int);
 int tcflush (int, int);
 int tcflow (int, int);
+void cfmakeraw (struct termios *);
 int cfsetispeed (struct termios *, speed_t);
 int cfsetospeed (struct termios *, speed_t);
 
index fe6a1de..4476be1 100644 (file)
@@ -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;
+}