This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

auto-mounting /



OK, I'm working through the code to LoadLibrary cygwin1.dll (*that*
was a project) and using getmntent() to find any existing "/" mount.

Guess what?  There's always one, because starting cygwin1.dll creates
on if needed.

Why?  Why can't we just leave "/" unmounted if there isn't one?  Won't
that mean that the default is that "/" is the root of the current
drive, which might make a lot of sense for cygwin programs running
outside a fully configured environment?

Meanwhile, I've at least reconfigured cygwin1.dll to not do the
mounting if it was loaded via LoadLibrary.  I had to add a new DLL
entry point to do further initialization that init.cc couldn't do,
which an app calls after LoadLibrary to tell the dll "you aren't part
of a cygwin app" and enables even more functionality.  I'm not sure if
we can call this from the init.cc startup hook; that may get called
for cygwin-built dlls too, if *they* are called via LoadLibrary.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]