Lines Matching defs:line

33 static void extract_fname_ftype(char *line, char *fname, char *type);
41 char **line, char *fname);
42 static void parse_line(char *line, char *fname, char *type, char *size,
46 static void get_token(char *line, int *curr_pos, int line_len, char *buf,
229 parse_line(char *line, char *fname, char *type, char *size, char *mode,
235 line_len = strlen(line);
238 get_token(line, &pos, line_len, fname, PATH_MAX);
239 get_token(line, &pos, line_len, type, TYPE_SIZE);
240 get_token(line, &pos, line_len, size, MISC_SIZE);
241 get_token(line, &pos, line_len, mode, MISC_SIZE);
242 get_token(line, &pos, line_len, acl, ACL_SIZE);
243 get_token(line, &pos, line_len, mtime, MISC_SIZE);
244 get_token(line, &pos, line_len, uid, MISC_SIZE);
245 get_token(line, &pos, line_len, gid, MISC_SIZE);
255 get_token(line, &pos, line_len, contents, PATH_MAX);
257 get_token(line, &pos, line_len, devnode, PATH_MAX);
259 get_token(line, &pos, line_len, dest, PATH_MAX);
263 get_token(char *line, int *curr_pos, int line_len, char *buf, int buf_size)
267 while (isspace(line[*curr_pos]) && (*curr_pos < line_len))
270 while (!isspace(line[*curr_pos]) &&
272 buf[cnt] = line[*curr_pos];
280 * Utility function: extract fname and type from this line
283 extract_fname_ftype(char *line, char *fname, char *type)
288 line_len = strlen(line);
290 get_token(line, &pos, line_len, fname, PATH_MAX);
291 get_token(line, &pos, line_len, type, TYPE_SIZE);
512 /* Ensure a line is not printed for the initial case */
529 * Function responsible for reading in a line from the manifest.
530 * Takes in the file ptr and a buffer, parses the buffer and sets the 'line'
536 char **line, char *fname)
549 *line = buf;
555 if ((*line[0] == '!') || (*line[0] == '#'))
568 *line = &(buf[end_pos]);
570 if ((*line[0] == '!') || (*line[0] == '#'))
594 *line = &(buf[end_pos]);
602 /* Found the end of the line, normal exit */
623 *line = buf;
632 /* Found the end of the line, normal exit */