vbalu requested changes to this revision. vbalu added a comment. This revision now requires changes to proceed. if (::sysctl(mib, 4, pathname, &len, NULL, 0) == 0) "len" is not declared. Please change to "pathname_len". https://reviews.llvm.org/D32271