while (path != NULL) {
size_t result_len = (size_t)snprintf(buffer, buflen, "%s/lib%s." LIB_SUFFIX, path, fname); if (result_len >= buflen) {
EXIT_ERROR(JVMTI_ERROR_INVALID_LOCATION, "One or more of the library paths supplied to jdwp, " "likely by sun.boot.library.path, is too long.");
} elseif (access(buffer, F_OK) == 0) { break;
}
*buffer = '\0';
path = strtok_r(NULL, PATH_SEPARATOR, &next_token);
}
jvmtiDeallocate(paths_copy);
}
/* *createastringfortheJNInativefunctionnamebyaddingthe *appropriatedecorations.
*/ int
dbgsysBuildFunName(char *name, int nameLen, int args_size, int encodingIndex)
{ // On Unix, there is only one encoding method. if (encodingIndex == 0) return1; return0;
}
if (pnamelen == 0) { if (pnamelen + (int)strlen(fname) + 10 > holderlen) {
EXIT_ERROR(JVMTI_ERROR_INVALID_LOCATION, "One or more of the library paths supplied to jdwp, " "likely by sun.boot.library.path, is too long.");
}
(void)snprintf(holder, holderlen, "lib%s." LIB_SUFFIX, fname);
} else {
dll_build_name(holder, holderlen, pname, fname);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.