Mercurial > emacs
comparison src/sysdep.c @ 5167:6ac5c999a7cc
(init_baud_rate): Avoid referring to sg uninitialized.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 25 Nov 1993 05:41:47 +0000 |
parents | 035f80625c5e |
children | af88471e6799 |
comparison
equal
deleted
inserted
replaced
5166:7e66b092f331 | 5167:6ac5c999a7cc |
---|---|
233 { | 233 { |
234 /* Should perhaps error if in batch mode */ | 234 /* Should perhaps error if in batch mode */ |
235 #ifdef TIOCSTI | 235 #ifdef TIOCSTI |
236 ioctl (input_fd, TIOCSTI, &c); | 236 ioctl (input_fd, TIOCSTI, &c); |
237 #else /* no TIOCSTI */ | 237 #else /* no TIOCSTI */ |
238 error ("Cannot stuff terminal input characters in this version of Unix."); | 238 error ("Cannot stuff terminal input characters in this version of Unix"); |
239 #endif /* no TIOCSTI */ | 239 #endif /* no TIOCSTI */ |
240 } | 240 } |
241 | 241 |
242 #endif /* SIGTSTP */ | 242 #endif /* SIGTSTP */ |
243 | 243 |
255 ospeed = sg.xmit_baud; | 255 ospeed = sg.xmit_baud; |
256 #else /* not VMS */ | 256 #else /* not VMS */ |
257 #ifdef HAVE_TERMIOS | 257 #ifdef HAVE_TERMIOS |
258 struct termios sg; | 258 struct termios sg; |
259 | 259 |
260 sg.c_cflag = (sg.c_cflag & ~CBAUD) | B9600; | 260 sg.c_cflag = B9600; |
261 tcgetattr (input_fd, &sg); | 261 tcgetattr (input_fd, &sg); |
262 ospeed = cfgetospeed (&sg); | 262 ospeed = cfgetospeed (&sg); |
263 #else /* neither VMS nor TERMIOS */ | 263 #else /* neither VMS nor TERMIOS */ |
264 #ifdef HAVE_TERMIO | 264 #ifdef HAVE_TERMIO |
265 struct termio sg; | 265 struct termio sg; |
266 | 266 |
267 sg.c_cflag = (sg.c_cflag & ~CBAUD) | B9600; | 267 sg.c_cflag = B9600; |
268 #ifdef HAVE_TCATTR | 268 #ifdef HAVE_TCATTR |
269 tcgetattr (input_fd, &sg); | 269 tcgetattr (input_fd, &sg); |
270 #else | 270 #else |
271 ioctl (input_fd, TCGETA, &sg); | 271 ioctl (input_fd, TCGETA, &sg); |
272 #endif | 272 #endif |