• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/curl-78.94.1/curl/lib/

Lines Matching defs:wildcard

3334       data->set.chunk_end(data->wildcard.customptr);
3860 struct WildcardData *wildcard = &(conn->data->wildcard);
3868 wildcard->state = CURLWC_CLEAN;
3873 wildcard->pattern = strdup(last_slash);
3874 if(!wildcard->pattern)
3879 else { /* there is only 'wildcard pattern' or nothing */
3881 wildcard->pattern = strdup(path);
3882 if(!wildcard->pattern)
3887 wildcard->state = CURLWC_CLEAN;
3894 resources for wildcard transfer */
3896 /* allocate ftp protocol specific temporary wildcard data */
3899 Curl_safefree(wildcard->pattern);
3906 Curl_safefree(wildcard->pattern);
3911 wildcard->tmp = ftp_tmp; /* put it to the WildcardData tmp pointer */
3912 wildcard->tmp_dtor = wc_data_dtor;
3914 /* wildcard does not support NOCWD option (assert it?) */
3921 Curl_safefree(wildcard->pattern);
3922 wildcard->tmp_dtor(wildcard->tmp);
3923 wildcard->tmp_dtor = ZERO_NULL;
3924 wildcard->tmp = NULL;
3928 wildcard->path = strdup(conn->data->state.path);
3929 if(!wildcard->path) {
3930 Curl_safefree(wildcard->pattern);
3931 wildcard->tmp_dtor(wildcard->tmp);
3932 wildcard->tmp_dtor = ZERO_NULL;
3933 wildcard->tmp = NULL;
3953 struct WildcardData * const wildcard = &(conn->data->wildcard);
3956 switch (wildcard->state) {
3959 if(wildcard->state == CURLWC_CLEAN)
3963 wildcard->state = ret ? CURLWC_ERROR : CURLWC_MATCHING;
3969 struct ftp_wc_tmpdata *ftp_tmp = wildcard->tmp;
3974 wildcard->state = CURLWC_DOWNLOADING;
3978 wildcard->state = CURLWC_CLEAN;
3981 else if(wildcard->filelist->size == 0) {
3983 wildcard->state = CURLWC_CLEAN;
3992 struct curl_fileinfo *finfo = wildcard->filelist->head->ptr;
3994 char *tmp_path = aprintf("%s%s", wildcard->path, finfo->filename);
4007 finfo, wildcard->customptr, (int)wildcard->filelist->size);
4012 wildcard->state = CURLWC_SKIP;
4020 wildcard->state = CURLWC_SKIP;
4033 Curl_llist_remove(wildcard->filelist, wildcard->filelist->head, NULL);
4035 if(wildcard->filelist->size == 0) { /* remains only one file to down. */
4036 wildcard->state = CURLWC_CLEAN;
4045 conn->data->set.chunk_end(conn->data->wildcard.customptr);
4046 Curl_llist_remove(wildcard->filelist, wildcard->filelist->head, NULL);
4047 wildcard->state = (wildcard->filelist->size == 0) ?
4053 struct ftp_wc_tmpdata *ftp_tmp = wildcard->tmp;
4058 wildcard->state = ret ? CURLWC_ERROR : CURLWC_DONE;
4099 if(conn->data->wildcard.state == CURLWC_SKIP ||
4100 conn->data->wildcard.state == CURLWC_DONE) {
4107 else { /* no wildcard FSM needed */