filename 43 cib/cibio.h extern int activateCibBuffer(char *buffer, const char *filename); filename 77 cib/io.c retrieveCib(const char *filename, const char *sigfile) filename 82 cib/io.c filename, sigfile); filename 83 cib/io.c switch (cib_file_read_and_verify(filename, sigfile, &root)) { filename 85 cib/io.c crm_warn("Continuing but %s will NOT be used.", filename); filename 90 cib/io.c crm_warn("Continuing but %s will NOT be used.", filename); filename 91 cib/io.c cib_rename(filename); filename 199 cib/io.c char *filename = NULL; filename 213 cib/io.c filename = crm_concat(dir, file, '/'); filename 214 cib/io.c sigfile = crm_concat(filename, "sig", '.'); filename 217 cib/io.c root = retrieveCib(filename, sigfile); filename 218 cib/io.c free(filename); filename 234 cib/io.c filename = crm_strdup_printf("%s/%s", cib_root, namelist[lpc]->d_name); filename 235 cib/io.c sigfile = crm_concat(filename, "sig", '.'); filename 238 cib/io.c filename, sigfile); filename 239 cib/io.c if (cib_file_read_and_verify(filename, sigfile, &root) < 0) { filename 240 cib/io.c crm_warn("Continuing but %s will NOT be used.", filename); filename 242 cib/io.c crm_notice("Continuing with last valid configuration archive: %s", filename); filename 246 cib/io.c free(filename); filename 87 cib/main.c gboolean startCib(const char *filename); filename 553 cib/main.c startCib(const char *filename) filename 556 cib/main.c xmlNode *cib = readCibXmlFile(cib_root, filename, !preserve_status); filename 47 crmd/pengine.c char *filename = NULL; filename 52 crmd/pengine.c filename = calloc(1, len); filename 53 crmd/pengine.c CRM_CHECK(filename != NULL, return); filename 55 crmd/pengine.c sprintf(filename, PE_STATE_DIR "/pe-core-%s.bz2", id); filename 56 crmd/pengine.c if (write_xml_file(output, filename, TRUE) < 0) { filename 58 crmd/pengine.c filename); filename 61 crmd/pengine.c filename); filename 64 crmd/pengine.c free(filename); filename 167 include/crm/cib.h cib_t *cib_file_new(const char *filename); filename 88 include/crm/cib/internal.h gboolean startCib(const char *filename); filename 216 include/crm/cib/internal.h int cib_file_read_and_verify(const char *filename, const char *sigfile, filename 43 include/crm/common/internal.h char *crm_read_contents(const char *filename); filename 94 include/crm/common/logging.h gboolean crm_add_logfile(const char *filename); filename 154 include/crm/common/xml.h xmlNode *filename2xml(const char *filename); filename 160 include/crm/common/xml.h int write_xml_fd(xmlNode * xml_node, const char *filename, int fd, gboolean compress); filename 161 include/crm/common/xml.h int write_xml_file(xmlNode * xml_node, const char *filename, gboolean compress); filename 394 include/crm/common/xml.h void save_xml_to_file(xmlNode * xml, const char *desc, const char *filename); filename 253 include/crm_internal.h long crm_pidfile_inuse(const char *filename, long mypid, const char *daemon); filename 254 include/crm_internal.h long crm_read_pidfile(const char *filename); filename 43 lib/cib/cib_file.c char *filename; filename 125 lib/cib/cib_file.c cib_file_read_and_verify(const char *filename, const char *sigfile, xmlNode **root) filename 132 lib/cib/cib_file.c CRM_ASSERT(filename != NULL); filename 138 lib/cib/cib_file.c s_res = stat(filename, &buf); filename 140 lib/cib/cib_file.c crm_perror(LOG_WARNING, "Could not verify cluster configuration file %s", filename); filename 143 lib/cib/cib_file.c crm_warn("Cluster configuration file %s is corrupt (size is zero)", filename); filename 148 lib/cib/cib_file.c local_root = filename2xml(filename); filename 150 lib/cib/cib_file.c crm_warn("Cluster configuration file %s is corrupt (unparseable as XML)", filename); filename 156 lib/cib/cib_file.c sigfile = local_sigfile = crm_concat(filename, "sig", '.'); filename 192 lib/cib/cib_file.c cib_file_is_live(const char *filename) filename 194 lib/cib/cib_file.c if (filename != NULL) { filename 196 lib/cib/cib_file.c char *real_filename = crm_compat_realpath(filename); filename 496 lib/cib/cib_file.c private->filename = strdup(cib_location); filename 528 lib/cib/cib_file.c load_file_cib(const char *filename) filename 535 lib/cib/cib_file.c if (stat(filename, &buf) < 0) { filename 540 lib/cib/cib_file.c root = filename2xml(filename); filename 569 lib/cib/cib_file.c if (private->filename == NULL) { filename 572 lib/cib/cib_file.c rc = load_file_cib(private->filename); filename 576 lib/cib/cib_file.c crm_debug("%s: Opened connection to local file '%s'", name, private->filename); filename 582 lib/cib/cib_file.c name, private->filename, pcmk_strerror(rc)); filename 693 lib/cib/cib_file.c if (cib_file_write_live(private->filename) < 0) { filename 699 lib/cib/cib_file.c gboolean do_bzip = crm_ends_with_ext(private->filename, ".bz2"); filename 701 lib/cib/cib_file.c if (write_xml_file(in_mem_cib, private->filename, do_bzip) <= 0) { filename 707 lib/cib/cib_file.c crm_info("Wrote CIB to %s", private->filename); filename 710 lib/cib/cib_file.c crm_err("Could not write CIB to %s", private->filename); filename 732 lib/cib/cib_file.c free(private->filename); filename 89 lib/common/io.c char *filename = NULL; filename 101 lib/common/io.c filename = malloc(len); filename 102 lib/common/io.c CRM_CHECK(filename != NULL, return NULL); filename 107 lib/common/io.c sprintf(filename, "%s/%s-%d.%s", directory, series, sequence, ext); filename 109 lib/common/io.c return filename; filename 395 lib/common/io.c crm_read_contents(const char *filename) filename 403 lib/common/io.c fp = fopen(filename, "r"); filename 418 lib/common/io.c crm_trace("Reading %d bytes from %s", length, filename); filename 222 lib/common/logging.c crm_add_logfile(const char *filename) filename 239 lib/common/logging.c if (filename == NULL && have_logfile == FALSE) { filename 240 lib/common/logging.c filename = default_logfile; filename 243 lib/common/logging.c if (filename == NULL) { filename 245 lib/common/logging.c } else if(safe_str_eq(filename, "none")) { filename 247 lib/common/logging.c } else if(safe_str_eq(filename, "/dev/null")) { filename 249 lib/common/logging.c } else if(safe_str_eq(filename, default_logfile)) { filename 258 lib/common/logging.c filename_cp = strdup(filename); filename 263 lib/common/logging.c crm_err("Directory '%s' does not exist: logging to '%s' is disabled", parent_dir, filename); filename 270 lib/common/logging.c logfile = fopen(filename, "a"); filename 273 lib/common/logging.c pcmk_strerror(errno), errno, filename, geteuid(), getegid()); filename 287 lib/common/logging.c crm_perror(LOG_WARNING, "Cannot stat %s", filename); filename 306 lib/common/logging.c filename, CRM_DAEMON_USER, pcmk_gid); filename 311 lib/common/logging.c crm_warn("Cannot change the mode of %s to rw-rw----", filename); filename 315 lib/common/logging.c pcmk_uid, pcmk_gid, filename); filename 317 lib/common/logging.c crm_err("Couldn't write out logfile: %s", filename); filename 324 lib/common/logging.c fd = qb_log_file_open(filename); filename 327 lib/common/logging.c crm_perror(LOG_WARNING, "Couldn't send additional logging to %s", filename); filename 335 lib/common/logging.c crm_notice("Switching to %s", filename); filename 339 lib/common/logging.c crm_notice("Additional logging available in %s", filename); filename 455 lib/common/logging.c cs->function, cs->lineno, cs->filename, buffer); filename 531 lib/common/logging.c } else if (trace_files && strstr(trace_files, cs->filename) != NULL) { filename 153 lib/common/schemas.c version_from_filename(const char *filename, schema_version_t *version) filename 155 lib/common/schemas.c int rc = schema_scanf(filename, "pacemaker-", *version, ".rng"); filename 591 lib/common/schemas.c dump_file(const char *filename) filename 597 lib/common/schemas.c CRM_CHECK(filename != NULL, return); filename 599 lib/common/schemas.c fp = fopen(filename, "r"); filename 601 lib/common/schemas.c crm_perror(LOG_ERR, "Could not open %s for reading", filename); filename 628 lib/common/schemas.c char *filename = strdup(CRM_STATE_DIR "/cib-invalid.XXXXXX"); filename 630 lib/common/schemas.c CRM_CHECK(filename != NULL, return FALSE); filename 633 lib/common/schemas.c fd = mkstemp(filename); filename 634 lib/common/schemas.c write_xml_fd(xml_blob, filename, fd, FALSE); filename 636 lib/common/schemas.c dump_file(filename); filename 638 lib/common/schemas.c doc = xmlParseFile(filename); filename 643 lib/common/schemas.c unlink(filename); filename 644 lib/common/schemas.c free(filename); filename 781 lib/common/utils.c crm_read_pidfile(const char *filename) filename 788 lib/common/utils.c if ((fd = open(filename, O_RDONLY)) < 0) { filename 806 lib/common/utils.c crm_trace("Got pid %lu from %s\n", pid, filename); filename 818 lib/common/utils.c crm_pidfile_inuse(const char *filename, long mypid, const char *daemon) filename 820 lib/common/utils.c long pid = crm_read_pidfile(filename); filename 825 lib/common/utils.c unlink(filename); filename 833 lib/common/utils.c unlink(filename); filename 845 lib/common/utils.c crm_lock_pidfile(const char *filename, const char *name) filename 853 lib/common/utils.c rc = crm_pidfile_inuse(filename, 0, name); filename 862 lib/common/utils.c if ((fd = open(filename, O_CREAT | O_WRONLY | O_EXCL, 0644)) < 0) { filename 872 lib/common/utils.c crm_perror(LOG_ERR, "Incomplete write to %s", filename); filename 876 lib/common/utils.c return crm_pidfile_inuse(filename, mypid, name); filename 2852 lib/common/xml.c decompress_file(const char *filename) filename 2861 lib/common/xml.c FILE *input = fopen(filename, "r"); filename 2864 lib/common/xml.c crm_perror(LOG_ERR, "Could not open %s for reading", filename); filename 2934 lib/common/xml.c filename2xml(const char *filename) filename 2953 lib/common/xml.c if (filename) { filename 2954 lib/common/xml.c uncompressed = !crm_ends_with_ext(filename, ".bz2"); filename 2957 lib/common/xml.c if (filename == NULL) { filename 2962 lib/common/xml.c output = xmlCtxtReadFile(ctxt, filename, NULL, xml_options); filename 2965 lib/common/xml.c char *input = decompress_file(filename); filename 2986 lib/common/xml.c crm_err("Couldn't%s parse %s", xml ? " fully" : "", filename); filename 3061 lib/common/xml.c write_xml_stream(xmlNode * xml_node, const char *filename, FILE * stream, gboolean compress) filename 3069 lib/common/xml.c crm_trace("Writing XML out to %s", filename); filename 3071 lib/common/xml.c crm_err("Cannot write NULL to %s", filename); filename 3105 lib/common/xml.c crm_trace("%s: In: %d, out: %d", filename, in, out); filename 3116 lib/common/xml.c crm_perror(LOG_ERR, "Cannot write output to %s", filename); filename 3124 lib/common/xml.c crm_perror(LOG_ERR, "fflush for %s failed", filename); filename 3130 lib/common/xml.c crm_perror(LOG_ERR, "fsync for %s failed", filename); filename 3143 lib/common/xml.c write_xml_fd(xmlNode * xml_node, const char *filename, int fd, gboolean compress) filename 3149 lib/common/xml.c return write_xml_stream(xml_node, filename, stream, compress); filename 3153 lib/common/xml.c write_xml_file(xmlNode * xml_node, const char *filename, gboolean compress) filename 3157 lib/common/xml.c stream = fopen(filename, "w"); filename 3159 lib/common/xml.c return write_xml_stream(xml_node, filename, stream, compress); filename 3915 lib/common/xml.c save_xml_to_file(xmlNode * xml, const char *desc, const char *filename) filename 3919 lib/common/xml.c if (filename == NULL) { filename 3923 lib/common/xml.c filename = f; filename 3927 lib/common/xml.c crm_info("Saving %s to %s", desc, filename); filename 3928 lib/common/xml.c write_xml_file(xml, filename, FALSE); filename 45 libltdl/libltdl/lt_dlloader.h const char *filename, filename 49 libltdl/loaders/dld_link.c static lt_module vm_open (lt_user_data loader_data, const char *filename, filename 110 libltdl/loaders/dld_link.c vm_open (lt_user_data LT__UNUSED loader_data, const char *filename, filename 113 libltdl/loaders/dld_link.c lt_module module = lt__strdup (filename); filename 115 libltdl/loaders/dld_link.c if (module && dld_link (filename) != 0) filename 49 libltdl/loaders/dlopen.c static lt_module vm_open (lt_user_data loader_data, const char *filename, filename 166 libltdl/loaders/dlopen.c vm_open (lt_user_data LT__UNUSED loader_data, const char *filename, filename 194 libltdl/loaders/dlopen.c module = dlopen (filename, module_flags); filename 50 libltdl/loaders/dyld.c static lt_module vm_open (lt_user_data loader_data, const char *filename, filename 228 libltdl/loaders/dyld.c vm_open (lt_user_data loader_data, const char *filename, filename 234 libltdl/loaders/dyld.c if (!filename) filename 239 libltdl/loaders/dyld.c switch (NSCreateObjectFileImageFromFile (filename, &ofi)) filename 242 libltdl/loaders/dyld.c module = NSLinkModule (ofi, filename, NSLINKMODULE_OPTION_RETURN_ON_ERROR filename 256 libltdl/loaders/dyld.c module = (lt_module) lt__addimage(filename, filename 49 libltdl/loaders/load_add_on.c static lt_module vm_open (lt_user_data loader_data, const char *filename, filename 108 libltdl/loaders/load_add_on.c vm_open (lt_user_data LT__UNUSED loader_data, const char *filename, filename 113 libltdl/loaders/load_add_on.c if (filename) filename 115 libltdl/loaders/load_add_on.c image = load_add_on (filename); filename 53 libltdl/loaders/loadlibrary.c static lt_module vm_open (lt_user_data loader_data, const char *filename, filename 134 libltdl/loaders/loadlibrary.c vm_open (lt_user_data LT__UNUSED loader_data, const char *filename, filename 142 libltdl/loaders/loadlibrary.c if (!filename) filename 147 libltdl/loaders/loadlibrary.c filename = wpath; filename 151 libltdl/loaders/loadlibrary.c len = LT_STRLEN (filename); filename 160 libltdl/loaders/loadlibrary.c if (cygwin_conv_path (CCP_POSIX_TO_WIN_A, filename, wpath, MAX_PATH)) filename 167 libltdl/loaders/loadlibrary.c cygwin_conv_to_full_win32_path (filename, wpath); filename 170 libltdl/loaders/loadlibrary.c strcpy(wpath, filename); filename 50 libltdl/loaders/preopen.c static lt_module vm_open (lt_user_data loader_data, const char *filename, filename 145 libltdl/loaders/preopen.c vm_open (lt_user_data LT__UNUSED loader_data, const char *filename, filename 161 libltdl/loaders/preopen.c if (!filename) filename 163 libltdl/loaders/preopen.c filename = "@PROGRAM@"; filename 171 libltdl/loaders/preopen.c if (!symbol->address && streq (symbol->name, filename)) filename 49 libltdl/loaders/shl_load.c static lt_module vm_open (lt_user_data loader_data, const char *filename, filename 151 libltdl/loaders/shl_load.c vm_open (lt_user_data LT__UNUSED loader_data, const char *filename, filename 155 libltdl/loaders/shl_load.c lt_module module = shl_load (filename, LT_BIND_FLAGS, 0L); filename 167 libltdl/loaders/shl_load.c if (!filename) filename 173 libltdl/loaders/shl_load.c module = shl_load (filename, LT_BIND_FLAGS, 0L); filename 99 libltdl/ltdl.c typedef int foreach_callback_func (char *filename, void *data1, filename 102 libltdl/ltdl.c typedef int file_worker_func (const char *filename, void *data); filename 109 libltdl/ltdl.c static int find_file_callback (char *filename, void *data1, filename 111 libltdl/ltdl.c static int find_handle_callback (char *filename, void *data, filename 113 libltdl/ltdl.c static int foreachfile_callback (char *filename, void *data1, filename 130 libltdl/ltdl.c static int has_library_ext (const char *filename); filename 134 libltdl/ltdl.c const char *filename, const char *ext, filename 137 libltdl/ltdl.c const char *filename, filename 368 libltdl/ltdl.c tryall_dlopen (lt_dlhandle *phandle, const char *filename, filename 377 libltdl/ltdl.c filename ? filename : "(null)", filename 386 libltdl/ltdl.c if ((handle->info.filename == filename) /* dlopen self: 0 == 0 */ filename 387 libltdl/ltdl.c || (handle->info.filename && filename filename 388 libltdl/ltdl.c && streq (handle->info.filename, filename))) filename 402 libltdl/ltdl.c if (filename) filename 416 libltdl/ltdl.c handle->info.filename = lt__strdup (filename); filename 417 libltdl/ltdl.c if (!handle->info.filename) filename 425 libltdl/ltdl.c handle->info.filename = 0; filename 442 libltdl/ltdl.c filename ? filename : "(null)"); filename 445 libltdl/ltdl.c filename, advise); filename 470 libltdl/ltdl.c FREE (handle->info.filename); filename 491 libltdl/ltdl.c char *filename = 0; filename 511 libltdl/ltdl.c filename = MALLOC (char, filename_len + 1); filename 512 libltdl/ltdl.c if (!filename) filename 515 libltdl/ltdl.c sprintf (filename, "%.*s/%s", (int) dirname_len, dirname, dlname); filename 523 libltdl/ltdl.c prefix, filename, advise); filename 525 libltdl/ltdl.c else if (tryall_dlopen (handle, filename, advise, 0) != 0) filename 530 libltdl/ltdl.c FREE (filename); filename 680 libltdl/ltdl.c char *filename = 0; filename 703 libltdl/ltdl.c FREE (filename); filename 705 libltdl/ltdl.c filename = MALLOC (char, filenamesize); filename 706 libltdl/ltdl.c if (!filename) filename 711 libltdl/ltdl.c strcpy (filename, dir_name); filename 715 libltdl/ltdl.c if (filename[lendir -1] != '/') filename 716 libltdl/ltdl.c filename[lendir++] = '/'; filename 717 libltdl/ltdl.c strcpy (filename +lendir, base_name); filename 720 libltdl/ltdl.c if ((result = (*func) (filename, data1, data2))) filename 730 libltdl/ltdl.c FREE (filename); filename 739 libltdl/ltdl.c find_file_callback (char *filename, void *data1, void *data2) filename 745 libltdl/ltdl.c assert (filename && *filename); filename 749 libltdl/ltdl.c if ((*pfile = fopen (filename, LT_READTEXT_MODE))) filename 751 libltdl/ltdl.c char *dirend = strrchr (filename, '/'); filename 753 libltdl/ltdl.c if (dirend > filename) filename 757 libltdl/ltdl.c *pdir = lt__strdup (filename); filename 775 libltdl/ltdl.c find_handle_callback (char *filename, void *data, void *data2) filename 778 libltdl/ltdl.c int notfound = access (filename, R_OK); filename 787 libltdl/ltdl.c if (tryall_dlopen (phandle, filename, advise, 0) != 0) filename 1152 libltdl/ltdl.c try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext, filename 1170 libltdl/ltdl.c filename ? filename : "(null)", filename 1177 libltdl/ltdl.c if (!filename) filename 1197 libltdl/ltdl.c assert (filename && *filename); filename 1201 libltdl/ltdl.c attempt = MALLOC (char, LT_STRLEN (filename) + LT_STRLEN (ext) + 1); filename 1205 libltdl/ltdl.c sprintf(attempt, "%s%s", filename, ext); filename 1209 libltdl/ltdl.c attempt = lt__strdup (filename); filename 1533 libltdl/ltdl.c has_library_ext (const char *filename) filename 1537 libltdl/ltdl.c assert (filename); filename 1539 libltdl/ltdl.c ext = strrchr (filename, '.'); filename 1617 libltdl/ltdl.c lt_dlopen (const char *filename) filename 1619 libltdl/ltdl.c return lt_dlopenadvise (filename, NULL); filename 1628 libltdl/ltdl.c lt_dlopenext (const char *filename) filename 1634 libltdl/ltdl.c handle = lt_dlopenadvise (filename, advise); filename 1642 libltdl/ltdl.c lt_dlopenadvise (const char *filename, lt_dladvise advise) filename 1657 libltdl/ltdl.c if (!filename filename 1660 libltdl/ltdl.c || has_library_ext (filename)) filename 1664 libltdl/ltdl.c if (try_dlopen (&handle, filename, NULL, advise) != 0) filename 1669 libltdl/ltdl.c else if (filename && *filename) filename 1673 libltdl/ltdl.c errors += try_dlopen (&handle, filename, archive_ext, advise); filename 1686 libltdl/ltdl.c errors = try_dlopen (&handle, filename, shlib_ext, advise); filename 1697 libltdl/ltdl.c errors = try_dlopen (&handle, filename, shared_ext, advise); filename 1877 libltdl/ltdl.c char *filename = 0; filename 1878 libltdl/ltdl.c while ((filename = argz_next (argz, argz_len, filename))) filename 1879 libltdl/ltdl.c if ((is_done = (*func) (filename, data2))) filename 1898 libltdl/ltdl.c int (*func) (const char *filename, void *data), filename 1988 libltdl/ltdl.c FREE (cur->info.filename); filename 64 libltdl/ltdl.h int (*func) (const char *filename, void *data), filename 77 libltdl/ltdl.h LT_SCOPE lt_dlhandle lt_dlopen (const char *filename); filename 78 libltdl/ltdl.h LT_SCOPE lt_dlhandle lt_dlopenext (const char *filename); filename 79 libltdl/ltdl.h LT_SCOPE lt_dlhandle lt_dlopenadvise (const char *filename, filename 132 libltdl/ltdl.h char * filename; /* file name */ filename 66 pengine/pengine.c static char *filename = NULL; filename 155 pengine/pengine.c free(filename); filename 156 pengine/pengine.c filename = filename 160 pengine/pengine.c crm_xml_add(reply, F_CRM_TGRAPH_INPUT, filename); filename 191 pengine/pengine.c transition_id, filename); filename 195 pengine/pengine.c transition_id, filename); filename 199 pengine/pengine.c transition_id, filename); filename 208 pengine/pengine.c unlink(filename); filename 210 pengine/pengine.c write_xml_file(xml_data, filename, HAVE_BZLIB_H); filename 213 pengine/pengine.c crm_trace("Not writing out %s: %d & %d", filename, is_repoke, series_wrap); filename 3204 tools/crm_mon.c print_html_status(pe_working_set_t * data_set, const char *filename) filename 3216 tools/crm_mon.c filename_tmp = crm_concat(filename, "tmp", '.'); filename 3319 tools/crm_mon.c if (rename(filename_tmp, filename) != 0) { filename 3320 tools/crm_mon.c crm_perror(LOG_ERR, "Unable to rename %s->%s", filename_tmp, filename);