Displaying 2 results from an estimated 2 matches for "dwaccess".
Did you mean:
dbaccess
2004 Nov 16
0
Re: Win32, file descriptors and rb
...? I tried his suggested patch of sending a second argument. It
> compiles fine, and I don''t get any warnings, but it simply doesn''t seem
> to write anything to a file when I tried.
>
> See my note on the ML for more details.
>
Use this code instead of case:
if(dwAccess & FILE_ALL_ACCESS)
args[1] = INT2FIX(O_RDWR);
else if(dwAccess & GENERIC_READ)
args[1] = INT2FIX(O_RDONLY);
else if(dwAccess & GENERIC_WRITE)
args[1] = INT2FIX(O_WRONLY);
else if(dwAccess)
args[1] = INT2FIX(0);
Regards,
Park Heesob
--MIM...
2006 Jan 07
1
CIFS + NFS'ing a single filesystem w/ locking
...ething wrong, or is this "the way things are?"
OR: Is it that the type of lock placed on the file when *nix OO2.0 opens
a file is incompatible with the type of lock Samba thinks is "ok" wrt
oplocks in the Samba code?
*: It looks like lock type is a F_WRLCK on *nix, and a "dwAccess |=
GENERIC_WRITE" for win32, based on my cursory, vastly under-knowledged
reading of the OpenOffice 2.0 source code (sal/osl/unx/file.cxx and
sal/osl/w32/file.cxx). Line 2450 in w32/file.cxx, line 548 in
unx/file.cxx.
Thanks a bunch!
--
adam