extracting shares from mtab

Dan Kegel dank at kegel.com
Mon Dec 10 23:09:32 CST 2001


Chris Green wrote:
> > IMHO There are already too many linux centrix assumptions in wine, please,
> > lets not add any more .
> 
> Perhaps the note below (from the linux man page for getmntent(3)) might be
> relevant or useful to someone who wants to implement such a thing in a
> portable way?
> 
> "SysV  also  has a getmntent() function but the calling sequence differs, and
> the returned structure is different. Under SysV /etc/mnttab is used.  BSD 4.4
> and  Digital  Unix  have  a  routine getmntinfo(), a wrapper around the
> system call getfsstat()."

Agreed, if wine were to want to enumerate mounted volumes,
it should do it carefully with a wrapper function
to avoid portability problems.  

Amazing that SUS doesn't provide a portable way to do this.
- Dan




More information about the wine-devel mailing list