/curl/tests/libtest/ |
H A D | lib1534.c | 33 long filetime; in test() local 43 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime); in test() 49 if(filetime != -1) { in test() 51 __FILE__, __LINE__, filetime); in test() 69 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime); in test() 75 if(filetime != 30) { in test() 78 __FILE__, __LINE__, filetime); in test() 100 if(filetime != -1) { in test() 102 __FILE__, __LINE__, filetime); in test() 119 if(filetime != -1) { in test() [all …]
|
H A D | lib3027.c | 44 long filetime; in test() local 45 ret = curl_easy_getinfo(hnd, CURLINFO_FILETIME, &filetime); in test() 47 if((CURLE_OK == ret) && (filetime != -1)) { in test()
|
/curl/src/ |
H A D | tool_filetime.c | 91 void setfiletime(curl_off_t filetime, const char *filename, in setfiletime() argument 94 if(filetime >= 0) { in setfiletime() 104 if(filetime > CURL_OFF_T_C(910670515199)) { in setfiletime() 106 " on outfile: overflow", filetime); in setfiletime() 117 curl_off_t converted = ((curl_off_t)filetime * 10000000) + in setfiletime() 125 filetime, (unsigned int)GetLastError()); in setfiletime() 132 filetime, (unsigned int)GetLastError()); in setfiletime() 137 times[0].tv_sec = times[1].tv_sec = (time_t)filetime; in setfiletime() 141 " on '%s': %s", filetime, filename, strerror(errno)); in setfiletime() 146 times.actime = (time_t)filetime; in setfiletime() [all …]
|
H A D | tool_filetime.h | 35 void setfiletime(curl_off_t filetime, const char *filename,
|
H A D | tool_operate.c | 743 curl_off_t filetime = -1; in post_per_transfer() local 744 curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &filetime); in post_per_transfer() 745 setfiletime(filetime, outs->filename, global); in post_per_transfer()
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_FILETIME.md | 54 /* Ask for filetime */ 58 long filetime; 59 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime); 60 if((CURLE_OK == res) && (filetime >= 0)) { 61 time_t file_time = (time_t)filetime; 62 printf("filetime: %s", ctime(&file_time));
|
H A D | CURLINFO_FILETIME.md | 55 /* Ask for filetime */ 59 long filetime = 0; 60 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime); 61 if((CURLE_OK == res) && (filetime >= 0)) { 62 time_t file_time = (time_t)filetime; 63 printf("filetime: %s", ctime(&file_time));
|
H A D | CURLINFO_FILETIME_T.md | 56 /* Ask for filetime */ 60 curl_off_t filetime; 61 res = curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &filetime); 62 if((CURLE_OK == res) && (filetime >= 0)) { 63 time_t file_time = (time_t)filetime; 64 printf("filetime: %s", ctime(&file_time));
|
/curl/docs/examples/ |
H A D | ftpgetinfo.c | 48 long filetime = -1; in main() local 70 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime); in main() 71 if((CURLE_OK == res) && (filetime >= 0)) { in main() 72 time_t file_time = (time_t)filetime; in main()
|
/curl/lib/ |
H A D | file.c | 454 data->info.filetime = statbuf.st_mtime; in file_do() 459 !Curl_meets_timecondition(data, data->info.filetime)) in file_do() 463 time_t filetime; in file_do() local 483 filetime = (time_t)statbuf.st_mtime; in file_do() 484 result = Curl_gmtime(filetime, &buffer); in file_do()
|
H A D | getinfo.c | 65 info->filetime = -1; /* -1 is an illegal time and thus means unknown */ in Curl_initinfo() 239 if(data->info.filetime > LONG_MAX) in getinfo_long() 241 else if(data->info.filetime < LONG_MIN) in getinfo_long() 244 *param_longp = (long)data->info.filetime; in getinfo_long() 393 *param_offt = (curl_off_t)data->info.filetime; in getinfo_offt()
|
H A D | ftp.c | 2075 data->info.filetime = Curl_getdate_capped(timebuf); in ftp_state_mdtm_resp() 2085 (data->info.filetime >= 0) ) { in ftp_state_mdtm_resp() 2088 time_t filetime = data->info.filetime; in ftp_state_mdtm_resp() local 2092 result = Curl_gmtime(filetime, &buffer); in ftp_state_mdtm_resp() 2126 if((data->info.filetime > 0) && (data->set.timevalue > 0)) { in ftp_state_mdtm_resp() 2130 if(data->info.filetime <= data->set.timevalue) { in ftp_state_mdtm_resp() 2139 if(data->info.filetime > data->set.timevalue) { in ftp_state_mdtm_resp()
|
H A D | urldata.h | 1024 time_t filetime; /* If requested, this is might get set. Set to -1 if the member
|
H A D | smb.c | 1014 get_posix_time(&data->info.filetime, smb_m->last_change_time); in smb_request_state()
|
H A D | http.c | 2966 data->info.filetime = k->timeofdoc; in Curl_http_header()
|
/curl/lib/vssh/ |
H A D | libssh.c | 1213 data->info.filetime = attrs->mtime; in myssh_statemach_act()
|
H A D | libssh2.c | 2375 data->info.filetime = (time_t)attrs.mtime; in ssh_statemachine()
|