Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a24f10b5
Commit
a24f10b5
authored
Dec 20, 2008
by
Wolfgang Walter
Committed by
Alexandre Julliard
Dec 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix set_XOff and set_XOn.
parent
c52fd346
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
22 deletions
+8
-22
serial.c
dlls/ntdll/serial.c
+8
-22
No files found.
dlls/ntdll/serial.c
View file @
a24f10b5
...
...
@@ -800,39 +800,25 @@ static NTSTATUS set_wait_mask(HANDLE hDevice, DWORD mask)
return
status
;
}
/*
* does not change IXOFF but simulates that IXOFF has been received:
*/
static
NTSTATUS
set_XOff
(
int
fd
)
{
struct
termios
port
;
if
(
tcgetattr
(
fd
,
&
port
)
==
-
1
)
{
FIXME
(
"tcgetattr on fd %d failed (%s)!
\n
"
,
fd
,
strerror
(
errno
));
return
FILE_GetNtStatus
();
}
port
.
c_iflag
|=
IXOFF
;
if
(
tcsetattr
(
fd
,
TCSADRAIN
,
&
port
)
==
-
1
)
if
(
tcflow
(
fd
,
TCOOFF
))
{
FIXME
(
"tcsetattr on fd %d failed (%s)!
\n
"
,
fd
,
strerror
(
errno
));
return
FILE_GetNtStatus
();
}
return
STATUS_SUCCESS
;
}
/*
* does not change IXON but simulates that IXON has been received:
*/
static
NTSTATUS
set_XOn
(
int
fd
)
{
struct
termios
port
;
if
(
tcgetattr
(
fd
,
&
port
)
==
-
1
)
{
FIXME
(
"tcgetattr on fd %d failed (%s)!
\n
"
,
fd
,
strerror
(
errno
));
return
FILE_GetNtStatus
();
}
port
.
c_iflag
|=
IXON
;
if
(
tcsetattr
(
fd
,
TCSADRAIN
,
&
port
)
==
-
1
)
if
(
tcflow
(
fd
,
TCOON
))
{
FIXME
(
"tcsetattr on fd %d failed (%s)!
\n
"
,
fd
,
strerror
(
errno
));
return
FILE_GetNtStatus
();
}
return
STATUS_SUCCESS
;
...
...
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