Hi, Sorry for the last mistakes. Here is a new diff that allow the maxtypenum to be reached.
Cheers, Index: sysctl.c =================================================================== RCS file: /cvs/src/sbin/sysctl/sysctl.c,v retrieving revision 1.189 diff -u -p -r1.189 sysctl.c --- sysctl.c 16 Apr 2013 22:06:48 -0000 1.189 +++ sysctl.c 6 Jun 2013 21:19:32 -0000 @@ -1138,8 +1138,8 @@ vfsinit(void) } mib[2] = VFS_CONF; buflen = sizeof vfc; - for (loc = lastused, cnt = 1; cnt < maxtypenum; cnt++) { - mib[3] = cnt - 1; + for (loc = lastused, cnt = 0; cnt < maxtypenum; cnt++) { + mib[3] = cnt; if (sysctl(mib, 4, &vfc, &buflen, (void *)0, (size_t)0) < 0) { if (errno == EOPNOTSUPP) continue;