Commit Graph

102 Commits

Author SHA1 Message Date
Ge van Geldorp
1a1583a364 Match PSDK STATUS_* definitions. 2005-11-28 17:32:54 +01:00
Cihan Altinay
3167958b3b Disable PARMRK input flag of serial ports. 2005-11-15 16:51:28 +00:00
Francois Gouget
0edbaf7e80 Remove spaces before '\n' in traces. 2005-11-10 12:14:56 +00:00
Markus Amsler
b8d9b6192d Improve c2man Documented-Total count. Changes:
- add missing description
- add missing returns section
- complete missing A/W pairs
- reformate comments, to match c2man requirements
2005-11-08 11:01:03 +00:00
Alexandre Julliard
6ed28ada49 Fixed fd leaks (spotted by Cihan Altinay). 2005-11-03 11:38:48 +00:00
Alex Villacís Lasso
f89c69c4cf Tolerate ioctl failure in GetCommState() in order to be capable to use
softmodems.
2005-09-27 09:32:17 +00:00
Gerald Pfeifer
7eb982a48d Fix autoconf-related #ifdefs in Comm_CheckEvents(). 2005-08-08 18:01:42 +00:00
Uwe Bonnes
867f66ffe8 Implement WaitCommEvent by polling the appropriate data sources. 2005-08-03 15:43:17 +00:00
Alexandre Julliard
e4412a618c Removed the special casing of kernel32 and ntdll for the TEB
definition in winternl.h.
2005-05-16 17:52:10 +00:00
Andreas Mohr
51198f8eb6 Fix for CommConfigDialog*() hwnd argument. 2005-05-09 19:32:33 +00:00
Francois Gouget
821d4c4645 Fix nativeapi.pm so it knows about AC_HEADER_STAT().
Make the error message about unexpected '#ifdef HAVE_XXX' clearer.
Protect sys/stat.h #includes with the corresponding '#ifdef HAVE_XXX'
check.
2005-05-06 16:22:54 +00:00
Francois Gouget
6b10c324c5 Assorted spelling fixes. 2005-03-30 17:08:31 +00:00
Jakob Eriksson
9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Dmitry Timoshkov
75b93ff1aa Match OVERLAPPED structure to the SDK definition. 2005-03-17 19:00:08 +00:00
Jon Griffiths
eb5bf7dd38 Documentation spelling fixes. 2005-02-25 14:07:56 +00:00
Eric Pouech
4634447d6b - got rid of include/async.h
- fixed some overlapped issues in socket handling
- moved kernel32.CancelIo implementation to ntdll
2005-01-14 19:54:38 +00:00
Mike McCormack
4a0f999859 Use CreateEventW in preference to CreateEventA for unnamed events. 2005-01-07 15:40:09 +00:00
Michael Stefaniuc
5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Eric Pouech
bcfa5b0900 ReadFile and WriteFile must be passed a parameter for the number of
handled bytes when no overlapped operation is done.
2004-12-22 18:38:31 +00:00
Alexandre Julliard
bf88644cee Convert CommConfigDialog to Unicode. 2004-10-26 00:25:58 +00:00
Mike McCormack
568a91dfd1 SERIALUI: convert to Unicode. 2004-10-26 00:16:39 +00:00
Alexandre Julliard
6a27b48895 Fd type is no longer used, get rid of it. 2004-08-18 00:04:58 +00:00
Francois Gouget
6a6c85c6d8 Make Unicode const strings static so they are not copied to the stack
each time we enter the function.
2004-04-19 20:12:14 +00:00
Rein Klazes
0d34501876 Add missing POSIX baud rates to GetCommState and SetCommState. 2004-04-14 19:33:27 +00:00
Rein Klazes
cef3983703 Fix GetCommState and SetCommState, so that these functions can be used
to set/clear/read the DTR and RTS lines.
2004-04-12 22:06:52 +00:00
Vincent Béron
14263ab0c4 Move the implementation of GetDefaultCommConfig from A to W.
Get rid of a W->A cross call at the same time.
2004-01-16 02:21:01 +00:00
Vincent Béron
b370abab45 Unicodify some comm functions.
Get rid of some W->A cross calls along the way.
2004-01-16 02:14:50 +00:00
Frank
39a16e8297 Fixed size check in GetCommConfig(). 2003-12-11 04:25:00 +00:00
Alexandre Julliard
04ecca54a1 Use wine_server_release_fd() instead of close() everywhere we use
wine_server_handle_to_fd().
A few minor winsock cleanups.
2003-12-02 04:19:56 +00:00
Kevin Groeneveld
4981619784 - Fix small bug with parsing of numbers in BuildCommDCB functions.
- Add conformance test for BuildCommDCB functions.
2003-09-15 20:00:54 +00:00
Kevin Groeneveld
8be51c92e4 Add missing wReserved1 member to DCB structure definition.
Fix several bugs in BuildCommDCBAndTimeouts:
- make sure LPCSTR parameter is really treated as constant
- fix possible buffer overflow if passed in string is too long
- if the device control string is invalid, do not modify DCB
- do not clear entire DCB, only modify appropriate members
- fix parsing of stop bits parameter so it works for 1 and 1.5
- populate COMMTIMEOUTS when to=xxx parameter is specified
- added support for xon, odsr, octs, dtr, rts, and idsr parameters
- fix several other parsing errors
2003-09-12 00:26:15 +00:00
Alexandre Julliard
e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Eric Pouech
9bd4f6bf15 - made async.h ready for use in ntdll: replaced all calls to kernel32
functions with ntdll equivalent
- replaced status setter/getter for wine async structures with direct
  access to a (now included) IO_STATUS_BLOCK structure
- since we now have a IO_STATUS_BLOCK in async_private, we no longer
  need in most of the user (derivated) structures a field for
  LPOVERLAPPED (it's stored as the IO_STATUS_BLOCK)
- rewrote the async.h users accordingly
- implemented ntdll.Nt{Read|Write}File and let
  kernel32.{Read|Write}File(Ex)? use those new ntdll functions
- rewrote smb read/write interfaces to be more ntdll stylish (no
  overlapped yet)
2003-06-26 02:08:17 +00:00
Marcus Meissner
585e9d6c24 Fixed 2 fd leaks in comm functions.
Removed erroneous GetLastError() check in WaitCommEvent().
2003-03-12 20:15:38 +00:00
Michael Stefaniuc
308e04fc61 Compile the kernel dll with -DSTRICT. 2002-10-25 21:02:30 +00:00
Patrik Stridvall
1298eb4053 Fixed mismatches between the Wine headers and the Microsoft headers. 2002-10-23 18:50:10 +00:00
Stefan Leichter
acbb639240 BuildCommDCBAndTimeoutsA: Made the argument parsing case insensitive. 2002-10-18 00:21:39 +00:00
Patrik Stridvall
9aab47ed24 MSVC compatibility fixes. 2002-08-28 23:42:34 +00:00
Patrik Stridvall
57bf45067a MSVC compatibility fixes. 2002-08-26 21:53:24 +00:00
Patrik Stridvall
d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Marcelo Welter
eef5d668ce Added PCF_TOTALTIMEOUTS to comm properties. 2002-06-05 17:27:48 +00:00
Vincent Béron
9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard
c3e06df941 Portability fixes. 2002-05-14 23:18:23 +00:00
Mike McCormack
eeb356567b Added support for TransmitCommChar. 2002-04-25 23:00:45 +00:00
Marcelo Welter
69494b8763 Fix to old DCB format parsing. 2002-04-24 21:21:43 +00:00
Alexandre Julliard
20286abc42 Removed constants that aren't defined in Windows. 2002-04-22 22:32:13 +00:00
77c2bbcb0b Faster serial speed cases for non Linux systems. 2002-04-21 22:06:09 +00:00
Martin Wilck
08867f7149 - Need a "cleanup" method.
- calling the "call_completion" method unconditionally in finish_async
  (introduced by me) was wrong, because the thread may never be in an
  alertable wait state -> call it only if user completion function is present.
- We need two constant "ops" objects, one with and one without call_completion
  method (the event field may NOT be used to determine whether the completion
  must be called or not).
2002-04-14 19:34:57 +00:00
Martin Wilck
2b47fb3cee - separate cleanly between async scheduling and file IO related issues.
- make the API compatible with other types of async requests (e.g. for
  sockets).
- remove exports of async IO related functions for DLL separation.
2002-04-05 22:53:57 +00:00
Mike McCormack
4a6b990ce8 Set an overlapped hEvent before calling any APCs. 2002-03-11 01:19:29 +00:00