Lines Matching refs:lprofCurFilename
81 lprofFilename lprofCurFilename = {0, {0}, {0}, 0, 0, 0, PNS_unknown}; variable
86 static unsigned doMerging() { return lprofCurFilename.MergePoolSize; } in doMerging()
247 memset(&lprofCurFilename, 0, sizeof(lprofCurFilename)); in resetFilenameToDefault()
248 lprofCurFilename.FilenamePat = DefaultProfileName; in resetFilenameToDefault()
249 lprofCurFilename.PNS = PNS_default; in resetFilenameToDefault()
264 char *PidChars = &lprofCurFilename.PidChars[0]; in parseFilenamePattern()
265 char *Hostname = &lprofCurFilename.Hostname[0]; in parseFilenamePattern()
268 lprofCurFilename.FilenamePat = FilenamePat; in parseFilenamePattern()
297 lprofCurFilename.MergePoolSize = 1; in parseFilenamePattern()
299 lprofCurFilename.MergePoolSize = FilenamePat[I] - '0'; in parseFilenamePattern()
305 lprofCurFilename.NumPids = NumPids; in parseFilenamePattern()
306 lprofCurFilename.NumHosts = NumHosts; in parseFilenamePattern()
313 const char *OldFilenamePat = lprofCurFilename.FilenamePat; in parseAndSetFilename()
314 ProfileNameSpecifier OldPNS = lprofCurFilename.PNS; in parseAndSetFilename()
329 lprofCurFilename.PNS = PNS; in parseAndSetFilename()
336 lprofCurFilename.PNS = PNS; in parseAndSetFilename()
340 lprofCurFilename.FilenamePat, getPNSStr(PNS)); in parseAndSetFilename()
343 OldFilenamePat, getPNSStr(OldPNS), lprofCurFilename.FilenamePat, in parseAndSetFilename()
347 if (!lprofCurFilename.MergePoolSize) in parseAndSetFilename()
357 if (!lprofCurFilename.FilenamePat || !lprofCurFilename.FilenamePat[0]) in getCurFilenameLength()
360 if (!(lprofCurFilename.NumPids || lprofCurFilename.NumHosts || in getCurFilenameLength()
361 lprofCurFilename.MergePoolSize)) in getCurFilenameLength()
362 return strlen(lprofCurFilename.FilenamePat); in getCurFilenameLength()
364 Len = strlen(lprofCurFilename.FilenamePat) + in getCurFilenameLength()
365 lprofCurFilename.NumPids * (strlen(lprofCurFilename.PidChars) - 2) + in getCurFilenameLength()
366 lprofCurFilename.NumHosts * (strlen(lprofCurFilename.Hostname) - 2); in getCurFilenameLength()
367 if (lprofCurFilename.MergePoolSize) in getCurFilenameLength()
378 const char *FilenamePat = lprofCurFilename.FilenamePat; in getCurFilename()
380 if (!lprofCurFilename.FilenamePat || !lprofCurFilename.FilenamePat[0]) in getCurFilename()
383 if (!(lprofCurFilename.NumPids || lprofCurFilename.NumHosts || in getCurFilename()
384 lprofCurFilename.MergePoolSize)) in getCurFilename()
385 return lprofCurFilename.FilenamePat; in getCurFilename()
387 PidLength = strlen(lprofCurFilename.PidChars); in getCurFilename()
388 HostNameLength = strlen(lprofCurFilename.Hostname); in getCurFilename()
393 memcpy(FilenameBuf + J, lprofCurFilename.PidChars, PidLength); in getCurFilename()
396 memcpy(FilenameBuf + J, lprofCurFilename.Hostname, HostNameLength); in getCurFilename()
401 int ProfilePoolId = getpid() % lprofCurFilename.MergePoolSize; in getCurFilename()