Alexandre Julliard
fedc411743
Moved the functionality of starting Win16 and DOS programs from the
...
common process startup into a separate winevdm application.
2003-04-27 00:47:58 +00:00
Alexandre Julliard
22ae4ff608
Set SA_NOCLDWAIT in the SIGCHLD sigaction to avoid zombies.
2003-04-20 02:48:06 +00:00
Alexandre Julliard
a058584d4c
Explicitly call VERSION_Init with the main exe file name, so that
...
application settings work for Win16 and DOS apps too.
2003-04-20 02:46:44 +00:00
Yorick Hardy
ea3342de42
errno should not be used as a variable name.
2003-04-13 01:04:25 +00:00
Alexandre Julliard
088bcf9ca5
Implemented NtQueueApcThread, and changed the server APC interface to
...
always take 3 parameters.
Implemented a number of other ntdll thread functions, and use them
from the kernel ones.
2003-04-04 22:26:34 +00:00
Alexandre Julliard
ff152b650f
Added hack to patch the glibc errno_location to jump to our function,
...
based on a patch by Marcus Meissner.
2003-04-03 03:50:56 +00:00
Alexandre Julliard
6a9cea957a
Added --with-nptl configure option and necessary changes to support
...
running on top of NPTL threads.
2003-04-03 02:54:54 +00:00
Alexandre Julliard
3200c02b9c
Don't bother checking for the errno function, simply define all of
...
them.
2003-04-02 23:27:46 +00:00
Alexandre Julliard
462172a3d6
Added abs_time_t structure to the server protocol, and added a dump
...
routine for it that displays the relative timeout to make timeout
values easier to interpret.
2003-04-02 22:48:59 +00:00
Alexandre Julliard
6f7a204466
Added SYSDEPS_GetUnixTid to return the Unix thread id to send to the
...
server.
2003-04-01 04:39:35 +00:00
Alexandre Julliard
fbef57c0ce
Moved WaitForMultipleObjects to ntdll (based on a patch by Eric
...
Pouech).
Added NTDLL_get_server_timeout function to compute ntdll-style
timeouts and adapted the timer code to use it.
2003-03-31 01:37:04 +00:00
Alexandre Julliard
91deba1d5e
Clear the entire request, not just the end, in case it contains
...
padding bytes.
2003-03-30 03:08:52 +00:00
Alexandre Julliard
5537dbbf40
Replaced WINE_CHECK_STRUCT_MEMBER autoconf macro by the standard
...
AC_CHECK_MEMBERS. Added check for si_fd in siginfo_t.
2003-03-28 00:36:12 +00:00
Alexandre Julliard
b59bf98b93
Moved errno_location support to sysdeps.c.
2003-03-26 01:33:48 +00:00
Alexandre Julliard
78675ba234
Store %gs in the TEB on every call to 16-bit code, and don't restore
...
it from the TEB for signals that did not happen in 16-bit code.
2003-03-25 00:36:16 +00:00
Alexandre Julliard
a8497bd037
Make a distinction between the thread Unix pid and the process wide
...
pid for platforms that use both.
2003-03-22 21:00:09 +00:00
Alexandre Julliard
6a26e3f7ac
Split signal blocking code out of SIGNAL_Reset into SIGNAL_Block.
...
Added SIGTERM handler.
2003-03-21 23:45:26 +00:00
Gerald Pfeifer
69497b3c97
Forward-declare struct _pthread_cleanup_buffer, as it is
...
Linux-specific and not available in the headers of other systems.
2003-03-21 00:33:33 +00:00
Eric Pouech
f94c8b85b9
Move some fields (refCount, tls_index and module) from WINE_MODREF to
...
LDR_MODULE.
2003-03-20 22:05:26 +00:00
Alexandre Julliard
2ee8b5bb13
Replaced mkstemp by mkstemps from libiberty.
...
Removed a couple of unnecessary portability functions.
2003-03-20 21:07:49 +00:00
Alexandre Julliard
b5a495c77a
Init signals before calling CLIENT_InitThread since we can receive a
...
signal there.
2003-03-15 00:06:35 +00:00
Alexandre Julliard
d04ccb8ebe
Use SIGUSR1 instead of SIGSTOP to suspend threads.
2003-03-04 22:18:43 +00:00
Eric Pouech
7d6096480a
- added Ldr* information to include/winternl.h
...
- exported a few functions/global vars from module.h while we move
code from loader/module.c to dlls/ntdll/loader.c
- implemented LdrShutdownProcess, LdrShutdownThread and
LdrDisableThreadCalloutsForDll (and made use of them)
2003-03-04 04:36:56 +00:00
Alexandre Julliard
551797bc57
Properly save/restore %gs register across 16-bit calls.
2003-02-27 21:11:13 +00:00
Alexandre Julliard
e5cef3b0fb
Moved CreateThread16 to kernel, and made it use WOWCallback16.
2003-02-27 01:57:16 +00:00
Alexandre Julliard
ce13153821
Moved LDT selector allocation routines to libwine.
...
Added support for correct locking of all LDT operations.
Added separate functions to manipulate the %fs selector, which allows
using a global GDT selector on recent Linux kernels.
2003-02-26 20:34:45 +00:00
Eric Pouech
12b7c26e0d
Only print 4 hexdigits for tid.
2003-02-26 04:36:54 +00:00
Alexandre Julliard
77c8b1dc2b
Pass the pid of the new process in the new_process request, don't
...
depend on the parent pid to find the startup info.
2003-02-24 20:51:50 +00:00
Warren Baird
001fa26255
Increase size of insufficiently big stack allocated buffer used for
...
error messages in PROCESS_InitWine.
2003-02-19 03:42:38 +00:00
Alexandre Julliard
ac13d2f47e
Print thread ids in traces with only 4 digits now that they are small
...
integers.
2003-02-18 23:29:47 +00:00
Gerald Pfeifer
e63f4abffb
Add missing casts related to pthread_t. Tweak comments.
2003-01-30 00:17:30 +00:00
Marcus Meissner
f63e5b646a
Remove errno.h from files that do not need it.
2003-01-23 22:51:04 +00:00
Dimitrie O. Paun
297f3d898d
Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them.
2003-01-07 20:36:20 +00:00
Alexandre Julliard
9e8e5ff71d
Implemented the Fiber* functions (with the help of Huw Davies).
2002-12-17 21:06:25 +00:00
Patrik Stridvall
75dee506ae
Replace 0x%p with %p.
2002-12-05 19:56:15 +00:00
Uwe Bonnes
dab0cf3135
Use COMSPEC command interpreter to run .bat files.
2002-12-03 23:28:15 +00:00
Alexandre Julliard
5926cea79f
Partially implemented kernel/user times in GetThreadTimes (based on a
...
patch by Ryan Cumming).
2002-11-30 01:56:56 +00:00
Patrik Stridvall
6caeb721e3
Fixed pthreads on FreeBSD (based on patch by Alexandre Julliard).
2002-11-25 21:12:26 +00:00
Steve Lustbader
a2e1222486
Stubs for CreateTimerQueue and DeleteTimerQueueEx.
2002-11-25 20:51:31 +00:00
Ryan Cumming
24f4eced42
Partially implement GetThreadTimes.
2002-11-25 01:33:38 +00:00
Andrew John Hughes
ed800c69c8
Build ntdll with -DSTRICT.
2002-11-21 03:45:01 +00:00
Marcus Meissner
c19fef417b
Fixed strict aliasing issue in __pthread_once and SetWaitableTimer.
2002-11-18 23:11:37 +00:00
Alexandre Julliard
d31c8eca74
Fixed sparc check.
2002-11-12 01:04:04 +00:00
Marcus Meissner
1ab0ee300b
Add case for non sparc / non i386 SYSDEPS_CallOnStack.
2002-11-11 19:54:41 +00:00
Juraj Hercek
1cae4793da
Implemented SYSDEPS_CallOnStack for sparcs.
2002-11-06 22:05:59 +00:00
Steven Edwards
45e56818f7
Mingw porting fix.
2002-10-31 03:41:56 +00:00
Alexandre Julliard
26fd740d9c
Avoid reference to glibc internal __libc_fork function.
2002-10-22 00:44:24 +00:00
Alexandre Julliard
7aee90762a
Merged wine_call_to_16_long and wine_call_to_16_short into a single
...
function.
2002-10-18 00:29:32 +00:00
Alexandre Julliard
43701b945d
Build a default command-line if the one we received is an empty
...
string.
2002-10-17 18:24:36 +00:00
Alexandre Julliard
996baf6379
Transmit the Windows PATH to child processes using the WINEPATH
...
variable.
2002-10-09 18:35:01 +00:00
Steve Lustbader
5795143368
Provide stubs for Create/DeleteTimerQueueTimer.
2002-10-07 21:46:02 +00:00
Alexandre Julliard
54f228733a
Added process_id_t and thread_it_t types to the server interface
...
instead of using void*, and removed a number of type casts.
2002-10-03 19:54:57 +00:00
Patrik Stridvall
e29345c3bb
Added a GNU C implementation of some of the DECLSPEC_ macros and used
...
them wherever possible.
2002-10-01 18:07:37 +00:00
Dmitry Timoshkov
472d016859
Correct SIZE_T size according to MS SDK.
...
Change some types to SIZE_T according to MS SDK definitions.
2002-09-21 01:21:00 +00:00
Alexandre Julliard
ac7b9d3797
Implemented NtDuplicateObject.
2002-09-16 19:32:50 +00:00
Patrik Stridvall
9c1de6de30
Moved all the content of the DDK files ntdef.h and ntddk.h to
...
winternl.h.
2002-09-12 22:07:02 +00:00
Patrik Stridvall
9aab47ed24
MSVC compatibility fixes.
2002-08-28 23:42:34 +00:00
Alexandre Julliard
dba83c8bfc
Added wine_get_user_name function and got rid of some of the getpwuid
...
portability stuff.
More portable printf formats for 64-bit types.
2002-08-27 18:30:53 +00:00
Dmitry Timoshkov
d75aed2c92
Convert most of the file APIs to Unicode.
2002-08-27 01:13:58 +00:00
Patrik Stridvall
57bf45067a
MSVC compatibility fixes.
2002-08-26 21:53:24 +00:00
Marcus Meissner
2456149860
Use r2 instead of r13 for TLS, since r13 is used in the ELF32 PPC
...
ABI.
2002-08-20 00:00:35 +00:00
Patrik Stridvall
d016f819f1
Added include protection for unistd.h and sys/time.h.
2002-08-17 00:43:16 +00:00
Alexandre Julliard
66e3183099
Fixed GetLocaleInfoW to handle Unicode properly and completed
...
implementation.
Update win.ini and registry on startup when language changed.
More logical priority order for locale environment variables.
Implemented SetLocaleInfoW.
Moved some locale functions to kernel32.dll.
2002-08-15 23:18:47 +00:00
Alexandre Julliard
befbb0e441
Make behavior of builtin executables closer to that of builtin dlls.
...
Fixed case sensitivity of builtin executables.
2002-08-14 21:12:58 +00:00
Alexandre Julliard
714156d7ab
Fixed race condition when a thread gets killed right after starting.
2002-08-13 18:24:27 +00:00
Alexandre Julliard
a5dea216cc
Implemented the RtlImage* functions, and use them to replace the
...
PE_HEADER macro.
2002-08-09 19:57:38 +00:00
Patrik Stridvall
4325554aef
Fixed some issues found by winapi_check.
2002-08-09 01:07:29 +00:00
Alexandre Julliard
c1dec29304
Authors: Josh DuBois <duboisj@codeweavers.com>, Marcus Meissner <meissner@suse.de>
...
PowerPC locked exchange functions merged from old ppc patch.
NtCurrentTeb handling for PowerPC (using gpr 13).
2002-08-06 23:51:25 +00:00
Alexandre Julliard
7375597fe2
Fixed some handle type mismatches and added a few casts in prevision
...
of void* handles.
2002-07-31 19:26:03 +00:00
Alexandre Julliard
99d8b7f755
Moved initial AllocConsole call to kernel init (based on a patch by
...
Eric Pouech).
2002-07-31 19:19:36 +00:00
Alexandre Julliard
84dc1390ca
Remove .so extension from main module file name after loading it so
...
that GetModuleFileName returns the right thing.
2002-07-31 17:53:42 +00:00
Alexandre Julliard
267ca68253
Fixed HANDLE<->HFILE conversions, since they will be different types
...
when handles are void*.
2002-07-31 17:20:00 +00:00
Alexandre Julliard
75ce72ea44
Fixed handling of .com binaries (thanks to Chris Morgan).
2002-07-23 21:02:31 +00:00
Alexandre Julliard
65c6d38581
Replace all uses of PREFIX and @function by the __ASM_NAME and
...
__ASM_FUNC macros.
2002-07-22 20:47:11 +00:00
Alexandre Julliard
3c5eba06d5
Fixed .com binary support.
2002-07-22 20:35:11 +00:00
Alexandre Julliard
4144b5b8fc
Create the server directory and socket file in /tmp.
...
Use fcntl file locking to ensure exclusion on the server socket and to
better recover from crashes.
Flush the registry before closing the socket to avoid timeouts on the
client side.
Moved get_config_dir functionality to libwine.
2002-06-20 23:21:27 +00:00
François Gouget
103295c769
Reset signals to SIG_DFL before starting a child process.
2002-06-13 21:57:38 +00:00
Patrik Stridvall
296c5a6b97
Fixed some issues found by winapi_check.
2002-06-04 22:12:50 +00:00
Alexandre Julliard
a061b84ee1
Moved specification of relay and snoop include/exclude functions to
...
the config file.
Changed spy config a bit to follow the same scheme.
Moved debug option parsing routine into libwine.
2002-06-04 17:48:41 +00:00
Vincent Béron
9a62491660
Removed trailing whitespace.
2002-05-31 23:06:46 +00:00
Alexandre Julliard
be367c7270
Added wine_server_fd_to_handle to replace FILE_DupUnixHandle.
2002-05-30 20:40:02 +00:00
Alexandre Julliard
5188574984
Renamed handle_t to obj_handle_t to avoid conflict with rpcdce.h.
2002-05-30 20:12:58 +00:00
Alexandre Julliard
9d80215254
A few optimizations in the process startup requests now that Winelib
...
apps are started differently from Unix ones.
2002-05-24 21:20:27 +00:00
Alexandre Julliard
55e845d11b
Removed most inclusions of options.h.
...
Removed a few no longer used PROFILE_* functions.
2002-05-23 19:40:18 +00:00
Alexandre Julliard
3536316a31
New loading scheme for Winelib apps, makes them behave like builtin
...
dlls and takes load order into account. Install them in dlldir.
Improved MODULE_GetBinaryType to recognize ELF binaries.
Added a wrapper script to setup the environment when running directly
from inside the source tree.
2002-05-22 21:32:49 +00:00
Alexandre Julliard
cc2ee7636d
Renamed Winelib apps to .exe.so to follow the dll naming convention.
2002-05-21 19:42:29 +00:00
Alexandre Julliard
6044307c3a
A few fixes for mingw cross-compilation.
2002-05-17 03:31:08 +00:00
Alexandre Julliard
702b158e70
Export global argc/argv variables from libwine and remove the
...
__wine_get_main_args functions from ntdll.
2002-05-16 23:16:01 +00:00
Alexandre Julliard
59008670be
Moved the selector access functions out of winnt.h into libwine.
2002-05-16 20:32:16 +00:00
Alexandre Julliard
9bb05fc48e
Specify the complete source file list for a dll inside the main
...
makefile and get rid of the subdirectories makefiles.
2002-05-14 18:36:54 +00:00
Patrik Stridvall
3751ff045c
MS C related changes.
2002-05-04 18:37:08 +00:00
Alexandre Julliard
aa04a6f728
Don't prepend '--' to the command line when starting a Windows binary.
2002-04-29 19:34:06 +00:00
Patrik Stridvall
441a7dcf7e
Microsoft C related changes.
2002-04-29 18:37:36 +00:00
Alexandre Julliard
5769d1de00
Better support for configure detection of missing types, added check
...
for ssize_t.
Removed a couple of no longer used portability functions.
Various portability fixes in port.h.
2002-04-26 19:05:15 +00:00
Alexandre Julliard
894b188fcf
Moved __ASM_GLOBAL_FUNC macros and interlocked functions to port.[ch]
2002-04-25 21:40:56 +00:00
Alexandre Julliard
874d671e22
Fixed stupid typo in previous patch.
2002-04-15 15:38:10 +00:00
Alexandre Julliard
eac3662bc7
Fixed inheriting command-line options from parent process.
2002-04-14 19:36:02 +00:00
Dmitry Timoshkov
1c2fa97e1b
Create new console only if the process is a console application.
2002-04-09 01:38:41 +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
Geoffrey Hausheer
03f4e22327
Added test for thread functions.
2002-04-02 19:37:15 +00:00