Lines Matching defs:line

175 	/* skip over whitespace and data at start of line */
259 /** Check if a line contains data (besides comments) */
482 return NULL; /* empty line */
515 * @param str: comments line
796 parse_int(char* line, int* ret)
799 unsigned int x = (unsigned int)strtol(line, &e, 10);
800 if(line == e) {
810 parse_id(struct val_anchors* anchors, char* line)
818 char* next = strchr(line, ' ');
822 dname = sldns_str2wire_dname(line, &dname_len);
841 * @param line: to parse
845 * @return: 0 no match, -1 failed syntax error, +1 success line read.
849 parse_var_line(char* line, struct val_anchors* anchors,
854 if(strncmp(line, ";;id: ", 6) == 0) {
855 *anchor = parse_id(anchors, line+6);
858 } else if(strncmp(line, ";;REVOKED", 9) == 0) {
864 } else if(strncmp(line, ";;last_queried: ", 16) == 0) {
867 tp->autr->last_queried = (time_t)parse_int(line+16, &r);
869 } else if(strncmp(line, ";;last_success: ", 16) == 0) {
872 tp->autr->last_success = (time_t)parse_int(line+16, &r);
874 } else if(strncmp(line, ";;next_probe_time: ", 19) == 0) {
879 tp->autr->next_probe_time = (time_t)parse_int(line+19, &r);
883 } else if(strncmp(line, ";;query_failed: ", 16) == 0) {
886 tp->autr->query_failed = (uint8_t)parse_int(line+16, &r);
888 } else if(strncmp(line, ";;query_interval: ", 18) == 0) {
891 tp->autr->query_interval = (time_t)parse_int(line+18, &r);
893 } else if(strncmp(line, ";;retry_time: ", 14) == 0) {
896 tp->autr->retry_time = (time_t)parse_int(line+14, &r);
904 handle_origin(char* line, uint8_t** origin, size_t* origin_len)
907 while(isspace((unsigned char)*line))
908 line++;
909 if(strncmp(line, "$ORIGIN", 7) != 0)
912 line += 7;
913 while(isspace((unsigned char)*line))
914 line++;
915 *origin = sldns_str2wire_dname(line, &len);
922 /** Read one line and put multiline RRs onto one line string */
934 /* check what the new depth is after the line */
951 /* normal oneline or last line: keeps newline and comments */
968 log_err("line too long");
989 /* keep track of line numbers */
991 /* single line */
992 char line[10240];
1006 while ( (r=read_multiline(line, sizeof(line), fd, &line_nr)) != 0) {
1007 if(r == -1 || (r = parse_var_line(line, anchors, &tp)) == -1) {
1009 "%s line %d", nm, line_nr);
1023 if (!str_contains_data(line, ';'))
1025 if(handle_origin(line, &origin, &origin_len))
1028 if(!(tp2=load_trustanchor(anchors, line, nm, origin,
1031 "at line %i, skipping", nm, line_nr);