| 39 |
|
#include <sys/vfs.h> |
| 40 |
|
#include <mntent.h> |
| 41 |
|
#include "tools.h" |
| 42 |
+ |
#ifdef CYGWIN |
| 43 |
+ |
#define VALID_FS_TYPES {"user"} |
| 44 |
+ |
#else |
| 45 |
|
#define VALID_FS_TYPES {"adfs", "affs", "befs", "bfs", "efs", "ext2", \ |
| 46 |
|
"ext3", "vxfs", "hfs", "hfsplus", "hpfs", "jffs", \ |
| 47 |
|
"jffs2", "minix", "msdos", "ntfs", "qnx4", "ramfs", \ |
| 48 |
|
"rootfs", "reiserfs", "sysv", "v7", "udf", "ufs", \ |
| 49 |
|
"umsdos", "vfat", "xfs", "jfs"} |
| 50 |
|
#endif |
| 51 |
+ |
#endif |
| 52 |
|
|
| 53 |
|
#ifdef ALLBSD |
| 54 |
|
#include <sys/param.h> |
| 270 |
|
|
| 271 |
|
*entries=num_disks; |
| 272 |
|
|
| 273 |
< |
/* If this fails, there is very little i can do about it, so i'll ignore it :) */ |
| 274 |
< |
#if defined(LINUX) || defined(SOLARIS) |
| 273 |
> |
/* If this fails, there is very little i can do about it, so |
| 274 |
> |
I'll ignore it :) */ |
| 275 |
> |
#if defined(LINUX) |
| 276 |
> |
endmntent(f); |
| 277 |
> |
#endif |
| 278 |
> |
#if defined(SOLARIS) |
| 279 |
|
fclose(f); |
| 280 |
|
#endif |
| 281 |
|
|