Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
96b93bb7
Commit
96b93bb7
authored
Apr 04, 1999
by
Lawson Whitney
Committed by
Alexandre Julliard
Apr 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the modem control part of EscapeCommFunction16.
parent
ffa0b131
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
comm.c
misc/comm.c
+20
-10
No files found.
misc/comm.c
View file @
96b93bb7
...
...
@@ -6,6 +6,9 @@
* Mar 31, 1999. Ove Kven <ovek@arcticnet.no>
* - Implemented buffers and EnableCommNotification.
*
* Apr 3, 1999. Lawson Whitney <lawson_whitney@juno.com>
* - Fixed the modem control part of EscapeCommFunction16.
*
* Mar 3, 1999. Ove Kven <ovek@arcticnet.no>
* - Use port indices instead of unixfds for win16
* - Moved things around (separated win16 and win32 routines)
...
...
@@ -212,6 +215,16 @@ static unsigned comm_outbuf(struct DosDeviceStruct *ptr)
+
ptr
->
obuf_head
-
ptr
->
obuf_tail
;
}
static
int
COMM_WhackModem
(
int
fd
,
unsigned
int
andy
,
unsigned
int
orrie
)
{
unsigned
int
mstat
,
okay
;
okay
=
ioctl
(
fd
,
TIOCMGET
,
&
mstat
);
if
(
okay
)
return
okay
;
if
(
andy
)
mstat
&=
andy
;
mstat
|=
orrie
;
return
ioctl
(
fd
,
TIOCMSET
,
&
mstat
);
}
static
void
comm_notification
(
int
fd
,
void
*
private
)
{
struct
DosDeviceStruct
*
ptr
=
(
struct
DosDeviceStruct
*
)
private
;
...
...
@@ -577,24 +590,21 @@ LONG WINAPI EscapeCommFunction16(UINT16 cid,UINT16 nFunction)
#ifdef TIOCM_DTR
case
CLRDTR
:
port
.
c_cflag
&=
TIOCM_DTR
;
break
;
return
COMM_WhackModem
(
ptr
->
fd
,
~
TIOCM_DTR
,
0
);
#endif
#ifdef TIOCM_RTS
case
CLRRTS
:
port
.
c_cflag
&=
TIOCM_RTS
;
break
;
return
COMM_WhackModem
(
ptr
->
fd
,
~
TIOCM_RTS
,
0
);
#endif
#ifdef
CRTSCTS
#ifdef
TIOCM_DTR
case
SETDTR
:
port
.
c_cflag
|=
CRTSCTS
;
break
;
return
COMM_WhackModem
(
ptr
->
fd
,
0
,
TIOCM_DTR
)
;
#endif
#ifdef TIOCM_RTS
case
SETRTS
:
port
.
c_cflag
|=
CRTSCTS
;
break
;
return
COMM_WhackModem
(
ptr
->
fd
,
0
,
TIOCM_RTS
);
#endif
case
SETXOFF
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment