* 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.
This commit is contained in:
Christopher Faylor 2008-09-12 22:32:07 +00:00
parent 7df9b8ba8e
commit 175742d8c8
6 changed files with 25 additions and 3 deletions

View 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.

View 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 $@ ] || \

View File

@ -174,6 +174,7 @@ ceilf NOSIGFE
_ceilf = ceilf NOSIGFE
cfgetispeed NOSIGFE
cfgetospeed NOSIGFE
cfmakeraw NOSIGFE
cfsetispeed SIGFE
cfsetospeed SIGFE
chdir SIGFE

View 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

View 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);

View 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;
}