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
e3dcdada
Commit
e3dcdada
authored
Aug 27, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fallback to ioctl(TIOCOUTQ) if ioctl(TIOCSERGETLSR) fails.
Most Linux USB-serial drivers don't support TIOCSERGETLSR.
parent
1202c14e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
serial.c
dlls/ntdll/serial.c
+6
-6
No files found.
dlls/ntdll/serial.c
View file @
e3dcdada
...
...
@@ -828,12 +828,12 @@ static NTSTATUS get_irq_info(int fd, serial_irq_info *irq_info)
irq_info
->
temt
=
0
;
/* Generate a single TX_TXEMPTY event when the TX Buffer turns empty*/
#ifdef TIOCSERGETLSR
/* prefer to log the state TIOCSERGETLSR */
if
(
ioctl
(
fd
,
TIOCSERGETLSR
,
&
irq_info
->
temt
))
{
TRACE
(
"TIOCSERGETLSR err %s
\n
"
,
strerror
(
errno
));
return
FILE_GetNtStatus
(
);
}
#
elif defined(TIOCOUTQ)
/* otherwise we log when the out queue gets empty */
if
(
!
ioctl
(
fd
,
TIOCSERGETLSR
,
&
irq_info
->
temt
))
return
STATUS_SUCCESS
;
TRACE
(
"TIOCSERGETLSR err %s
\n
"
,
strerror
(
errno
)
);
#endif
#
ifdef TIOCOUTQ
/* otherwise we log when the out queue gets empty */
if
(
ioctl
(
fd
,
TIOCOUTQ
,
&
irq_info
->
temt
))
{
TRACE
(
"TIOCOUTQ err %s
\n
"
,
strerror
(
errno
));
...
...
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