Lines Matching refs:buf
470 * If app is "c:\foo\bin\javac", then put "c:\foo" into buf.
473 GetApplicationHome(char *buf, jint bufsize)
477 GetModuleFileName(0, buf, bufsize);
478 *strrchr(buf, '\\') = '\0'; /* remove .exe file name */
479 if ((cp = strrchr(buf, '\\')) == 0) {
482 buf[0] = '\0';
495 snprintf(buf, bufsize, "%s", getenv("ALT_JAVA_HOME"));
529 if (fgets(buf, bufsize, fp) == NULL) {
535 p = buf + strlen(buf) - 1;
543 _snprintf(env, MAXPATHLEN, "JAVA_HOME=%s", buf);
575 GetStringFromRegistry(HKEY key, const char *name, char *buf, jint bufsize)
582 if (RegQueryValueEx(key, name, 0, 0, buf, &size) == 0) {
590 GetPublicJREHome(char *buf, jint bufsize)
631 if (!GetStringFromRegistry(subkey, "JavaHome", buf, bufsize)) {
1285 char *buf = JLI_MemAlloc(strlen(name) + 2);
1286 buf = strcat(strcpy(buf, name), "=");
1287 ret = _putenv(buf);
1288 JLI_MemFree(buf);