opaque 195 include/crm/services.h svc_action_private_t *opaque; opaque 206 lib/services/services.c op->opaque = calloc(1, sizeof(svc_action_private_t)); opaque 230 lib/services/services.c if (asprintf(&op->opaque->exec, "%s/resource.d/%s/%s", OCF_ROOT_DIR, provider, agent) == -1) { opaque 234 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 235 lib/services/services.c op->opaque->args[1] = strdup(action); opaque 241 lib/services/services.c op->opaque->exec = strdup(op->agent); opaque 242 lib/services/services.c } else if (asprintf(&op->opaque->exec, "%s/%s", LSB_ROOT_DIR, op->agent) == -1) { opaque 246 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 247 lib/services/services.c op->opaque->args[1] = strdup(op->action); opaque 248 lib/services/services.c op->opaque->args[2] = NULL; opaque 259 lib/services/services.c op->opaque->exec = strdup(op->agent); opaque 260 lib/services/services.c } else if (asprintf(&op->opaque->exec, "%s/%s", HB_RA_DIR, op->agent) == -1) { opaque 264 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 278 lib/services/services.c op->opaque->args[param_num++] = strdup(value_tmp); opaque 284 lib/services/services.c op->opaque->args[param_num++] = strdup(op->action); opaque 285 lib/services/services.c op->opaque->args[param_num] = NULL; opaque 289 lib/services/services.c op->opaque->exec = strdup("systemd-dbus"); opaque 293 lib/services/services.c op->opaque->exec = strdup("upstart-dbus"); opaque 302 lib/services/services.c op->opaque->exec = strdup(op->agent); opaque 304 lib/services/services.c } else if (asprintf(&op->opaque->exec, "%s/%s", NAGIOS_PLUGIN_DIR, op->agent) == -1) { opaque 309 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 314 lib/services/services.c op->opaque->args[index] = strdup("--version"); opaque 321 lib/services/services.c static int args_size = sizeof(op->opaque->args) / sizeof(char *); opaque 339 lib/services/services.c op->opaque->args[index] = long_opt; opaque 340 lib/services/services.c op->opaque->args[index + 1] = strdup(value); opaque 344 lib/services/services.c op->opaque->args[index] = NULL; opaque 373 lib/services/services.c op->opaque = calloc(1, sizeof(svc_action_private_t)); opaque 375 lib/services/services.c op->opaque->exec = strdup(exec); opaque 376 lib/services/services.c op->opaque->args[0] = strdup(exec); opaque 379 lib/services/services.c op->opaque->args[cur_arg] = strdup(args[cur_arg - 1]); opaque 381 lib/services/services.c if (cur_arg == DIMOF(op->opaque->args) - 1) { opaque 438 lib/services/services.c return crm_user_lookup(user, &(op->opaque->uid), &(op->opaque->gid)); opaque 487 lib/services/services.c action->opaque->callback = cb; opaque 509 lib/services/services.c if (op->opaque->pending && (op->opaque->pending != pending)) { opaque 511 lib/services/services.c crm_info("Lost pending %s DBus call (%p)", op->id, op->opaque->pending); opaque 513 lib/services/services.c crm_trace("Done with pending %s DBus call (%p)", op->id, op->opaque->pending); opaque 515 lib/services/services.c dbus_pending_call_unref(op->opaque->pending); opaque 517 lib/services/services.c op->opaque->pending = pending; opaque 529 lib/services/services.c if(op->opaque == NULL) { opaque 534 lib/services/services.c if(op->opaque->timerid != 0) { opaque 536 lib/services/services.c g_source_remove(op->opaque->timerid); opaque 537 lib/services/services.c op->opaque->timerid = 0; opaque 540 lib/services/services.c if(op->opaque->pending) { opaque 541 lib/services/services.c crm_trace("Cleaning up pending dbus call %p %s for %s", op->opaque->pending, op->action, op->rsc); opaque 542 lib/services/services.c if(dbus_pending_call_get_completed(op->opaque->pending)) { opaque 545 lib/services/services.c dbus_pending_call_cancel(op->opaque->pending); opaque 546 lib/services/services.c dbus_pending_call_unref(op->opaque->pending); opaque 547 lib/services/services.c op->opaque->pending = NULL; opaque 551 lib/services/services.c if (op->opaque->stderr_gsource) { opaque 552 lib/services/services.c mainloop_del_fd(op->opaque->stderr_gsource); opaque 553 lib/services/services.c op->opaque->stderr_gsource = NULL; opaque 556 lib/services/services.c if (op->opaque->stdout_gsource) { opaque 557 lib/services/services.c mainloop_del_fd(op->opaque->stdout_gsource); opaque 558 lib/services/services.c op->opaque->stdout_gsource = NULL; opaque 583 lib/services/services.c if (op->opaque->repeat_timer) { opaque 584 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 585 lib/services/services.c op->opaque->repeat_timer = 0; opaque 589 lib/services/services.c free(op->opaque->exec); opaque 591 lib/services/services.c for (i = 0; i < DIMOF(op->opaque->args); i++) { opaque 592 lib/services/services.c free(op->opaque->args[i]); opaque 595 lib/services/services.c free(op->opaque); opaque 623 lib/services/services.c if (op->opaque->repeat_timer) { opaque 624 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 625 lib/services/services.c op->opaque->repeat_timer = 0; opaque 690 lib/services/services.c if (op->opaque->callback) { opaque 691 lib/services/services.c op->opaque->callback(op); opaque 721 lib/services/services.c if (op->opaque->repeat_timer) { opaque 722 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 723 lib/services/services.c op->opaque->repeat_timer = 0; opaque 749 lib/services/services.c if (op->opaque->callback) { opaque 750 lib/services/services.c dup->opaque->callback = op->opaque->callback; opaque 756 lib/services/services.c if (op->opaque->repeat_timer) { opaque 757 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 758 lib/services/services.c op->opaque->repeat_timer = 0; opaque 831 lib/services/services.c op->opaque->callback = action_callback; opaque 1340 lib/services/services.c op->rsc, op->action, op->interval, op->opaque->exec, op->rc); opaque 98 lib/services/services_linux.c return svc_read_output(op->opaque->stdout_fd, op, FALSE); opaque 106 lib/services/services_linux.c return svc_read_output(op->opaque->stderr_fd, op, TRUE); opaque 116 lib/services/services_linux.c op->opaque->stdout_gsource = NULL; opaque 117 lib/services/services_linux.c if (op->opaque->stdout_fd > STDOUT_FILENO) { opaque 118 lib/services/services_linux.c close(op->opaque->stdout_fd); opaque 120 lib/services/services_linux.c op->opaque->stdout_fd = -1; opaque 128 lib/services/services_linux.c op->opaque->stderr_gsource = NULL; opaque 129 lib/services/services_linux.c if (op->opaque->stderr_fd > STDERR_FILENO) { opaque 130 lib/services/services_linux.c close(op->opaque->stderr_fd); opaque 132 lib/services/services_linux.c op->opaque->stderr_fd = -1; opaque 210 lib/services/services_linux.c op->opaque->repeat_timer = 0; opaque 228 lib/services/services_linux.c op->opaque->repeat_timer = g_timeout_add(op->interval, opaque 233 lib/services/services_linux.c if (op->opaque->callback) { opaque 234 lib/services/services_linux.c op->opaque->callback(op); opaque 264 lib/services/services_linux.c crm_trace("%s %p %p", prefix, op->opaque->stderr_gsource, op->opaque->stdout_gsource); opaque 265 lib/services/services_linux.c if (op->opaque->stderr_gsource) { opaque 272 lib/services/services_linux.c mainloop_del_fd(op->opaque->stderr_gsource); opaque 273 lib/services/services_linux.c op->opaque->stderr_gsource = NULL; opaque 276 lib/services/services_linux.c if (op->opaque->stdout_gsource) { opaque 283 lib/services/services_linux.c mainloop_del_fd(op->opaque->stdout_gsource); opaque 284 lib/services/services_linux.c op->opaque->stdout_gsource = NULL; opaque 429 lib/services/services_linux.c if (op->opaque->uid && (geteuid() == 0)) { opaque 430 lib/services/services_linux.c if (op->opaque->gid && (setgid(op->opaque->gid) < 0)) { opaque 431 lib/services/services_linux.c crm_perror(LOG_ERR, "setting group to %d", op->opaque->gid); opaque 434 lib/services/services_linux.c if (setuid(op->opaque->uid) < 0) { opaque 435 lib/services/services_linux.c crm_perror(LOG_ERR, "setting user to %d", op->opaque->uid); opaque 442 lib/services/services_linux.c execvp(op->opaque->exec, op->opaque->args); opaque 481 lib/services/services_linux.c fds[0].fd = op->opaque->stdout_fd; opaque 485 lib/services/services_linux.c fds[1].fd = op->opaque->stderr_fd; opaque 500 lib/services/services_linux.c svc_read_output(op->opaque->stdout_fd, op, FALSE); opaque 504 lib/services/services_linux.c svc_read_output(op->opaque->stderr_fd, op, TRUE); opaque 596 lib/services/services_linux.c svc_read_output(op->opaque->stdout_fd, op, FALSE); opaque 597 lib/services/services_linux.c svc_read_output(op->opaque->stderr_fd, op, TRUE); opaque 599 lib/services/services_linux.c close(op->opaque->stdout_fd); opaque 600 lib/services/services_linux.c close(op->opaque->stderr_fd); opaque 642 lib/services/services_linux.c if(stat(op->opaque->exec, &st) != 0) { opaque 644 lib/services/services_linux.c crm_warn("Cannot execute '%s': %s (%d)", op->opaque->exec, pcmk_strerror(rc), rc); opaque 655 lib/services/services_linux.c crm_err("pipe(stdout_fd) failed. '%s': %s (%d)", op->opaque->exec, pcmk_strerror(rc), rc); opaque 670 lib/services/services_linux.c crm_err("pipe(stderr_fd) failed. '%s': %s (%d)", op->opaque->exec, pcmk_strerror(rc), rc); opaque 727 lib/services/services_linux.c crm_err("Could not execute '%s': %s (%d)", op->opaque->exec, pcmk_strerror(rc), rc); opaque 764 lib/services/services_linux.c op->opaque->stdout_fd = stdout_fd[0]; opaque 765 lib/services/services_linux.c rc = crm_set_nonblocking(op->opaque->stdout_fd); opaque 772 lib/services/services_linux.c op->opaque->stderr_fd = stderr_fd[0]; opaque 773 lib/services/services_linux.c rc = crm_set_nonblocking(op->opaque->stderr_fd); opaque 785 lib/services/services_linux.c crm_trace("Async waiting for %d - %s", op->pid, op->opaque->exec); opaque 794 lib/services/services_linux.c op->opaque->stdout_gsource = mainloop_add_fd(op->id, opaque 796 lib/services/services_linux.c op->opaque->stdout_fd, op, &stdout_callbacks); opaque 798 lib/services/services_linux.c op->opaque->stderr_gsource = mainloop_add_fd(op->id, opaque 800 lib/services/services_linux.c op->opaque->stderr_fd, op, &stderr_callbacks); opaque 291 lib/services/systemd.c crm_trace("Got result: %p for %p / %p for %s", reply, pending, op->opaque->pending, op->id); opaque 293 lib/services/systemd.c CRM_LOG_ASSERT(pending == op->opaque->pending); opaque 563 lib/services/systemd.c CRM_LOG_ASSERT(pending == op->opaque->pending); opaque 746 lib/services/systemd.c op->opaque->timerid = 0; opaque 781 lib/services/systemd.c if (op->opaque->pending) { opaque 782 lib/services/systemd.c op->opaque->timerid = g_timeout_add(op->timeout + 5000, systemd_timeout_callback, op); opaque 405 lib/services/upstart.c CRM_LOG_ASSERT(pending == op->opaque->pending);