[DDK/XDK/NTOSKRNL/DRIVERS]
Fix incompatible definition of a number of NTOSKRNL data imports. These imports are declared in MS DDK in a way that is usually not how you would declare data imports. The proper way of doing it is using _DECLSPEC_INTRIN_TYPE(dllimport) or in this case NTKERNELAPI, which will cause the compiler to directly dereference the __imp__FooBar symbol. MS has declared some of these variables directly as pointers without using dllimport. This works with MS DDK, since it's import libraries contain aliases (like _FooBar) to the import symbols (__imp__FooBar). Neither MS LINK nor DLLTOOL create these aliases in the import libs, which is good, since hacks like these are dangerous. To make the original declarations work without using macros (which can conflict with other things, like for example the KdDebuggerEnabled member in KUSER_SHARED_DATA) these aliases have to be generated differently. Luckily both MSVC and GCC support a pragma that does exactly this. Fix the incompatible use in our drivers and the broen(!) use of KdDebuggerEnabled in kdcom (which was writing a PBOOLEAN value (FALSE == 0 == NULL, so no warning) into the location that is really a BOOLEAN, possibly overwriting other data. Finally get rid of a number of hacks in ntoskrnl, where prefixed versions were used to not conflict with the DDK definitions.

git-svn-id: svn://svn.reactos.org/reactos/trunk@63247 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTVDM]
Improve int32 callback stub (and sync int32.c too).

git-svn-id: svn://svn.reactos.org/reactos/trunk@63248 97493ccd-5924-5043-b1f5-66cb403b36ce
[CMD]
- Fix mismatched allocation/free. Spotted by Samuel & cppcheck
CORE-8207 #resolve

git-svn-id: svn://svn.reactos.org/reactos/trunk@63249 97493ccd-5924-5043-b1f5-66cb403b36ce
[ICMP]
- Fix socket leak. Spotted by Samuel & cppcheck
Note: Wine has this in iphlpapi these days. Should probably sync.
CORE-8208 #resolve

git-svn-id: svn://svn.reactos.org/reactos/trunk@63250 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Update tmpfile().
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63251 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Reduce difference to Wine. No code changes.
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63252 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Update feof().
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63253 97493ccd-5924-5043-b1f5-66cb403b36ce
[FORMATTING]
Fix indentation and coding style. No code changes!

git-svn-id: svn://svn.reactos.org/reactos/trunk@63254 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Update ferror().
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63255 97493ccd-5924-5043-b1f5-66cb403b36ce
[SERVMAN][EVENTVWR]
- add czech translations

git-svn-id: svn://svn.reactos.org/reactos/trunk@63256 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Update fwrite().
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63257 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Update ioinfo structure.
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63258 97493ccd-5924-5043-b1f5-66cb403b36ce
[FORMATTING]
Fix indentation and coding style. No code changes!

git-svn-id: svn://svn.reactos.org/reactos/trunk@63259 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Update _setmode().
* Fixes some msvcrt tests.
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63260 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Rename alloc_fd_from() to set_fd() and update it.
* Fixes some msvcrt tests.
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63261 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Update get_flags().
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63262 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* _set_errno() returns an errno_t.
* error => value
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63263 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Update _write().
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63264 97493ccd-5924-5043-b1f5-66cb403b36ce
[shell32]
partial SHELL_FindExecutable sync to wine

git-svn-id: svn://svn.reactos.org/reactos/trunk@63265 97493ccd-5924-5043-b1f5-66cb403b36ce
[CRT]
* Update _wsopen_s().
* Fixes some msvcrt tests.
CORE-8080

git-svn-id: svn://svn.reactos.org/reactos/trunk@63266 97493ccd-5924-5043-b1f5-66cb403b36ce