Commit graph

46881 commits

Author SHA1 Message Date
Cameron Gutman 279c82bd9f [OSKITTCP]
- Remove socket state checks from OskitTCPRecv and OskitTCPSend
- Oskit already returns ESHUTDOWN when sosend is called on a socket with SS_CANTSENDMORE so it is unnecessary
- The check in OskitTCPRecv broke returning success and 0 bytes on a graceful shutdown (We got the FIN, set SS_CANTRCVMORE, signaled the connection, tried to read and failed with ESHUTDOWN instead of succeeding with 0 bytes)

svn path=/trunk/; revision=52505
2011-07-02 22:57:30 +00:00
Cameron Gutman c7d3d99eaf [OSKITTCP]
- Signal readable when read is closed and writeable when write is closed
- This seems counterintuitive on the surface but signaling the socket in this way ensures that pending reads and writes are cancelled if either side shuts down send/receive
- Graceful close (recv() returns 0 bytes and FD_CLOSE is signaled when we receive a FIN) works much better

svn path=/trunk/; revision=52504
2011-07-02 21:47:30 +00:00
Cameron Gutman 0669007af7 [TCPIP]
- Implement support for timing out disconnects
- Add debug prints for oskittcp errors
[MSAFD]
- Set a disconnect timeout value that actually makes sense (1 second vs 100 nanoseconds)

svn path=/trunk/; revision=52503
2011-07-02 20:36:35 +00:00
Cameron Gutman f828c2431c [AFD]
- Fix a corrupted disconnect timeout pointer being sent to the TDI transport driver

svn path=/trunk/; revision=52502
2011-07-02 20:26:21 +00:00
Cameron Gutman 16ded1b13b [TCPIP]
- Fix binding to an unspecified port on a connect so that it works reliably by asking the TCP library for a free port instead of assuming that one we have is free
- Fix binding to an unspecified port on a listen which previously would result in the address file not having information stored about the port number assigned
- Fix a nasty bug which resulted in us binding to an arbitrary port during a connect even when the client wanted a specific port
- Revert the hack that partially fixed this before

svn path=/trunk/; revision=52501
2011-07-02 15:37:37 +00:00
Timo Kreuzer b062ee8583 [FAT32]
- Really fix loading the MSVC built kernel, by moving the FAT sector buffer beyond the area for freeldr.sys
- Load segment only in one place

svn path=/trunk/; revision=52500
2011-07-02 15:08:54 +00:00
Cameron Gutman 7bff316a9a [OSKITTCP]
- Set SO_REUSEPORT on new sockets to allow binding to ports shared by sockets which are closed according to upper layers of tcpip but still pending a close in oskittcp (see the BSD try-10-times hack)
- Fill all members of the sockaddr_in struct when fulfilling a query accept request

svn path=/trunk/; revision=52498
2011-07-01 15:08:59 +00:00
Cameron Gutman a45e92a406 [AFD]
- Rewrite disconnect to work asynchronously

svn path=/trunk/; revision=52497
2011-07-01 14:31:37 +00:00
Timo Kreuzer 1fbeaa3bac [FAT32]
Add some code that does ... nothing, but fixes 2nd stage boot with msvc. To figure out why this is needed, is left as an excercise to the reader :)

svn path=/trunk/; revision=52496
2011-07-01 01:06:19 +00:00
Rafal Harabien 47003f6ddb [DDK]
- Fix ScsiPortWriteRegisterUchar prototype

svn path=/trunk/; revision=52495
2011-06-30 22:54:20 +00:00
Rafal Harabien a92db0cc1d [FREELDR]
- Allocate enough memory for unicode strings

svn path=/trunk/; revision=52494
2011-06-30 18:55:44 +00:00
Timo Kreuzer 53d165e2ae [CMAKE]
Add hlink and msi importlib to MSVC build

svn path=/trunk/; revision=52493
2011-06-30 16:03:41 +00:00
Cameron Gutman 97b25874fc [AFD]
- Fix several bugs related to the FD_WRITE event
- We would not set the sendable poll state if the socket had data waiting to be sent even if there was buffer space
- We did not set the poll state after performing a send
- We did not clear the sendable poll state if we ran out of buffer space

svn path=/trunk/; revision=52492
2011-06-30 06:04:09 +00:00
Timo Kreuzer ab849501e7 [FREELDR]
Remove the old boot method.
Its not needed anymore, since booting with more than 4GB works fine with the new method now. It didn't work anyway since the neccessary code in the kernel has been #if'ed out in r49445

svn path=/trunk/; revision=52491
2011-06-29 20:27:07 +00:00
Sylvain Petreolle b569cc99bd [ASM]
Use CR, LF and NUL in .ascii macro.

svn path=/trunk/; revision=52490
2011-06-29 16:40:14 +00:00
Timo Kreuzer fe0d2f6e05 [KDCOM]
Fix a typo

svn path=/trunk/; revision=52488
2011-06-28 15:15:28 +00:00
Timo Kreuzer a4f75706d0 [KDCOM]
Revert r52482, it didn't really work. Instead grab the StallScaleFactor from the PCR and use this as a base for the repeat count.

svn path=/trunk/; revision=52487
2011-06-28 15:12:02 +00:00
Olaf Siejka 7d7c3abd4d [TRANSLATION]
- CACLS, CALC and CHARMAP UTF8 conversion by Elton Chung;
- FONTVIEW, LOGON russian/ukrainian UTF8 conversion and SYSDM ukrainian fix by Igor Paliychuk;
- WIN32CSR czech translation update by Radek Liska;

svn path=/trunk/; revision=52486
2011-06-28 11:42:37 +00:00
Jérôme Gardou fb4322a63f [CMAKE]
- reapply 52463, it was a real fix :-)
log: fix typo, batc.sys -> battc.sys

svn path=/trunk/; revision=52484
2011-06-27 17:26:59 +00:00
Jérôme Gardou da1b81d04f [CMAKE]
- do not use half supported precompiled header wrongly for rosautotests

svn path=/trunk/; revision=52483
2011-06-27 17:20:02 +00:00
Timo Kreuzer 0f06493485 [KDCOM]
Use KeStallExecutionProcessor, once its ready (after KdDebuggerInitialize1 was called) for the receive timeout. Repeat 100 times with 1 ms wait. This seems to work quite well, but might be tuned for better values.

svn path=/trunk/; revision=52482
2011-06-27 16:51:00 +00:00
Timo Kreuzer 2f7cf157d8 [CRT]
On amd64 builds, where we don't have underscored symbols, create an alias fabs for the function _fabs, since we cannot create fabs as a label directly

svn path=/trunk/; revision=52481
2011-06-27 10:50:09 +00:00
Timo Kreuzer 0d984ab4e1 [NTOSKRNL]
Use KeRainseIrql and KeLowerIrql instead of the fastcall versions. Fixes amd64 build

svn path=/trunk/; revision=52479
2011-06-27 00:20:47 +00:00
Timo Kreuzer 157023269f [CRT]
- comment out gcc specific code on MSVC builds
- add some files for amd64 to msvcrtex

svn path=/trunk/; revision=52478
2011-06-26 22:57:12 +00:00
Timo Kreuzer e304414af7 [WINE]
- demote an #error to a #pragma warning for amd64 MSVC builds

svn path=/trunk/; revision=52477
2011-06-26 22:26:42 +00:00
Timo Kreuzer 5074cf8d1e [SPEC2DEF]
change the way import libs are created for MSVC. Since we don't use underscores in symbols on other architectures than x86, its not possible to create labels like "div", since it conflicts with the opcode. Therefore add a prefix and redirect all exports to the prefixed version when building an importlib

svn path=/trunk/; revision=52476
2011-06-26 22:23:08 +00:00
Timo Kreuzer b32da944f7 [CABMAN/CDMAKE]
check for _WIN32 instead of WIN32, fixes compilation with amd64 toolchain

svn path=/trunk/; revision=52475
2011-06-26 22:17:01 +00:00
Timo Kreuzer c83e44a670 [CMAKE]
Patch by Samuel Serapion:
Fix configure script and add support for CodeBlocks and Eclipse

svn path=/trunk/; revision=52474
2011-06-26 22:05:31 +00:00
Timo Kreuzer 871ee92c7b [CMAKE]
revert r52460, r52463, r52468 on behalf of Jerome
it wrongly gave name decorations to export

svn path=/trunk/; revision=52473
2011-06-26 21:29:55 +00:00
Timo Kreuzer a7f4dd2344 [FREELDR]
Fix amd64 build of setupldr as well.

svn path=/trunk/; revision=52472
2011-06-26 18:06:19 +00:00
Eric Kohl 39384c9a3f [REGEDIT]
Add ability to parse and display REG_RESOURCE_LIST values.

svn path=/trunk/; revision=52471
2011-06-26 16:19:33 +00:00
Eric Kohl 9a3e62efb6 [NDK]
Add missing interrupt resource descriptor flags.

svn path=/trunk/; revision=52470
2011-06-26 11:29:17 +00:00
Timo Kreuzer 62b74e4696 [FREELDR]
Fix amd64 build. It doesn't work yet

svn path=/trunk/; revision=52469
2011-06-26 10:49:22 +00:00
Jérôme Gardou 76c6c9e3e4 [CMAKE]
- add back add_importlib_target for def files, w32kdll relies on it.

svn path=/trunk/; revision=52468
2011-06-26 10:21:57 +00:00
Rafal Harabien 28157f42c1 [MSTSC][USETUP]
- Fix MSVC warnings
- Remove duplicated code in usetup progress bar

svn path=/trunk/; revision=52467
2011-06-26 10:08:31 +00:00
Timo Kreuzer 6641b0995e [PSDK]
Samuel Serapion:
Fix duplicate definitions on amd64 build

svn path=/trunk/; revision=52466
2011-06-26 09:37:59 +00:00
Timo Kreuzer f8c949daa5 [CMAKE]
Patch by Samuel Serapion:
Make configure.cmd check for presence of cmake and detect jom

svn path=/trunk/; revision=52465
2011-06-26 09:19:24 +00:00
Alex Ionescu 2672d225f9 [WINE/INCLUDE]: Fix build on OS X, which uses a slightly different version of fnctl.h that doesn't use HAVE_XXX but just _XXX.
svn path=/trunk/; revision=52464
2011-06-25 19:25:54 +00:00
Jérôme Gardou b9288855a2 [CMAKE]
- fix typo

svn path=/trunk/; revision=52463
2011-06-25 19:16:08 +00:00
Timo Kreuzer cfb6386b45 [SETUPLDR]
Display a message box and bail out if loading imported dlls failed

svn path=/trunk/; revision=52462
2011-06-25 18:52:38 +00:00
Amine Khaldi 579adc153a [CMAKE]
* Add rapps, ftp and dwnl to msvc build.

svn path=/trunk/; revision=52461
2011-06-25 18:48:38 +00:00
Jérôme Gardou 01a4049405 [CMAKE]
- unify spec2def and add_importlib_target, thanks to cmake_parse_arguments.
  - also generate stub files only when necessary.
  - better precompiled header support, commented out as it wasn't tested on any other machine than mine, and it depends on cmake features which don't exist yet.
For now only for gcc toolchain

svn path=/trunk/; revision=52460
2011-06-25 18:34:03 +00:00
Timo Kreuzer efd8902582 [BOOTSECTOR]
Fix a typo in a comment

svn path=/trunk/; revision=52459
2011-06-25 17:58:47 +00:00
Timo Kreuzer 54d5d9924b [CMAKE]
Remove _DEBUG definition.

svn path=/trunk/; revision=52458
2011-06-25 17:56:17 +00:00
Timo Kreuzer 395f4ffea6 [ASM]
- Fix Zw-systemcall stubs on MSVC
- Fix systemcall return stubs on MSVC
-> MSVC kernel boots and usetup works!
Didn't test anymore, because there is a massive atapi debug spam

svn path=/trunk/; revision=52457
2011-06-25 16:48:44 +00:00
Rafal Harabien 4504d4c686 [MSPAINT]
- Select selection tool after pasting from clipboard

svn path=/trunk/; revision=52456
2011-06-25 14:42:24 +00:00
Rafal Harabien fa74282a41 [MSPAINT]
- Fix MSVC warnings

svn path=/trunk/; revision=52455
2011-06-25 14:34:52 +00:00
Sylvain Petreolle b55c5995a4 [OLE32]
Fix comcat build, DllGetClassObject has to remain public.

svn path=/trunk/; revision=52454
2011-06-25 14:30:54 +00:00
Rafal Harabien 352fd948b1 [VIDEOPRT]
- Fix MSVC warnings

svn path=/trunk/; revision=52453
2011-06-25 14:10:19 +00:00
Timo Kreuzer 6d9cf47ce2 [FEELDR]
- Don't try to load referenced dlls in any other dir than system32. A second attempt would fail on the first dll that was already loaded and the function would bail out before any missing dll could be loaded. This worked only by chance on gcc builds, because the 1st import was bootvid, which was always loaded in the 2nd attempt from system32, and the function failed after that, since hal and kdcom were already loaded.

svn path=/trunk/; revision=52452
2011-06-25 13:52:47 +00:00