Lines Matching defs:line

32  *	associated command line to be invoked for each matching event.
34 * generating arbitrary command line formats from event-associated
191 * next_field() will not check any characters on next line.
192 * Each entry is composed of a single line.
415 fstrgets(str_t *line, FILE *fp)
419 resetstr(line);
421 if (strcatc(line, c))
426 if (line->s_len == 0)
428 return (line->s_str);
453 * '#' (number sign) at the beginning of a line indicates a
489 * arbitrary command line construction with event-specific data.
497 str_t *line;
523 if ((line = initstr(128)) == NULL)
526 while ((lp = fstrgets(line, fp)) != NULL) {
708 freestr(line);
1047 * be generated on the command line, put quotes around
1406 * generated command line.
1415 str_t *line, sysevent_hdr_info_t *hdr)
1426 syseventd_print(DBG_MACRO, " expanding macros: '%s'\n", line->s_str);
1431 for (p = line->s_str; *p != 0; p++, count++) {
1473 strtrunc(line, dollar_position);
1474 if (strcats(line, replacement->s_str)) {
1480 if (strcats(line, remainder->s_str)) {
1488 " with macro expanded: '%s'\n", line->s_str);
1660 str_t *line;
1667 if ((line = initstr(128)) == NULL)
1675 if (strcopys(line, argv0)) {
1676 freestr(line);
1681 if (strcats(line, " ")) {
1682 freestr(line);
1685 if (strcats(line, sep->se_args)) {
1686 freestr(line);
1694 freestr(line);
1697 if (expand_macros(ev, nvlist, sep, line, hdr)) {
1698 freestr(line);
1706 syseventd_print(DBG_EXEC, "%s, line %d: path = %s\n",
1708 syseventd_print(DBG_EXEC, " cmd = %s\n", line->s_str);
1713 freestr(line);
1722 if ((errno = nvlist_add_string(cmd_nvlist, "cmd", line->s_str)) != 0)
1727 if ((errno = nvlist_add_int32(cmd_nvlist, "line", sep->se_lineno)) != 0)
1748 freestr(line);
1753 freestr(line);
1786 freestr(line);
2110 syseventd_print(DBG_MATCHES, " event match: %s, line %d\n",