Hi,
I wrote a simple test program:
---------- Test program begins ----------
#include <stdio.h>
#include <mntent.h>
int main()
{
struct mntent* pmntent;
/* Win32 doesn't have an fstab */
/* setmntent under Win32 doesn't need an fstab */
FILE* fp = setmntent(NULL, "r");
while(pmntent = getmntent(fp))
{
puts(pmntent->mnt_fsname);
puts(pmntent->mnt_dir);
puts(pmntent->mnt_type);
puts(pmntent->mnt_type);
puts(pmntent->mnt_opts);
printf("%d\n", pmntent->mnt_freq);
printf("%d\n", pmntent->mnt_passno);
}
endmntent(fp);
}
---------- Test program ends ----------
And the result was:
---------- Console output begins ----------
B:/
B:/
NTFS
NTFS
rw
0
0
C:/
C:/
NTFS
NTFS
rw
0
0
D:/
D:/
NTFS
NTFS
rw
0
0
E:/
E:/
NTFS
NTFS
rw
0
0
F:/
F:/
FAT
FAT
rw
0
0
---------- Console output ends ----------
Except for mnt_freq and mnt_passno, all other infomation is available
and correct (B: is a network mapped drive).
On Thu, 20 Jan 2005 15:06:49 +0000, Tor Lillqvist <[EMAIL PROTECTED]> wrote:
>
> Yeah, but before you get too excited, try to consider what you are
> actually trying to achieve. Windows is not Unix, its "mounts" don't
> work like on Unix. I don't know how useful it would be to pretend that
> Windows is Unix in a non-Cygwin context.
>
> On the other hand, if you really *do* want to pretend you are on Unix,
> why not then use Cygwin? (But then, Cygwin's mount concept is again
> something different.) Or heck, actually run Unix (Linux, Solaris,
> *BSD).
Libgw32c tries to help export GNU software to Win32, leaving which OS
to use a personal choice, doesn't it? And isn't exporting funny? :-)
--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
GnuWin32-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users