Lines Matching defs:action
170 static void print_local_action(int action, int *signalp, char *format);
183 " -n name [-srx] [-v value] [-p pid ] [-e | -d action]\n"
193 " -e enable action of first rctl value of matching privilege,\n"
195 " -d disable action of first rctl value of matching privilege,\n"
480 /* parse action */
530 "cannot use action 'all' with -e"));
539 warn(gettext("action invalid"));
1683 int action;
1685 action = rctlblk_get_local_action(blk, &signal);
1692 action = action | arg_action;
1693 /* add local action */
1694 rctlblk_set_local_action(blk, action, signal);
1706 "does not match existing action"));
1710 /* remove local action */
1711 action = action & (~arg_action);
1713 rctlblk_set_local_action(blk, action, signal);
1717 rctlblk_set_local_action(blk, RCTL_LOCAL_DENY | action,
1933 print_local_action(int action, int *signalp, char *format)
1942 if (action == RCTL_LOCAL_NOACTION) {
1946 if (action & RCTL_LOCAL_DENY) {
1950 if ((action & RCTL_LOCAL_DENY) &&
1951 (action & RCTL_LOCAL_SIGNAL)) {
1954 if (action & RCTL_LOCAL_SIGNAL) {
1970 (void) fprintf(stdout, format, action);