Lines Matching refs:buffer

85 PRBool GRE_GetCurrentProcessDirectory(char* buffer);
86 PRBool GRE_GetPathFromConfigDir(const char* dirname, char* buffer);
87 PRBool GRE_GetPathFromConfigFile(const char* dirname, char* buffer);
130 GRE_GetCurrentProcessDirectory(char* buffer)
132 *buffer = '\0';
135 if ( ::GetModuleFileName(0, buffer, MAXPATHLEN) ) {
137 char* lastSlash = PL_strrchr(buffer, '\\');
158 CFStringGetCString(path, buffer, MAXPATHLEN, kCFStringEncodingUTF8);
171 if (*buffer) return PR_TRUE;
228 * Copy to static buffer on success.
246 strcpy(buffer, szPath);
276 if (!realpath(moz5, buffer))
277 strcpy(buffer, moz5);
294 if (getcwd(buffer, MAXPATHLEN))
305 DosQueryModuleName( ppib->pib_hmte, MAXPATHLEN, buffer);
306 p = strrchr( buffer, '\\'); // XXX DBCS misery
317 strcpy(buffer, moz5);
325 *buffer = 0;
328 strcpy(buffer, info.name);
329 if((p = strrchr(buffer, '/')) != 0)
344 * the GRE location is stored in a static buffer so that we don't have
357 char buffer[MAXPATHLEN];
362 if (GRE_GetCurrentProcessDirectory(buffer)) {
363 PRUint32 pathlen = strlen(buffer);
364 strcpy(buffer + pathlen, XPCOM_FILE_PATH_SEPARATOR XPCOM_DLL);
367 int statResult = stat(buffer, &libStat);
371 buffer[pathlen] = '\0';
372 strcpy(sGRELocation, buffer);
401 snprintf(buffer, sizeof(buffer), "%s" XPCOM_FILE_PATH_SEPARATOR GRE_CONF_NAME, env);
403 sprintf(buffer, "%s" XPCOM_FILE_PATH_SEPARATOR GRE_CONF_NAME, env);
406 if (GRE_GetPathFromConfigFile(buffer, sGRELocation)) {
474 GRE_GetPathFromConfigDir(const char* dirname, char* buffer)
501 found = GRE_GetPathFromConfigFile(fullPath.get(), buffer);
513 char buffer[1024];
522 while (fgets(buffer, 1024, cfg) != nsnull) {
524 if (buffer[0] == '#' || buffer[0] == '\n') {
529 if (buffer[0] == '[') {
530 if (!strncmp (buffer+1, GRE_BUILD_ID, versionLen)) {
536 if (foundHeader && !strncmp (buffer, "GRE_PATH=", 9)) {
537 strcpy(pathBuffer, buffer + 9);