Hello,
I would like to know the following:
I start some program with "wine -debugmsg +file" and I get quite a lot of times
trace:file:CreateFileW L"tiles\TS01.bmp" GENERIC_READ FILE_SHARE_READ FILE_SHARE_WRITE OPEN_EXISTING attributes 0x80 trace:file:CreateFileW returning 0x58 trace:file:_lopen ('tiles\TS01.BMP',0000) trace:file:CreateFileW L"tiles\TS01.BMP" GENERIC_READ FILE_SHARE_READ FILE_SHARE_WRITE OPEN_EXISTING attributes 0x0 trace:file:CreateFileW returning 0x58 trace:file:ReadFile 0x58 0x406d2690 14 0x406d264c (nil) trace:file:ReadFile 0x58 0x406d2668 40 0x406d264c (nil) trace:file:ReadFile 0x58 0x406d26a4 1024 0x406d264c (nil) trace:file:_lclose handle 88
So it seems to me that the file tiles\TS01.BMP is loaded, but when I use "ltrace wine ..." I don't find any output regarding this file. Why is that?
Thanks for any answer
Klaus
On Tue, 3 Dec 2002, Klaus Niederkrueger wrote: [...]
So it seems to me that the file tiles\TS01.BMP is loaded, but when I use "ltrace wine ..." I don't find any output regarding this file. Why is that?
Maybe open operation is done by wineserver? (then the filedesc is sent to wine via a Unix pipe)
On Mon, 9 Dec 2002, Francois Gouget wrote:
On Tue, 3 Dec 2002, Klaus Niederkrueger wrote: [...]
So it seems to me that the file tiles\TS01.BMP is loaded, but when I use "ltrace wine ..." I don't find any output regarding this file. Why is that?
Maybe open operation is done by wineserver? (then the filedesc is sent to wine via a Unix pipe)
-- Francois Gouget fgouget@free.fr http://fgouget.free.fr/ Linux, WinNT, MS-DOS - also known as the Good, the Bad and the Ugly.
Oh, sorry, I forgot to send to the newsgroup that I already found out: "strace" does appearantly only show calls done by the first thread created. To see also the system-calls of the forked jobs you need the option "strace -f".
Now I see that all files are opened though I'm a bit confused about the ioctl-line at the end. Does wine think that file Ts01.bmp is a sound-card???
[pid 26577] open("/usr/share/wine/drivec/Program Files/Dink Smallwood/dink/Tiles/Ts01.bmp", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 18 [pid 26577] fstat64(18, {st_mode=S_IFREG|0644, st_size=161080, ...}) = 0 [pid 26577] write(7, "\0\0\0\0\0\0\0\0X\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 [pid 26577] rt_sigprocmask(SIG_UNBLOCK, [HUP INT QUIT TERM CHLD], NULL, 8) = 0 [pid 26577] poll( <unfinished ...> [pid 26575] <... writev resumed> ) = 135 [pid 26575] read(5, "\0\0\0\0\0\0\0\0X\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 [pid 26575] rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 [pid 26575] rt_sigprocmask(SIG_BLOCK, [HUP INT ALRM IO], [RTMIN], 8) = 0 [pid 26575] write(4, "*\0\0\0\0\0\0\0\0\0\0\0X\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64 <unfinished ...> [pid 26577] <... poll resumed> [{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=6, events=POLLIN, revents=POLLIN}, {fd=9, events=0}, {fd=10, events=0}, {fd=11, events=0}, {fd=12, events=0}, {fd=13, events=0}, {fd=14, events=0}, {fd=15, events=POLLIN}, {fd=18, events=0}], 11, -1) = 1 [pid 26577] rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM CHLD], NULL, 8) = 0 [pid 26577] read(6, "*\0\0\0\0\0\0\0\0\0\0\0X\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 [pid 26577] fstat64(18, {st_mode=S_IFREG|0644, st_size=161080, ...}) = 0 [pid 26577] ioctl(18, SNDCTL_TMR_TIMEBASE, 0xbffff9b4) = -1 ENOTTY (Inappropriate ioctl for device)
In the end I would like to fix bug 1129. Any help would be appreciated a lot. Thanks again.
Klaus