• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/libmalloc-53.1.1/src/

Lines Matching refs:directory

429  * Check various logging directory options, in order of preference:
601 // This function looks for log files with prefix name "stack-logs.<pid>." underneath <directory>.
602 // <remaining_path_format> specifies a simple pattern of where stack logs can be down inside <directory>.
606 reap_orphaned_log_files_in_hierarchy(char *directory, char *remaining_path_format)
611 // Ensure that we can access this directory - permissions or sandbox'ing might prevent it.
612 if (access(directory, R_OK | W_OK | X_OK) == -1 || (dp = opendir(directory)) == NULL) {
613 //_malloc_printf(ASL_LEVEL_INFO, "reaping: no access to %s\n", directory);
618 strlcpy(pathname, directory, (size_t)PATH_MAX);
623 // Recurse down to deeper levels of the temp directory hierarchy if necessary.
644 // OK, we found a lowest-level directory matching <remaining_path_format>, and we have access to it.
647 //_malloc_printf(ASL_LEVEL_INFO, "reaping: looking in %s\n", directory);
680 char directory[PATH_MAX];
681 bool success = getenv_from_process(pid, env_var_names[i], directory, sizeof(directory));
682 if (success && strcmp(directory, _PATH_TMP) != 0) {
683 reap_orphaned_log_files_in_hierarchy(directory, NULL);
1493 // by scanning the given directory for entries with names of the form "stack-logs.<pid>.*.index"
1496 open_log_file_from_directory(pid_t pid, char* directory, remote_task_file_streams *streams)
1505 if (access(directory, R_OK | X_OK) == 0 && (dp = opendir(directory)) != NULL) {
1513 snprintf(pathname, (size_t)PATH_MAX, "%s/%s", directory, entry->d_name);
1619 char directory[PATH_MAX];
1620 bool success = getenv_from_process(pid, env_var_names[i], directory, sizeof(directory));
1622 file = open_log_file_from_directory(pid, directory, streams);