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
a63be082
Commit
a63be082
authored
Sep 26, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Make set_line_control() for a serial device print slightly more informative messages.
parent
a20b07c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
serial.c
dlls/ntdll/serial.c
+5
-7
No files found.
dlls/ntdll/serial.c
View file @
a63be082
...
@@ -588,9 +588,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
...
@@ -588,9 +588,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
port
.
c_iflag
&=
~
(
ISTRIP
|
BRKINT
|
IGNCR
|
ICRNL
|
INLCR
|
PARMRK
);
port
.
c_iflag
&=
~
(
ISTRIP
|
BRKINT
|
IGNCR
|
ICRNL
|
INLCR
|
PARMRK
);
#endif
#endif
port
.
c_iflag
|=
IGNBRK
|
INPCK
;
port
.
c_iflag
|=
IGNBRK
|
INPCK
;
port
.
c_oflag
&=
~
(
OPOST
);
port
.
c_oflag
&=
~
(
OPOST
);
port
.
c_cflag
&=
~
(
HUPCL
);
port
.
c_cflag
&=
~
(
HUPCL
);
port
.
c_cflag
|=
CLOCAL
|
CREAD
;
port
.
c_cflag
|=
CLOCAL
|
CREAD
;
...
@@ -633,7 +631,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
...
@@ -633,7 +631,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
}
}
else
else
{
{
ERR
(
"Cannot set MARK Parity
\n
"
);
FIXME
(
"Cannot set MARK Parity
\n
"
);
return
STATUS_NOT_SUPPORTED
;
return
STATUS_NOT_SUPPORTED
;
}
}
break
;
break
;
...
@@ -645,13 +643,13 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
...
@@ -645,13 +643,13 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
}
}
else
else
{
{
ERR
(
"Cannot set SPACE Parity
\n
"
);
FIXME
(
"Cannot set SPACE Parity
\n
"
);
return
STATUS_NOT_SUPPORTED
;
return
STATUS_NOT_SUPPORTED
;
}
}
break
;
break
;
#endif
#endif
default:
default:
ERR
(
"Parity
\n
"
);
FIXME
(
"Parity %d is not supported
\n
"
,
slc
->
Parity
);
return
STATUS_NOT_SUPPORTED
;
return
STATUS_NOT_SUPPORTED
;
}
}
...
@@ -663,7 +661,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
...
@@ -663,7 +661,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
case
7
:
port
.
c_cflag
|=
CS7
;
break
;
case
7
:
port
.
c_cflag
|=
CS7
;
break
;
case
8
:
port
.
c_cflag
|=
CS8
;
break
;
case
8
:
port
.
c_cflag
|=
CS8
;
break
;
default:
default:
ERR
(
"ByteSize
\n
"
);
FIXME
(
"ByteSize %d is not supported
\n
"
,
bytesize
);
return
STATUS_NOT_SUPPORTED
;
return
STATUS_NOT_SUPPORTED
;
}
}
...
@@ -673,7 +671,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
...
@@ -673,7 +671,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
case
ONE5STOPBITS
:
/* will be selected if bytesize is 5 */
case
ONE5STOPBITS
:
/* will be selected if bytesize is 5 */
case
TWOSTOPBITS
:
port
.
c_cflag
|=
CSTOPB
;
break
;
case
TWOSTOPBITS
:
port
.
c_cflag
|=
CSTOPB
;
break
;
default:
default:
ERR
(
"StopBits
\n
"
);
FIXME
(
"StopBits %d is not supported
\n
"
,
stopbits
);
return
STATUS_NOT_SUPPORTED
;
return
STATUS_NOT_SUPPORTED
;
}
}
/* otherwise it hangs with pending input*/
/* otherwise it hangs with pending input*/
...
...
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