opaque 158 include/crm/services.h svc_action_private_t *opaque; opaque 210 lib/services/services.c op->opaque = calloc(1, sizeof(svc_action_private_t)); opaque 238 lib/services/services.c op->opaque->exec = crm_strdup_printf("%s/resource.d/%s/%s", opaque 240 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 241 lib/services/services.c op->opaque->args[1] = strdup(op->action); opaque 244 lib/services/services.c op->opaque->exec = services__lsb_agent_path(op->agent); opaque 245 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 246 lib/services/services.c op->opaque->args[1] = strdup(op->action); opaque 250 lib/services/services.c op->opaque->exec = strdup("systemd-dbus"); opaque 254 lib/services/services.c op->opaque->exec = strdup("upstart-dbus"); opaque 258 lib/services/services.c op->opaque->exec = dup_file_path(op->agent, NAGIOS_PLUGIN_DIR); opaque 259 lib/services/services.c op->opaque->args[0] = strdup(op->opaque->exec); opaque 263 lib/services/services.c op->opaque->args[1] = strdup("--version"); opaque 270 lib/services/services.c static int args_size = sizeof(op->opaque->args) / sizeof(char *); opaque 280 lib/services/services.c op->opaque->args[index++] = crm_strdup_printf("--%s", key); opaque 281 lib/services/services.c op->opaque->args[index++] = strdup(value); opaque 317 lib/services/services.c op->opaque = calloc(1, sizeof(svc_action_private_t)); opaque 319 lib/services/services.c op->opaque->exec = strdup(exec); opaque 320 lib/services/services.c op->opaque->args[0] = strdup(exec); opaque 323 lib/services/services.c op->opaque->args[cur_arg] = strdup(args[cur_arg - 1]); opaque 325 lib/services/services.c if (cur_arg == DIMOF(op->opaque->args) - 1) { opaque 382 lib/services/services.c return crm_user_lookup(user, &(op->opaque->uid), &(op->opaque->gid)); opaque 400 lib/services/services.c action->opaque->callback = cb; opaque 415 lib/services/services.c if (op->opaque->pending && (op->opaque->pending != pending)) { opaque 417 lib/services/services.c crm_info("Lost pending %s DBus call (%p)", op->id, op->opaque->pending); opaque 419 lib/services/services.c crm_trace("Done with pending %s DBus call (%p)", op->id, op->opaque->pending); opaque 421 lib/services/services.c dbus_pending_call_unref(op->opaque->pending); opaque 423 lib/services/services.c op->opaque->pending = pending; opaque 435 lib/services/services.c if ((op == NULL) || (op->opaque == NULL)) { opaque 440 lib/services/services.c if(op->opaque->timerid != 0) { opaque 442 lib/services/services.c g_source_remove(op->opaque->timerid); opaque 443 lib/services/services.c op->opaque->timerid = 0; opaque 446 lib/services/services.c if(op->opaque->pending) { opaque 447 lib/services/services.c if (dbus_pending_call_get_completed(op->opaque->pending)) { opaque 455 lib/services/services.c dbus_pending_call_cancel(op->opaque->pending); opaque 460 lib/services/services.c if (op->opaque->stderr_gsource) { opaque 461 lib/services/services.c mainloop_del_fd(op->opaque->stderr_gsource); opaque 462 lib/services/services.c op->opaque->stderr_gsource = NULL; opaque 465 lib/services/services.c if (op->opaque->stdout_gsource) { opaque 466 lib/services/services.c mainloop_del_fd(op->opaque->stdout_gsource); opaque 467 lib/services/services.c op->opaque->stdout_gsource = NULL; opaque 492 lib/services/services.c if (op->opaque->repeat_timer) { opaque 493 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 494 lib/services/services.c op->opaque->repeat_timer = 0; opaque 498 lib/services/services.c free(op->opaque->exec); opaque 500 lib/services/services.c for (i = 0; i < DIMOF(op->opaque->args); i++) { opaque 501 lib/services/services.c free(op->opaque->args[i]); opaque 504 lib/services/services.c free(op->opaque); opaque 532 lib/services/services.c if (op->opaque->repeat_timer) { opaque 533 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 534 lib/services/services.c op->opaque->repeat_timer = 0; opaque 602 lib/services/services.c if (op->opaque->callback) { opaque 603 lib/services/services.c op->opaque->callback(op); opaque 634 lib/services/services.c if (op->opaque->repeat_timer) { opaque 635 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 636 lib/services/services.c op->opaque->repeat_timer = 0; opaque 662 lib/services/services.c if (op->opaque->callback) { opaque 663 lib/services/services.c dup->opaque->callback = op->opaque->callback; opaque 669 lib/services/services.c if (op->opaque->repeat_timer) { opaque 670 lib/services/services.c g_source_remove(op->opaque->repeat_timer); opaque 671 lib/services/services.c op->opaque->repeat_timer = 0; opaque 746 lib/services/services.c op->opaque->callback = action_callback; opaque 749 lib/services/services.c op->opaque->fork_callback = action_fork_callback; opaque 901 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 820 lib/services/systemd.c op->opaque->timerid = 0; opaque 855 lib/services/systemd.c if (op->opaque->pending) { opaque 856 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);