opaque 155 include/crm/services.h svc_action_private_t *opaque; opaque 213 lib/services/services.c op->opaque = calloc(1, sizeof(svc_action_private_t)); opaque 264 lib/services/services.c op->opaque->exec = buf; opaque 270 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 271 lib/services/services.c op->opaque->args[1] = strdup(op->action); opaque 274 lib/services/services.c op->opaque->exec = services__lsb_agent_path(op->agent); opaque 275 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 276 lib/services/services.c op->opaque->args[1] = strdup(op->action); opaque 280 lib/services/services.c op->opaque->exec = strdup("systemd-dbus"); opaque 284 lib/services/services.c op->opaque->exec = strdup("upstart-dbus"); opaque 288 lib/services/services.c op->opaque->exec = dup_file_path(op->agent, NAGIOS_PLUGIN_DIR); opaque 289 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 293 lib/services/services.c op->opaque->args[1] = strdup("--version"); opaque 300 lib/services/services.c static int args_size = sizeof(op->opaque->args) / sizeof(char *); opaque 310 lib/services/services.c op->opaque->args[index++] = crm_strdup_printf("--%s", key); opaque 311 lib/services/services.c op->opaque->args[index++] = strdup(value); opaque 358 lib/services/services.c op->opaque = calloc(1, sizeof(svc_action_private_t)); opaque 360 lib/services/services.c op->opaque->exec = strdup(exec); opaque 361 lib/services/services.c op->opaque->args[0] = strdup(exec); opaque 364 lib/services/services.c op->opaque->args[cur_arg] = strdup(args[cur_arg - 1]); opaque 366 lib/services/services.c if (cur_arg == PCMK__NELEM(op->opaque->args) - 1) { opaque 423 lib/services/services.c return crm_user_lookup(user, &(op->opaque->uid), &(op->opaque->gid)); opaque 441 lib/services/services.c action->opaque->callback = cb; opaque 456 lib/services/services.c if (op->opaque->pending && (op->opaque->pending != pending)) { opaque 458 lib/services/services.c crm_info("Lost pending %s DBus call (%p)", op->id, op->opaque->pending); opaque 460 lib/services/services.c crm_trace("Done with pending %s DBus call (%p)", op->id, op->opaque->pending); opaque 462 lib/services/services.c dbus_pending_call_unref(op->opaque->pending); opaque 464 lib/services/services.c op->opaque->pending = pending; opaque 476 lib/services/services.c if ((op == NULL) || (op->opaque == NULL)) { opaque 481 lib/services/services.c if(op->opaque->timerid != 0) { opaque 483 lib/services/services.c g_source_remove(op->opaque->timerid); opaque 484 lib/services/services.c op->opaque->timerid = 0; opaque 487 lib/services/services.c if(op->opaque->pending) { opaque 488 lib/services/services.c if (dbus_pending_call_get_completed(op->opaque->pending)) { opaque 496 lib/services/services.c dbus_pending_call_cancel(op->opaque->pending); opaque 501 lib/services/services.c if (op->opaque->stderr_gsource) { opaque 502 lib/services/services.c mainloop_del_fd(op->opaque->stderr_gsource); opaque 503 lib/services/services.c op->opaque->stderr_gsource = NULL; opaque 506 lib/services/services.c if (op->opaque->stdout_gsource) { opaque 507 lib/services/services.c mainloop_del_fd(op->opaque->stdout_gsource); opaque 508 lib/services/services.c op->opaque->stdout_gsource = NULL; opaque 533 lib/services/services.c if (op->opaque->repeat_timer) { opaque 534 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 535 lib/services/services.c op->opaque->repeat_timer = 0; opaque 539 lib/services/services.c free(op->opaque->exec); opaque 541 lib/services/services.c for (i = 0; i < PCMK__NELEM(op->opaque->args); i++) { opaque 542 lib/services/services.c free(op->opaque->args[i]); opaque 545 lib/services/services.c free(op->opaque); opaque 573 lib/services/services.c if (op->opaque->repeat_timer) { opaque 574 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 575 lib/services/services.c op->opaque->repeat_timer = 0; opaque 643 lib/services/services.c if (op->opaque->callback) { opaque 644 lib/services/services.c op->opaque->callback(op); opaque 675 lib/services/services.c if (op->opaque->repeat_timer) { opaque 676 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 677 lib/services/services.c op->opaque->repeat_timer = 0; opaque 703 lib/services/services.c if (op->opaque->callback) { opaque 704 lib/services/services.c dup->opaque->callback = op->opaque->callback; opaque 710 lib/services/services.c if (op->opaque->repeat_timer) { opaque 711 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 712 lib/services/services.c op->opaque->repeat_timer = 0; opaque 787 lib/services/services.c op->opaque->callback = action_callback; opaque 790 lib/services/services.c op->opaque->fork_callback = action_fork_callback; opaque 942 lib/services/services.c op->rsc, op->action, op->interval_ms, op->opaque->exec, op->rc); opaque 315 lib/services/services_linux.c return svc_read_output(op->opaque->stdout_fd, op, FALSE); opaque 323 lib/services/services_linux.c return svc_read_output(op->opaque->stderr_fd, op, TRUE); opaque 333 lib/services/services_linux.c op->opaque->stdout_gsource = NULL; opaque 334 lib/services/services_linux.c if (op->opaque->stdout_fd > STDOUT_FILENO) { opaque 335 lib/services/services_linux.c close(op->opaque->stdout_fd); opaque 337 lib/services/services_linux.c op->opaque->stdout_fd = -1; opaque 345 lib/services/services_linux.c op->opaque->stderr_gsource = NULL; opaque 346 lib/services/services_linux.c if (op->opaque->stderr_fd > STDERR_FILENO) { opaque 347 lib/services/services_linux.c close(op->opaque->stderr_fd); opaque 349 lib/services/services_linux.c op->opaque->stderr_fd = -1; opaque 451 lib/services/services_linux.c ret = write(op->opaque->stdin_fd, buffer + total, len - total); opaque 487 lib/services/services_linux.c op->opaque->repeat_timer = 0; opaque 505 lib/services/services_linux.c op->opaque->repeat_timer = g_timeout_add(op->interval_ms, opaque 510 lib/services/services_linux.c if (op->opaque->callback) { opaque 511 lib/services/services_linux.c op->opaque->callback(op); opaque 534 lib/services/services_linux.c if (op->opaque->stdin_fd >= 0) { opaque 535 lib/services/services_linux.c close(op->opaque->stdin_fd); opaque 546 lib/services/services_linux.c source = &(op->opaque->stderr_gsource); opaque 547 lib/services/services_linux.c fd = op->opaque->stderr_fd; opaque 549 lib/services/services_linux.c source = &(op->opaque->stdout_gsource); opaque 550 lib/services/services_linux.c fd = op->opaque->stdout_fd; opaque 732 lib/services/services_linux.c if (op->opaque->uid && (geteuid() == 0)) { opaque 735 lib/services/services_linux.c if (op->opaque->gid && (setgid(op->opaque->gid) < 0)) { opaque 736 lib/services/services_linux.c crm_perror(LOG_ERR, "Could not set child group to %d", op->opaque->gid); opaque 748 lib/services/services_linux.c if (setuid(op->opaque->uid) < 0) { opaque 749 lib/services/services_linux.c crm_perror(LOG_ERR, "setting user to %d", op->opaque->uid); opaque 755 lib/services/services_linux.c execvp(op->opaque->exec, op->opaque->args); opaque 772 lib/services/services_linux.c fds[0].fd = op->opaque->stdout_fd; opaque 776 lib/services/services_linux.c fds[1].fd = op->opaque->stderr_fd; opaque 791 lib/services/services_linux.c svc_read_output(op->opaque->stdout_fd, op, FALSE); opaque 795 lib/services/services_linux.c svc_read_output(op->opaque->stderr_fd, op, TRUE); opaque 890 lib/services/services_linux.c if(stat(op->opaque->exec, &st) != 0) { opaque 893 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); opaque 904 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); opaque 918 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); opaque 934 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); opaque 960 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); opaque 979 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(errno), errno); opaque 987 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(errno), errno); opaque 996 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(errno), errno); opaque 1016 lib/services/services_linux.c op->opaque->stdout_fd = stdout_fd[0]; opaque 1017 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stdout_fd); opaque 1021 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); opaque 1024 lib/services/services_linux.c op->opaque->stderr_fd = stderr_fd[0]; opaque 1025 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stderr_fd); opaque 1029 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); opaque 1032 lib/services/services_linux.c op->opaque->stdin_fd = stdin_fd[1]; opaque 1033 lib/services/services_linux.c if (op->opaque->stdin_fd >= 0) { opaque 1036 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stdin_fd); opaque 1039 lib/services/services_linux.c CRM_XS " fd=%d,rc=%d", op->opaque->exec, opaque 1040 lib/services/services_linux.c pcmk_rc_str(rc), op->opaque->stdin_fd, rc); opaque 1044 lib/services/services_linux.c close(op->opaque->stdin_fd); opaque 1045 lib/services/services_linux.c op->opaque->stdin_fd = -1; opaque 1049 lib/services/services_linux.c if (op->opaque->fork_callback) { opaque 1050 lib/services/services_linux.c op->opaque->fork_callback(op); opaque 1057 lib/services/services_linux.c crm_trace("Waiting async for '%s'[%d]", op->opaque->exec, op->pid); opaque 1066 lib/services/services_linux.c op->opaque->stdout_gsource = mainloop_add_fd(op->id, opaque 1068 lib/services/services_linux.c op->opaque->stdout_fd, op, &stdout_callbacks); opaque 1070 lib/services/services_linux.c op->opaque->stderr_gsource = mainloop_add_fd(op->id, opaque 1072 lib/services/services_linux.c op->opaque->stderr_fd, op, &stderr_callbacks); opaque 302 lib/services/systemd.c crm_trace("Got result: %p for %p / %p for %s", reply, pending, op->opaque->pending, op->id); opaque 304 lib/services/systemd.c CRM_LOG_ASSERT(pending == op->opaque->pending); opaque 589 lib/services/systemd.c CRM_LOG_ASSERT(pending == op->opaque->pending); opaque 824 lib/services/systemd.c op->opaque->timerid = 0; opaque 859 lib/services/systemd.c if (op->opaque->pending) { opaque 860 lib/services/systemd.c op->opaque->timerid = g_timeout_add(op->timeout + 5000, systemd_timeout_callback, op); opaque 406 lib/services/upstart.c CRM_LOG_ASSERT(pending == op->opaque->pending);