Lines Matching defs:line
689 "service and should not be run from the command line.");
899 char line[LINE_MAX];
912 while (fgets(line, sizeof (line), fp) != NULL) {
915 if ((err = vrrpd_read_vrconf(line, &conf)) != VRRP_SUCCESS) {
916 vrrp_log(VRRP_ERR, "failed to parse %d line %s",
917 linenum, line);
922 * Blank or comment line
2001 char line[LINE_MAX];
2040 while (fgets(line, sizeof (line), fp) != NULL) {
2042 if (!found && (err = vrrpd_read_vrconf(line, &conf)) !=
2045 "configuration format: %s", line);
2050 * Write this line out if:
2051 * - this is a comment line; or
2053 * - if the name of the VR read from this line does not match
2058 if (fputs(line, nfp) != EOF)
2062 "write line %s", line);
2068 * Otherwise, update/skip the line.
2075 if ((err = vrrpd_write_vrconf(line, sizeof (line),
2081 if (fputs(line, nfp) == EOF) {
2083 "write line %s", line);
2094 if ((err = vrrpd_write_vrconf(line, sizeof (line),
2095 newconf)) == VRRP_SUCCESS && fputs(line, nfp) == EOF) {
2097 "write line %s", line);
2123 vrrpd_write_vrconf(char *line, size_t len, vrrp_vr_conf_t *conf)
2132 n = snprintf(line, len, i == 0 ? "%s=" : " %s=",
2137 line += n;
2138 n = prop->vs_propwrite(conf, line, len);
2142 line += n;
2149 n = snprintf(line, len, "\n");
2159 vrrpd_read_vrconf(char *line, vrrp_vr_conf_t *conf)
2167 (void) strlcpy(tmpbuf, line, MAXLINELEN);