changeset 11970:a2daf1000075

Use getdtablecount(2) on OpenBSD for the number of open file descriptors in getOpenFileDescriptorCount()
author kurt
date Mon, 19 Dec 2016 15:56:12 -0500
parents 4ab6d82b4155
children 51ce0e43c33f
files src/solaris/native/sun/management/OperatingSystemImpl.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/management/OperatingSystemImpl.c	Mon Oct 24 19:45:36 2016 -0700
+++ b/src/solaris/native/sun/management/OperatingSystemImpl.c	Mon Dec 19 15:56:12 2016 -0500
@@ -489,6 +489,8 @@
     free(fds);
 
     return nfiles;
+#elif defined(__OpenBSD__)
+    return getdtablecount();
 #else /* solaris/linux */
     DIR *dirp;
     struct dirent dbuf;