equal
deleted
inserted
replaced
73 #include <sys/procfs.h> |
73 #include <sys/procfs.h> |
74 |
74 |
75 #endif /* _ALLBSD_SOURCE */ |
75 #endif /* _ALLBSD_SOURCE */ |
76 |
76 |
77 #if defined(_ALLBSD_SOURCE) |
77 #if defined(_ALLBSD_SOURCE) |
|
78 #define dirent64 dirent |
78 #define readdir64 readdir |
79 #define readdir64 readdir |
79 #endif |
80 #endif |
80 |
81 |
81 // true = get available swap in bytes |
82 // true = get available swap in bytes |
82 // false = get total swap in bytes |
83 // false = get total swap in bytes |
420 */ |
421 */ |
421 // throw_internal_error(env, "Unimplemented in FreeBSD"); |
422 // throw_internal_error(env, "Unimplemented in FreeBSD"); |
422 return (100); |
423 return (100); |
423 #else /* solaris/linux */ |
424 #else /* solaris/linux */ |
424 DIR *dirp; |
425 DIR *dirp; |
425 struct dirent* dentp; |
426 struct dirent64* dentp; |
426 jlong fds = 0; |
427 jlong fds = 0; |
427 |
428 |
428 #if defined(_AIX) |
429 #if defined(_AIX) |
429 /* AIX does not understand '/proc/self' - it requires the real process ID */ |
430 /* AIX does not understand '/proc/self' - it requires the real process ID */ |
430 #define FD_DIR aix_fd_dir |
431 #define FD_DIR aix_fd_dir |