shell32[2/3]: add generic Unix utility functions

Mikołaj Zalewski mikolaj at zalewski.pl
Fri Aug 25 14:41:43 CDT 2006


These function are needed to implement trash directories on other 
filesystems. Enumerating mouted volumes is done by reading /etc/mtab 
with getmntent. I hope this is portable.

The realpath is documented on the manual page as broken by design 
because the buffer size is unknown and that it should not be used. I 
haven't found any similar function that would work. I needed such a 
function and I've copied this function from the glibc sources, made it 
work under wine and an added parameter for the buffer size. The glibc is 
under the LGPL so I hope this is allowed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shell-unixutils.patch
Type: text/x-patch
Size: 10058 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060825/430a6ffc/shell-unixutils.bin


More information about the wine-patches mailing list