Alexandre Julliard
a8569bf7e0
libwine: Added a couple of missing memory constraints in LDT syscalls.
2006-04-18 16:47:26 +02:00
Alexandre Julliard
e814b24e6d
libwine: Only try to mmap the exact address when reserving memory.
...
This should avoid some extra work on platforms that need the
try_mmap_fixed function.
2006-04-13 21:55:33 +02:00
Alexandre Julliard
b7d5b31cf1
libwine: Reorganize the mmap code a bit to avoid some #ifdefs.
2006-04-13 21:53:41 +02:00
Mike McCormack
f7679b4594
libwine: Fix a memory leak.
2006-04-07 11:45:53 +02:00
Alexandre Julliard
4db364cb77
libwine: Added magic handling of dll path when running in build dir.
...
This should ensure that we do the right thing in the build dir even if
WINEDLLPATH isn't set.
2006-03-17 13:08:08 +01:00
Alexandre Julliard
5ff1004c4d
libwine: Export wine_get_build_dir.
2006-03-16 17:36:19 +01:00
Alexandre Julliard
bf566139d7
libwine: Added support for executing wine binaries out of the build dir.
2006-03-16 17:35:32 +01:00
Alexandre Julliard
77b3b92eb2
libwine: Added detection for Wine being run out of the build directory.
2006-03-16 17:35:14 +01:00
Alexandre Julliard
2f026d1694
libwine: Export a function to retrieve the data directory (based on a
...
patch by Dmitry Timoshkov).
2006-03-06 18:50:15 +01:00
Alexandre Julliard
1269f43c5a
libwine: Add the runtime library path to the front of the dll paths list.
2006-02-17 17:39:44 +01:00
Alexandre Julliard
e95a2c2111
libwine: Set the default bindir and dlldir from argv0 if dladdr is not available.
...
Added dependency on $(RELPATH).
2006-02-17 14:08:19 +01:00
Alexandre Julliard
8b5e11c341
libwine: Compute relative paths for bin and dll directories at compile time.
2006-02-17 11:43:10 +01:00
Alexandre Julliard
9dffd134dd
libwine: Try the current load path in priority before the
...
WINELOADER/WINESERVER environment variables in wine_exec_wine_binary.
2006-02-16 20:26:55 +01:00
Alexandre Julliard
767ad69a45
libwine: Don't rely on argv[0] in wine_exec_wine_binary if we can get
...
the directory from the library itself.
Only try the hardcoded BINDIR if everything else failed.
2006-02-16 20:06:20 +01:00
Alexandre Julliard
ca6fd0d4ec
libwine: Only use the library directory if it's an absolute path.
2006-02-16 20:03:06 +01:00
Alexandre Julliard
aed49d439e
libwine: New naming scheme for 16-bit builtin dlls.
...
Stop using symlinks for 16-bit dlls to make sure they don't get loaded
by mistake when looking for a 32-bit dll.
2006-02-16 13:44:38 +01:00
Emmanuel Maillard
aaae6606cb
loader: Reserve memory area on Darwin (based on Steve Zellers patch).
2006-02-15 13:52:02 +01:00
Mike Frysinger
5392844392
Add support for 'make install DESTDIR'.
2006-02-14 13:51:38 +01:00
Alexandre Julliard
0b34fb3656
libwine: Use dladdr if supported to get the run-time path of libwine.so
...
and define the default dll and bin directories relative to it.
2006-02-11 22:38:44 +01:00
Robert Millan
55b74483de
configure: For sys/mount.h, sys/statfs.h and sys/vfs.h, always include
...
them if present.
2006-02-06 21:53:27 +01:00
Eric Pouech
3c0e5eed83
A few fixes for pointer qualifiers (const, volatile) warnings.
2006-02-06 13:10:18 +01:00
Robert Millan
8800352477
Enable for GNU/kFreeBSD the same kernel-specific interface/parameter
...
that is used with FreeBSD.
2006-02-05 13:06:50 +01:00
Alexandre Julliard
65424dc3a8
libwine: Added wine_dll_enum_load_path function to allow querying the dll path.
2006-02-04 17:02:05 +01:00
Eric Pouech
e0cffe355f
Fix a couple of bugs spotted by valgrind.
2006-01-27 16:18:05 +01:00
Alexandre Julliard
53496f83e7
Fixed a couple of warnings on MacOS.
2006-01-23 16:48:26 +01:00
Alexandre Julliard
4d3996d515
libwine: Added LDT support for MacOS/x86.
2006-01-23 12:02:58 +01:00
Alexandre Julliard
1e96455094
Remove YY_NO defines that cause warnings.
2006-01-05 12:20:05 +01:00
Alexandre Julliard
88991e2a4e
Support building flex files without debug support.
2006-01-03 15:11:46 +01:00
Alexandre Julliard
0ae2c69c7a
Added some flex options to avoid compiler warnings.
...
Moved options from the Makefile into the source.
2006-01-03 12:16:05 +01:00
Alexandre Julliard
ec34a66612
Ignore symlink files too (needed for git).
2005-11-26 13:12:57 +01:00
Alexandre Julliard
0ec7e1a591
Renamed all .cvsignore files to .gitignore.
2005-11-26 13:10:33 +01:00
Alexandre Julliard
cc01e8ff05
Preserve 16-byte stack alignment in the various assembly
...
functions. Needed for MacOSX.
2005-11-23 19:55:06 +01:00
Alexandre Julliard
970fcb1bf9
Updated codepage tables to Unicode version 4.1.
2005-11-18 12:15:04 +00:00
Alexandre Julliard
3d086ca2b7
Only update modified files.
2005-11-17 11:43:10 +00:00
Robert Shearman
04aa6a88b4
Remove some incompatibilities in the wctype table by updating the
...
space, blank and cntrl exceptions and fixing the type given to
characters in the "Zl" and "Zp" classes.
2005-11-17 11:07:04 +00:00
Alexandre Julliard
2058f54300
Added a __wine_dbg_set_channel_flags function to allow changing flags
...
from inside the code.
2005-10-18 10:49:20 +00:00
Alexandre Julliard
36c3199782
Default search path for an include file should be based on the path of
...
the parent source file, not the current directory.
2005-10-10 18:06:50 +00:00
Alexandre Julliard
784c94516b
Export the get_channel_flags function avoid warnings when passing a
...
NULL format to wine_dbg_log.
Removed a few no longer used functions.
2005-09-29 11:16:52 +00:00
Alexandre Julliard
cd91bc61be
Now that we are requiring bison anyway, make the .tab.c file use the
...
same base name as the .y file, so that we can generate correct
dependencies in all cases.
2005-09-28 18:17:08 +00:00
Alexandre Julliard
cbc38965c0
New scheme for keeping track of debug channels that doesn't require
...
maintaining a list of all loaded dlls.
2005-09-28 15:21:48 +00:00
Alexandre Julliard
a443761b8d
Export the temp buffer functionality in the debug functions interface
...
to allow sharing more code between libwine and ntdll.
2005-09-26 16:45:25 +00:00
Alexandre Julliard
43c6396e94
Use int instead of long in interlocked_* functions for 64-bit
...
compatibility.
2005-09-26 13:51:58 +00:00
Alexandre Julliard
75c27e17b6
Defined a proper structure for debug channels.
...
Also put all the function pointers inside a structure and added
__wine_dbg_set_functions to change them instead of exporting the
pointers directly.
2005-09-23 10:52:07 +00:00
Alexandre Julliard
86ab2c9693
Removed sysi86 prototype that is causing conflicts.
2005-09-19 14:45:15 +00:00
Alexandre Julliard
80083b18f8
Store RVAs instead of pointers wherever possible in the generated NT
...
header and directories.
2005-09-17 14:39:51 +00:00
Alexandre Julliard
0799e8403b
Use the NT descriptor address as start of the data section, since the
...
BaseOfData field isn't present in Win64.
2005-09-15 15:09:12 +00:00
Alexandre Julliard
7e4c88c6d9
Avoid some warnings on 64-bit platforms.
2005-09-13 11:07:14 +00:00
Alexandre Julliard
6153b1f927
Only add the default dlldir to the search path if that's where ntdll
...
is found.
2005-09-12 11:20:31 +00:00
Alexandre Julliard
ee7d27a7bf
Implemented wine_switch_to_stack for x86_64.
2005-09-08 19:16:12 +00:00
Alexandre Julliard
883d3c52d3
Use explicit function pointers for pthread support instead of relying
...
on ELF symbol overriding.
2005-09-03 15:11:29 +00:00
Alexandre Julliard
c486949985
Implemented wine_ldt_alloc_fs and wine_ldt_init_fs for Mac OS.
2005-08-29 10:56:54 +00:00
Alexandre Julliard
87b297ebc2
Use the correct ordinal flag for Win64 support.
2005-08-29 09:49:47 +00:00
Mike McCormack
f732617397
Fix a gcc 4.0 -Wpointer-sign warning.
2005-08-03 14:54:38 +00:00
Mike McCormack
2abbb9093d
gcc 4.0 warning fix.
2005-08-01 09:21:03 +00:00
Alexandre Julliard
385a199fef
Faster implementation of wcstombs that handles overlapping buffers
...
properly (based on a patch by Dmitry Timoshkov).
2005-07-22 09:23:16 +00:00
Kevin Koltzau
da6f8fac77
Add x86_64 interlocked functions.
2005-07-18 09:11:52 +00:00
Marcus Meissner
2d7e976eed
Fixed signedness warnings.
2005-07-10 17:45:53 +00:00
Alexandre Julliard
84f9d13664
Added error message for missing LDT support on i386.
2005-07-03 11:26:13 +00:00
Eric Pouech
809edabfbe
Const correctness fixes.
2005-06-27 09:53:46 +00:00
Wolfgang Thaller
4c5f9c091b
Implement try_mmap_fixed for Darwin.
2005-06-20 11:43:47 +00:00
Mike McCormack
65ad7da1f7
Fix some declaration and write string warnings.
2005-06-16 10:45:25 +00:00
Robert Lunnon
d7272dedc7
Add RTLD_FIRST flag to dlopen calls.
2005-05-10 15:13:20 +00:00
Robert Lunnon
c0cb4d352b
Implement futimes for Solaris using futimesat.
2005-05-07 14:53:38 +00:00
Alexandre Julliard
240d4ee9e1
Remove a few more instances of strncpy.
2005-04-25 15:51:45 +00:00
Francois Gouget
93416cdaf7
Assorted spelling fixes.
2005-03-23 13:15:18 +00:00
Ge van Geldorp
73227aa568
Treat already preprocessed code just like normal #include'ed code.
2005-02-25 16:19:35 +00:00
Oleh R. Nykyforchyn
62b94d89bd
Ukrainian codepage 21866 added and respective files corrected. Two
...
keyboard layouts (for Ukrainian and Russian) added.
2005-01-19 20:59:31 +00:00
Rémi Assailly
88d049d102
Added missing declarations in some headers.
2005-01-11 10:46:58 +00:00
Jacek Caban
392195438d
- Fixed infinite loop bug.
...
- Code cleanup.
2005-01-09 18:01:16 +00:00
Jacek Caban
846a71dc20
Added initializing pp_status.input at begin of wpp_parse.
2005-01-09 16:53:47 +00:00
Alexandre Julliard
6c1494b19c
Fix long standing regression in the building of the server directory
...
name (found by Nigel Rowe).
2004-12-20 18:55:18 +00:00
Gerald Pfeifer
e5f6637eec
Make us work on FreeBSD again by working around their different mmap()
...
implementation.
2004-12-15 10:51:51 +00:00
Eric Pouech
294835a839
Another round of const correctness fixes.
2004-12-06 20:43:55 +00:00
Peter Chapman
505dfdefb5
Fix up several inline assembler blocks so that they produce correct
...
code with the -fomit-frame-pointer gcc flag.
2004-12-02 18:19:25 +00:00
Eric Pouech
0a258964c2
Const correctness fixes.
2004-11-30 21:38:57 +00:00
Eric Frias
7933014d01
Export wine_pthread_get_current_teb.
2004-11-22 19:51:46 +00:00
Eric Frias
575042e718
Fix Sparc assembly code in wine_switch_to_stack.
2004-11-22 19:50:38 +00:00
Gerald Pfeifer
ac815f5a6a
Disable memory reservation code on FreeBSD, where it just doesn't
...
work.
2004-11-04 04:52:48 +00:00
Hans Leidekker
c3de6ef38f
Add ffs() to porting library, needed by MinGW.
2004-10-19 23:53:26 +00:00
Vincent Béron
2c1b35dd17
Add some more Alpha asm code and Alpha-specific parts.
2004-10-18 21:27:52 +00:00
Vincent Béron
e5fdc454a4
Implement interlocked* and wine_switch_to_stack for Alpha.
2004-10-11 19:50:52 +00:00
Jeremy White
f9d6fa9ef4
Need to include sys/time.h.
2004-10-07 17:36:17 +00:00
Alexandre Julliard
efb8be7e82
Added a fallback implementation of futimes.
2004-10-07 04:25:05 +00:00
Steven Edwards
e7c3ab1874
Check for getuid and avoid the use of it in libwine if we don't have
...
it.
2004-10-04 20:45:49 +00:00
Alexandre Julliard
531dbbd8e7
Base the server directory name on the uid, not the username.
2004-09-27 20:50:37 +00:00
Hans Leidekker
719a789792
Fix signed/unsigned comparison warnings.
2004-09-22 02:46:38 +00:00
Mike McCormack
d45e12a966
Fill in the MZ header in builtin PE DLLs.
2004-09-03 17:28:39 +00:00
Emmanuel Maillard
b46202261b
Define -install_name for dynamics libraries to prevent usage of
...
DYLD_LIBRARY_PATH.
2004-08-12 20:02:11 +00:00
Alexandre Julliard
d0e5b8e2ee
Reserve the DOS area in mmap_init if it wasn't already done by the
...
preloader.
2004-07-24 02:30:09 +00:00
Emmanuel Maillard
46718f8720
Set segment address of wine executable and libwine.dylib on Darwin.
2004-07-22 19:48:41 +00:00
Alexandre Julliard
c3193925d8
Add the preloader itself as argv[0] and remove it again before running
...
the real loader, this way the ps output makes more sense.
2004-06-15 20:31:06 +00:00
Alexandre Julliard
9af2bd4803
Yet another fix for the MacOS X environ brain damage.
2004-06-14 17:07:30 +00:00
Alexandre Julliard
7d2f5a7b15
Avoid zero size allocations.
2004-06-04 01:01:17 +00:00
Alexandre Julliard
fa3544bbdf
Check for existing reserved areas in mmap_init to avoid doing
...
duplicate work.
2004-06-03 00:44:50 +00:00
Christian Costa
4b588d132d
Fixed preloader_exec.
2004-05-30 03:10:15 +00:00
Alexandre Julliard
910234eafb
Pass the environ variable from main to try to avoid Darwin's
...
_NSGetEnviron() ugliness.
2004-05-29 00:26:03 +00:00
Alexandre Julliard
b1abca8a5d
Initial version of the Wine preloader, used to reserve memory
...
areas at startup. Based on the work of Mike McCormack.
2004-05-28 20:59:22 +00:00
Alexandre Julliard
dc4d05690e
Don't rely on the reserved area list being empty in reserve_area,
...
since the preloader will need to add things to the list before
startup.
2004-05-28 03:48:09 +00:00
Kevin Koltzau
96b215ff10
Fixed last mmap issue with mingw windows build.
2004-05-27 01:55:20 +00:00
Alexandre Julliard
d3239b677f
Portability fix.
2004-05-25 18:55:20 +00:00
Alexandre Julliard
2dff1fe1e5
Moved environ definition to port.h.
2004-05-25 18:05:39 +00:00
Emmanuel Maillard
7ee8adfd39
Added environ support for Darwin.
2004-05-25 04:50:08 +00:00
Emmanuel Maillard
1a9ab88fe3
Adjust stack pointer in wine_switch_to_stack to prevent segmentation
...
fault on darwin/ppc.
2004-05-25 04:03:05 +00:00
Alexandre Julliard
94d74b5fed
Added support for managing reserved memory areas in libwine and ntdll.
...
Try to reserve everything above 0x80000000 on startup.
2004-05-25 01:29:24 +00:00
Alexandre Julliard
04869eb658
Initial support for automatically creating the ~/.wine directory on
...
startup.
2004-05-11 04:29:18 +00:00
Pierre d'Herbemont
25dd29c80b
Support Darwin versioning convention.
2004-05-01 02:41:01 +00:00
Emmanuel Maillard
2a6e89ca64
Create symlinks for .dylib libraries too.
2004-04-17 00:24:42 +00:00
Alexandre Julliard
e77c9be0dc
Added support for fstatvfs.
2004-04-06 03:33:25 +00:00
Alexandre Julliard
5333206978
Added memicmpW.
2004-04-02 19:40:31 +00:00
Alexandre Julliard
86a8f4cd3c
Check that we have statfs before using it.
2004-03-10 01:55:12 +00:00
Alexandre Julliard
b859a68682
Added check for f_namelen in struct statfs.
2004-03-07 03:16:43 +00:00
Alexandre Julliard
13af489103
Use statvfs instead of statfs, and provide a default implementation in
...
libwine_port if necessary.
2004-03-05 21:03:46 +00:00
Alexandre Julliard
69063fa035
Don't build getopt at all if it's not needed.
2004-02-13 22:41:32 +00:00
Alexandre Julliard
440ff6db12
Added version scripts for libwine and libwine_unicode.
2004-02-12 22:54:00 +00:00
Alexandre Julliard
4fac95df3d
Fixed a couple of race conditions in the wine_pthread routines at
...
thread startup and exit.
2004-02-05 02:01:35 +00:00
Alexandre Julliard
c3eac43839
Moved libuuid to the dlls directory, and moved the DirectX GUIDs into
...
a separate libdxguid library.
2004-01-26 21:29:05 +00:00
Rein Klazes
f20ce3b816
Fix MultiByteToWideChar and WideCharToMultiByte when called with code
...
page CP_SYMBOL.
Remove the symbol font from the code page table, so it is not reported
as a valid/supported/installed code page.
Remove workarounds for the badly behaved MultiByteToWideChar and co.
in a few places.
2004-01-20 22:39:06 +00:00
Dmitry Timoshkov
c660117622
Fixed some problems found while compiling and linking Wine under
...
Cygwin.
2004-01-20 22:35:34 +00:00
Rok Mandeljc
0382ea1d8a
- updated resources to DX9
...
- completely rewritten headers (DX9 compat.; look much nicer now ;=)
- removed IDirectMusicSong and IDirectMusicMelodyFormulationTrack
(which are removed from DX9; weren't implemented in DX8 anyway)
- combined/simplified IDirectMusicSomething / IDirectMusicObject /
IPersistStream for objects that support loading
- implemented IDirectMusicObject on all such objects; via generic
functions
- combined IDirectMusicTrack(8)/IPersistStream on all tracks
- fully implemented IDirectMusicContainer (at least 90% if there are
no private interfaces)
- implemented IDirectMusicCollection (99% work & MS compliant
behaviour; except for instruments)
- tried to implement IDirectMusicInstrument (unfortunately uses some
dirty private interfaces... :(
- added dswave.dll; DirectMusic Wave
- some changes in style
- many, many more ;)
2004-01-20 00:21:40 +00:00
Alexandre Julliard
e293074100
Added configure check for readlink.
2004-01-08 05:07:05 +00:00
Alexandre Julliard
7984ded712
Added wine_dll_get_owner function that retrieves the 32-bit dll
...
containing a given 16-bit dll by reading the symlink, so that we don't
need to dlopen it.
2004-01-02 21:08:05 +00:00
Alexandre Julliard
9f50af251d
Avoid common symbols on Darwin/Mac OS X.
2003-12-13 01:37:38 +00:00
Ge van Geldorp
6ba2226f2c
When building a PE DLL (MinGW), variables exported from a DLL must be
...
explicitly marked as dllimport when using them.
2003-12-13 00:02:31 +00:00
Alexandre Julliard
bb4ddfec28
Added a WINEDEBUG environment variable that allows turning on debug
...
output as early as possible during startup.
2003-12-05 00:17:41 +00:00
Alexandre Julliard
402b79a1e8
Porting fixes.
2003-11-27 00:59:36 +00:00
Pierre d'Herbemont
794bf0fda0
Add Darwin/Mac OS X support to the build system.
2003-11-25 03:31:26 +00:00
Alexandre Julliard
c6d44be3e5
Create a huge array in bss to reserve the memory area we need for PE
...
binaries, to prevent exec shield from mapping system libraries there.
2003-11-22 00:08:26 +00:00
Dmitry Timoshkov
33f9dcb1f9
Move CompareString implementation to libwine_unicode, add a bunch of
...
CompareString tests.
2003-11-22 00:00:53 +00:00
Alexandre Julliard
8fb98a41e0
Added wine_ldt_is_system() to replace the IS_SELECTOR_SYSTEM macro,
...
and stop exporting the WINE_LDT_FIRST_ENTRY constant.
2003-11-17 20:12:56 +00:00
Jon Griffiths
b93eb133ad
Remove a redundant test.
...
Handle 'a','A','e','E','F','g','G' flavours of double arguments.
2003-11-14 21:00:02 +00:00
Alexandre Julliard
b2d937d5d9
Added sigsetjmp/siglongjmp and gettid to the portability library.
2003-11-12 03:16:00 +00:00
Alexandre Julliard
daeccba704
Moved the exec_wine_binary function to the wine library, and use it to
...
exec the wineserver too.
2003-11-11 22:21:29 +00:00
Alexandre Julliard
50fba7ffec
Moved the remaining SYSDEPS_* functions to the wine_pthread interface.
...
Let the pthread library allocate the stack itself.
2003-11-09 01:25:23 +00:00
Alexandre Julliard
8574412e1e
Added wine_pthread_create_thread and wine_pthread_exit_thread to the
...
pthread support, and removed the corresponding SYSDEPS functions.
Moved stack allocation for new threads to wine_pthread_create_thread
to allow more flexibility.
2003-11-05 23:31:11 +00:00
Alexandre Julliard
18b4cbf12a
Put better values for code and data sizes in the NT header of builtin
...
dlls.
2003-11-03 22:19:44 +00:00
Francois Gouget
f405629e8e
Weekly spelling fixes.
2003-10-28 21:45:30 +00:00
Daniel Marmier
7832562ee6
Fixed warnings with gcc option "-Wwrite-strings".
2003-10-21 23:57:25 +00:00
Alexandre Julliard
c1d80ece92
Don't export the wine_pthread_* functions.
2003-10-16 22:07:06 +00:00
Jon Griffiths
bf1df18292
Added string folding support.
2003-10-15 20:52:28 +00:00
Daniel Marmier
f95be92d24
Fixed warnings with gcc option "-Wwrite-strings".
2003-10-15 03:35:54 +00:00
Jon Griffiths
a02ce81082
Add generation of digit and compatability mapping tables.
...
Generate smaller mapping tables by merging overlaps.
2003-10-15 02:32:34 +00:00
Dmitry Timoshkov
2581db8f6a
Fixed some problems found while compiling and linking Wine under
...
Cygwin.
2003-10-14 05:27:43 +00:00
Alexandre Julliard
0b1a82aa5e
Added check for pthread.h (reported by Steven Edwards).
...
Removed init_done check, the process heap is now created before kernel
is loaded anyway.
2003-10-14 01:27:31 +00:00
Alexandre Julliard
a6ed49ade3
Don't reference the environ global variable from kernel32, it may fail
...
to link (reported by Gerald Pfeifer).
2003-10-10 23:33:21 +00:00
Alexandre Julliard
823cec66ef
Added placeholders for wine_pthread_init_process and
...
wine_pthread_init_thread.
2003-10-10 00:22:19 +00:00
Alexandre Julliard
410e6b7b39
Changed the init code to make libwine load only ntdll and transfer
...
control to it, and then have ntdll load kernel32 using the normal
loader mechanisms.
Get rid of BUILTIN32_LoadExeModule.
2003-10-10 00:12:17 +00:00
Alexandre Julliard
5986e3a724
Added wine_get_argv0_path() to retrieve the path of the wine binary.
2003-10-08 00:36:09 +00:00
Daniel Marmier
9bb19ac2d2
Fixed warnings with gcc option "-Wwrite-strings".
2003-10-03 03:35:20 +00:00
Alexandre Julliard
16cd86197a
Moved DLLFLAGS to a separate variable instead of including it in
...
DEFS.
2003-09-24 19:01:44 +00:00
Pavel Roskin
7add08a303
Added configure check for spawnvp().
2003-09-24 18:54:40 +00:00