Home
last modified time | relevance | path

Searched refs:role2str (Results 1 – 14 of 14) sorted by relevance

/freebsd-14.2/sbin/hastd/
H A Dcontrol.c98 nv_add_string(nvout, role2str(res->hr_role), "role%u", no); in control_set_role_common()
104 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in control_set_role_common()
105 pjdlog_info("Role changed to %s.", role2str(role)); in control_set_role_common()
110 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in control_set_role_common()
137 hook_exec(res->hr_exec, "role", res->hr_name, role2str(oldrole), in control_set_role_common()
138 role2str(res->hr_role), NULL); in control_set_role_common()
282 nv_add_string(nvout, role2str(res->hr_role), "role%u", no); in control_status()
H A Dhastd.c186 role2str(res->hr_role)); in descriptors_assert()
302 role2str(res->hr_role)); in descriptors_assert()
346 role2str(res->hr_role)); in child_exit()
363 role2str(res->hr_role)); in child_exit()
733 res->hr_name, role2str(res->hr_role), res->hr_workerpid); in terminate_workers()
738 res->hr_name, role2str(res->hr_role), res->hr_workerpid); in terminate_workers()
838 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in listen_accept()
849 role2str(res->hr_role), role2str(HAST_ROLE_SECONDARY), in listen_accept()
853 role2str(res->hr_role), role2str(HAST_ROLE_SECONDARY)); in listen_accept()
992 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in connection_migrate()
H A Dsubr.h53 const char *role2str(int role);
H A Dsubr.c138 role2str(int role) in role2str() function
189 res->hr_name, role2str(res->hr_role)); in drop_privs()
H A Devent.c136 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in event_recv()
H A Dmetadata.c202 nv_add_string(nv, role2str(res->hr_role), "prevrole"); in metadata_write()
H A Dsecondary.c471 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in hastd_secondary()
472 setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role)); in hastd_secondary()
H A Dprimary.c1034 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in hastd_primary()
1035 setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role)); in hastd_primary()
1071 role2str(HAST_ROLE_SECONDARY), in hastd_primary()
1083 role2str(HAST_ROLE_PRIMARY)); in hastd_primary()
/freebsd-14.2/contrib/openbsm/bin/auditdistd/
H A Dauditdistd.c172 role2str(adhost->adh_role)); in child_exit()
188 role2str(adhost->adh_role)); in child_exit()
213 adhost->adh_name, role2str(adhost->adh_role), in terminate_workers()
219 adhost->adh_name, role2str(adhost->adh_role), in terminate_workers()
322 role2str(adhost->adh_role)); in listen_accept()
426 role2str(adhost->adh_role)); in connection_migrate()
601 pjdlog_debug(2, " role: %s", role2str(adhost->adh_role)); in adist_config_dump()
H A Dsubr.h45 const char *role2str(int role);
H A Dreceiver.c682 role2str(adhost->adh_role)); in adist_receiver()
684 setproctitle("%s (%s)", adhost->adh_name, role2str(adhost->adh_role)); in adist_receiver()
700 role2str(adhost->adh_role), adhost->adh_name) != 0) { in adist_receiver()
H A Dsender.c790 role2str(adhost->adh_role)); in adist_sender()
793 role2str(adhost->adh_role)); in adist_sender()
806 role2str(adhost->adh_role), adhost->adh_name) != 0) { in adist_sender()
H A Dsubr.c75 role2str(int role) in role2str() function
/freebsd-14.2/sbin/hastctl/
H A Dhastctl.c217 printf(" prevrole: %s\n", role2str(res->hr_previous_role)); in dump_one()