Commit Graph

52 Commits

Author SHA1 Message Date
Uwe Bonnes
89c2a4c596 ntdll: Generate a single EV_TXEMPTY when the TX buffer turns empty. 2011-10-14 20:26:44 +02:00
Alexandre Julliard
4d7ad03c3c ntdll: Use the more portable cfsetospeed() function to set serial baud rate. 2010-10-08 11:56:46 +02:00
Ken Thomases
85f32011cd ntdll: Fix set_baud_rate for high rates for non-Linux (bad copy/paste). 2010-07-06 19:28:27 +02:00
Alexandre Julliard
3b67ad9bd4 ntdll: Fix the NtCreateEvent prototype.
It takes an event type, not a manual reset flag.
2010-01-18 20:34:54 +01:00
Alexandre Julliard
72241b5d47 ntdll: Make sure that serial ioctl calls fail on non-serial handles. 2009-09-10 11:06:01 +02:00
Mike Kaplinskiy
3f232785d3 ntdll: Remember to set the iosb status if using a worker thread for serial wait. 2009-09-08 12:12:28 +02:00
Michael Stefaniuc
d2f6f56873 ntdll: Remove superfluous pointer casts. 2009-03-23 12:40:53 +01:00
Francois Gouget
96848a0605 Remove spaces before '\n's. 2009-03-09 12:05:58 +01:00
G. Paul Ziemba
df05a90a3f ntdll: Clear IEXTEN when clearing ICANON. 2009-01-07 14:21:03 +01:00
Pavel Troller
0f6b925bdc ntdll: Fix serial.c for linux-2.6.28. 2009-01-04 14:59:55 +01:00
Andrew Talbot
e198b4eb84 ntdll: Remove a superfluous semicolon. 2008-12-24 19:59:27 +01:00
Wolfgang Walter
a24f10b511 ntdll: Fix set_XOff and set_XOn. 2008-12-22 14:21:07 +01:00
Alexandre Julliard
d1b3d484f7 server: Add functions for conversions between server object handles and pointer-style handles. 2008-12-08 16:05:17 +01:00
Francois Gouget
e723395617 ntdll: Remove WINAPI on static functions where not needed. 2008-11-28 12:54:32 +01:00
Alexandre Julliard
03fbe01632 ntdll: Ignore failures to retrieve serial status for events we are not interested in.
Based on a patch by Valentine Sinitsyn.
2008-05-07 21:10:39 +02:00
Alexandre Julliard
b1ace4490e ntdll: Always set VTIME to 0 to avoid blocking, don't try to set it from the comm timeouts. 2008-05-07 20:17:32 +02:00
Austin English
05faae7b5a Spelling fixes. 2008-04-09 12:07:39 +02:00
Eric Pouech
2ea3dd12b1 ntdll: Fixed getting the RTS status from line, and now using sane default values for all (compilation/system) cases. 2008-01-22 12:58:14 +01:00
Francois Gouget
44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Alexandre Julliard
0a2fda7020 ntdll: Restore typecast that is really needed. 2008-01-15 20:36:48 +01:00
Andrew Talbot
00981b580a ntdll: Remove unneeded casts. 2008-01-14 13:10:00 +01:00
Michael Stefaniuc
0ecf2edca0 ntdll: Remove duplicate includes. 2007-11-19 13:54:09 +01:00
Tom Brus
fa4304f06e ntdll: Serial/COM code misinterpreted XON/XOFF direction. 2007-10-29 13:58:51 +01:00
Michael Stefaniuc
b8880e1640 ntdll: Remove a break after a break. Found by Smatch. 2007-07-26 11:51:05 +02:00
Michael Stefaniuc
0f14b3a574 ntdll: Don't produce unreachable code during conditional compilation. Found by Smatch. 2007-07-19 11:57:23 +02:00
Andrew Talbot
61cb830b9b ntdll: Constify some variables. 2007-06-26 12:56:50 +02:00
Reinhard Karcher
64c1c017c4 ntdll: Fix DTR and CTS controls in serial code. 2007-01-03 12:01:31 +01:00
Alexandre Julliard
83ce958793 ntdll: Store the fd type in the cache and return it in server_get_unix_fd. 2006-11-20 14:15:06 +01:00
Alexandre Julliard
9ddb9294da ntdll: Added a server_get_unix_fd function that avoids doing a dup() of the fd when not required. 2006-11-03 11:38:44 +01:00
Hans Leidekker
f7b0ba7aa7 ntdll: Win64 printf format warning fixes. 2006-10-18 12:35:26 +02:00
Alexandre Julliard
d9634e397c ntdll: Fixed typo in serial.c. 2006-10-04 22:16:34 +02:00
Eric Pouech
d990c0d8e5 ntdll-kernel32: WaitCommEvent.
- implemented IOCTL_SERIAL_WAIT_ON_MASK for DeviceIoControl
  on serial lines in ntdll
- now using thread pool (instead of simple thread) for the
  background operations (this should help some high load
  situations)
- used this to implement WaitCommEvent on top NtDll functions
- in kernel32, removed now the no longer used termios/ioctls...
  for comm devices
2006-10-03 20:19:08 +02:00
Alexandre Julliard
2208694ab2 ntdll: Cast termios.c_cflag to avoid a printf format warning. 2006-06-13 14:16:57 +02:00
Jonathan Ernst
360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Eric Pouech
0ddd1c9e18 ntdll: Fix serial timeout regression. 2006-05-15 11:03:43 +02:00
Eric Pouech
5f9e9836cf ntdll/kernel32: EscapeCommFunction & associated IOCTLs
- implemented ntdll's serial IOCTL: CLR_DTR, CLR_RTS, SET_DTR,
  SET_RTS, SET_XOFF, SET_XON, RESET_DEVICE
- implemented kernel32.EscapeCommFunction on top of them
2006-05-09 21:08:14 +02:00
Eric Pouech
fcdc293bb0 ntdll/kernel32: SetupComm & SET_QUEUE_SIZE
- stubbed out ntdll's serial IOCTL SET_QUEUE_SIZE
- implemented kernel32.SetupComm on top of it
2006-05-09 21:07:35 +02:00
Eric Pouech
b53e016925 ntdll/kernel32: [SG]etCommTimeout, SERIAL_[GS]ET_TIMEOUT
- implemented ntdll's COMM IOCTL GET_TIMEOUTS, SET_TIMEOUTS
- implemented kernel32.GetCommTimeout and SetCommTimeout on top of them
2006-05-09 21:07:18 +02:00
Eric Pouech
28cd4fae3b ntdll/kernel32: GetCommState & IOCTL_GET_CHARS
- implemented SERIAL_GET_CHARS ioctl
- made use of it in kernel32.GetCommState
2006-05-09 21:06:24 +02:00
Eric Pouech
48646ea82b ntdll/kernel32: GetCommState & IOCTL_SERIAL_GET_HANDFLOW
- implemented SERIAL_GET_HANDFLOW ioctl
- made use of it in kernel.GetCommState
2006-05-09 21:06:02 +02:00
Eric Pouech
efb3244b0a ntdll/kernel32: GetCommState & SERIAL_GET_LINE_CONTROL
- implemented SERIAL_GET_LINE_CONTROL ioctl
- made use of it in kernel.GetCommState
2006-05-09 21:05:46 +02:00
Eric Pouech
c7016d9325 ntdll/kernel32: GetCommState & IOCTL_GET_BAUD_RATE
- implemented SERIAL_GET_BAUD_RATE ioctl
- made use of it in kernel.GetCommState
2006-05-09 21:05:30 +02:00
Eric Pouech
a05a3435fd ntdll/kernel32: SetCommState & IOCTL_SET_CHARS
- implemented ntdll's serial IOCTL SET_CHARS
- used this IOCTL in kernel32.SetCommState
2006-05-09 21:05:09 +02:00
Eric Pouech
b68203ea90 ntdll/kernel32: SetCommState & IOCTL_SET_HANDFLOW
- implemented ntdll's serial IOCTL SET_HANDFLOW
- used this IOCTL in kernel32.SetCommState
2006-05-09 21:04:38 +02:00
Eric Pouech
65f137c56c ntdll/kernel32: SetCommState & IOCTL_SET_LINE_CONTROL
- implemented ntdll's serial IOCTL SET_LINE_CONTROL
- used this IOCTL in kernel32.SetCommState
2006-05-09 21:04:22 +02:00
Eric Pouech
631ec30f78 ntdll/kernel32: SetCommState & IOCTL_SET_BAUD_RATE
- created dump_dcb to print out DCB information
- implemented ntdll's serial IOCTL SET_BAUD_RATE
- used this IOCTL in kernel32.SetCommState
2006-05-09 21:03:27 +02:00
Eric Pouech
a6d339c656 ntdll: Implemented serial IOCTL for status: GET_COMM_STATUS. 2006-02-28 15:36:37 +01:00
Eric Pouech
3c2abaf45e ntdll: Implemented IOCTL for char transmission: IMMEDIATE_CHAR. 2006-02-06 11:38:53 +01:00
Eric Pouech
5973955e4e ntdll: Implemented COMM IOCTL for modem status: GET_MODEMSTATUS. 2006-02-06 11:37:39 +01:00
Eric Pouech
58e719ce93 ntdll: Implemented IOCTL for serial: SET_WAIT_MASK, GET_WAIT_MASK. 2006-02-06 11:37:06 +01:00