ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/disk_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/disk_stats.c (file contents):
Revision 1.38 by ats, Fri Oct 24 17:46:44 2003 UTC vs.
Revision 1.39 by tdb, Mon Nov 10 21:07:04 2003 UTC

# Line 39 | Line 39
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>
# Line 266 | Line 270 | disk_stat_t *get_disk_stats(int *entries){
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines