Lines Matching refs:finfo

279                                     struct curl_fileinfo *finfo)  in ftp_pl_insert_finfo()  argument
289 char *str = finfo->b_data; in ftp_pl_insert_finfo()
290 finfo->filename = str + parser->offsets.filename; in ftp_pl_insert_finfo()
291 finfo->strings.group = parser->offsets.group ? in ftp_pl_insert_finfo()
293 finfo->strings.perm = parser->offsets.perm ? in ftp_pl_insert_finfo()
295 finfo->strings.target = parser->offsets.symlink_target ? in ftp_pl_insert_finfo()
297 finfo->strings.time = str + parser->offsets.time; in ftp_pl_insert_finfo()
298 finfo->strings.user = parser->offsets.user ? in ftp_pl_insert_finfo()
308 finfo->filename) == 0) { in ftp_pl_insert_finfo()
310 if((finfo->filetype == CURLFILETYPE_SYMLINK) && finfo->strings.target && in ftp_pl_insert_finfo()
311 (strstr(finfo->strings.target, " -> "))) { in ftp_pl_insert_finfo()
320 if(!Curl_llist_insert_next(llist, llist->tail, finfo)) { in ftp_pl_insert_finfo()
321 Curl_fileinfo_dtor(NULL, finfo); in ftp_pl_insert_finfo()
327 Curl_fileinfo_dtor(NULL, finfo); in ftp_pl_insert_finfo()
341 struct curl_fileinfo *finfo; in Curl_ftp_parselist() local
380 finfo = parser->file_data; in Curl_ftp_parselist()
381 finfo->b_data[finfo->b_used++] = c; in Curl_ftp_parselist()
383 if(finfo->b_used >= finfo->b_size - 1) { in Curl_ftp_parselist()
385 char *tmp = realloc(finfo->b_data, in Curl_ftp_parselist()
386 finfo->b_size + FTP_BUFFER_ALLOCSIZE); in Curl_ftp_parselist()
388 finfo->b_size += FTP_BUFFER_ALLOCSIZE; in Curl_ftp_parselist()
389 finfo->b_data = tmp; in Curl_ftp_parselist()
413 finfo->b_used = 0; in Curl_ftp_parselist()
421 finfo->b_used--; in Curl_ftp_parselist()
424 finfo->b_data[parser->item_length - 1] = 0; in Curl_ftp_parselist()
425 if(strncmp("total ", finfo->b_data, 6) == 0) { in Curl_ftp_parselist()
426 char *endptr = finfo->b_data+6; in Curl_ftp_parselist()
439 finfo->b_used = 0; in Curl_ftp_parselist()
453 finfo->filetype = CURLFILETYPE_FILE; in Curl_ftp_parselist()
456 finfo->filetype = CURLFILETYPE_DIRECTORY; in Curl_ftp_parselist()
459 finfo->filetype = CURLFILETYPE_SYMLINK; in Curl_ftp_parselist()
462 finfo->filetype = CURLFILETYPE_NAMEDPIPE; in Curl_ftp_parselist()
465 finfo->filetype = CURLFILETYPE_SOCKET; in Curl_ftp_parselist()
468 finfo->filetype = CURLFILETYPE_DEVICE_CHAR; in Curl_ftp_parselist()
471 finfo->filetype = CURLFILETYPE_DEVICE_BLOCK; in Curl_ftp_parselist()
474 finfo->filetype = CURLFILETYPE_DOOR; in Curl_ftp_parselist()
498 finfo->b_data[10] = 0; /* terminate permissions */ in Curl_ftp_parselist()
499 perm = ftp_pl_get_permission(finfo->b_data + parser->item_offset); in Curl_ftp_parselist()
518 parser->item_offset = finfo->b_used - 1; in Curl_ftp_parselist()
533 finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; in Curl_ftp_parselist()
534 hlinks = strtol(finfo->b_data + parser->item_offset, &p, 10); in Curl_ftp_parselist()
555 parser->item_offset = finfo->b_used - 1; in Curl_ftp_parselist()
563 finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; in Curl_ftp_parselist()
577 parser->item_offset = finfo->b_used - 1; in Curl_ftp_parselist()
585 finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; in Curl_ftp_parselist()
600 parser->item_offset = finfo->b_used - 1; in Curl_ftp_parselist()
615 finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; in Curl_ftp_parselist()
616 fsize = curlx_strtoofft(finfo->b_data+parser->item_offset, &p, 10); in Curl_ftp_parselist()
639 parser->item_offset = finfo->b_used -1; in Curl_ftp_parselist()
696 finfo->b_data[parser->item_offset + parser->item_length -1] = 0; in Curl_ftp_parselist()
703 if(finfo->filetype == CURLFILETYPE_SYMLINK) { in Curl_ftp_parselist()
723 parser->item_offset = finfo->b_used - 1; in Curl_ftp_parselist()
734 finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; in Curl_ftp_parselist()
737 result = ftp_pl_insert_finfo(conn, finfo); in Curl_ftp_parselist()
746 finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; in Curl_ftp_parselist()
749 result = ftp_pl_insert_finfo(conn, finfo); in Curl_ftp_parselist()
766 parser->item_offset = finfo->b_used - 1; in Curl_ftp_parselist()
812 finfo->b_data[parser->item_offset + parser->item_length - 4] = 0; in Curl_ftp_parselist()
828 parser->item_offset = finfo->b_used - 1; in Curl_ftp_parselist()
842 finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; in Curl_ftp_parselist()
844 result = ftp_pl_insert_finfo(conn, finfo); in Curl_ftp_parselist()
854 finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; in Curl_ftp_parselist()
856 result = ftp_pl_insert_finfo(conn, finfo); in Curl_ftp_parselist()
908 finfo->b_data[parser->item_offset + parser->item_length -1] = 0; in Curl_ftp_parselist()
927 parser->item_offset = finfo->b_used - 1; in Curl_ftp_parselist()
935 finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; in Curl_ftp_parselist()
936 if(strcmp("<DIR>", finfo->b_data + parser->item_offset) == 0) { in Curl_ftp_parselist()
937 finfo->filetype = CURLFILETYPE_DIRECTORY; in Curl_ftp_parselist()
938 finfo->size = 0; in Curl_ftp_parselist()
942 finfo->size = curlx_strtoofft(finfo->b_data + in Curl_ftp_parselist()
946 if(finfo->size == CURL_OFF_T_MAX || in Curl_ftp_parselist()
947 finfo->size == CURL_OFF_T_MIN) { in Curl_ftp_parselist()
974 parser->item_offset = finfo->b_used -1; in Curl_ftp_parselist()
983 finfo->b_data[finfo->b_used - 1] = 0; in Curl_ftp_parselist()
987 finfo->b_data[finfo->b_used - 1] = 0; in Curl_ftp_parselist()
989 result = ftp_pl_insert_finfo(conn, finfo); in Curl_ftp_parselist()
1001 result = ftp_pl_insert_finfo(conn, finfo); in Curl_ftp_parselist()