* include/sys/termios.h (cfsetispeed): Just define as a function rather than
resorting to a macro. (cfsetospeed): Ditto.
This commit is contained in:
parent
f6f3b1ee46
commit
6a7a2f4bbe
@ -1,3 +1,9 @@
|
|||||||
|
2006-02-27 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* include/sys/termios.h (cfsetispeed): Just define as a function rather
|
||||||
|
than resorting to a macro.
|
||||||
|
(cfsetospeed): Ditto.
|
||||||
|
|
||||||
2006-02-27 Christopher Faylor <cgf@timesys.com>
|
2006-02-27 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* sigproc.cc: Fix a comment.
|
* sigproc.cc: Fix a comment.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* sys/termios.h
|
/* sys/termios.h
|
||||||
|
|
||||||
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005 Red Hat, Inc.
|
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
@ -234,26 +234,28 @@ typedef unsigned int speed_t;
|
|||||||
typedef unsigned short otcflag_t;
|
typedef unsigned short otcflag_t;
|
||||||
typedef unsigned char ospeed_t;
|
typedef unsigned char ospeed_t;
|
||||||
|
|
||||||
struct __oldtermios {
|
struct __oldtermios
|
||||||
otcflag_t c_iflag;
|
{
|
||||||
otcflag_t c_oflag;
|
otcflag_t c_iflag;
|
||||||
otcflag_t c_cflag;
|
otcflag_t c_oflag;
|
||||||
otcflag_t c_lflag;
|
otcflag_t c_cflag;
|
||||||
char c_line;
|
otcflag_t c_lflag;
|
||||||
cc_t c_cc[NCCS];
|
char c_line;
|
||||||
ospeed_t c_ispeed;
|
cc_t c_cc[NCCS];
|
||||||
ospeed_t c_ospeed;
|
ospeed_t c_ispeed;
|
||||||
|
ospeed_t c_ospeed;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct termios {
|
struct termios
|
||||||
tcflag_t c_iflag;
|
{
|
||||||
tcflag_t c_oflag;
|
tcflag_t c_iflag;
|
||||||
tcflag_t c_cflag;
|
tcflag_t c_oflag;
|
||||||
tcflag_t c_lflag;
|
tcflag_t c_cflag;
|
||||||
char c_line;
|
tcflag_t c_lflag;
|
||||||
cc_t c_cc[NCCS];
|
char c_line;
|
||||||
speed_t c_ispeed;
|
cc_t c_cc[NCCS];
|
||||||
speed_t c_ospeed;
|
speed_t c_ispeed;
|
||||||
|
speed_t c_ospeed;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CYGWIN_VERSION_DLL_IS_OLD_TERMIOS
|
#ifdef CYGWIN_VERSION_DLL_IS_OLD_TERMIOS
|
||||||
@ -307,8 +309,6 @@ struct termios {
|
|||||||
|
|
||||||
#define cfgetospeed(tp) ((tp)->c_ospeed)
|
#define cfgetospeed(tp) ((tp)->c_ospeed)
|
||||||
#define cfgetispeed(tp) ((tp)->c_ispeed)
|
#define cfgetispeed(tp) ((tp)->c_ispeed)
|
||||||
#define cfsetospeed(tp,s) (((tp)->c_ospeed = (s)), 0)
|
|
||||||
#define cfsetispeed(tp,s) (((tp)->c_ispeed = (s)), 0)
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -320,6 +320,8 @@ int tcsendbreak (int, int);
|
|||||||
int tcdrain (int);
|
int tcdrain (int);
|
||||||
int tcflush (int, int);
|
int tcflush (int, int);
|
||||||
int tcflow (int, int);
|
int tcflow (int, int);
|
||||||
|
int cfsetispeed (struct termios *, speed_t);
|
||||||
|
int cfsetospeed (struct termios *, speed_t);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user