Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d7272cff
Commit
d7272cff
authored
Jun 07, 1993
by
Richard M. Stallman
Browse files
(init_baud_rate) [HAVE_TERMIOS]: Use cfgetospeed.
parent
cef13e55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/sysdep.c
src/sysdep.c
+3
-2
No files found.
src/sysdep.c
View file @
d7272cff
...
...
@@ -239,7 +239,7 @@ init_baud_rate ()
sg
.
c_cflag
=
(
sg
.
c_cflag
&
~
CBAUD
)
|
B9600
;
tcgetattr
(
0
,
&
sg
);
ospeed
=
sg
.
c_cflag
&
CBAUD
;
ospeed
=
cfgetospeed
(
&
sg
)
;
#else
/* neither VMS nor TERMIOS */
#ifdef HAVE_TERMIO
struct
termio
sg
;
...
...
@@ -255,7 +255,8 @@ init_baud_rate ()
struct
sgttyb
sg
;
sg
.
sg_ospeed
=
B9600
;
ioctl
(
0
,
TIOCGETP
,
&
sg
);
if
(
ioctl
(
0
,
TIOCGETP
,
&
sg
)
<
0
)
abort
();
ospeed
=
sg
.
sg_ospeed
;
#endif
/* not HAVE_TERMIO */
#endif
/* not HAVE_TERMIOS */
...
...
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