Home
last modified time | relevance | path

Searched refs:filetime (Results 1 – 17 of 17) sorted by relevance

/curl/tests/libtest/
H A Dlib1534.c33 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 Dlib3027.c44 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 Dtool_filetime.c91 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 Dtool_filetime.h35 void setfiletime(curl_off_t filetime, const char *filename,
H A Dtool_operate.c742 curl_off_t filetime = -1; in post_per_transfer() local
743 curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &filetime); in post_per_transfer()
744 setfiletime(filetime, outs->filename, global); in post_per_transfer()
/curl/docs/libcurl/opts/
H A DCURLOPT_FILETIME.md54 /* 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 DCURLINFO_FILETIME.md55 /* 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 DCURLINFO_FILETIME_T.md56 /* 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 Dftpgetinfo.c48 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 Dfile.c454 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 Dgetinfo.c65 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 Dftp.c2075 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 Durldata.h1024 time_t filetime; /* If requested, this is might get set. Set to -1 if the member
H A Dsmb.c1014 get_posix_time(&data->info.filetime, smb_m->last_change_time); in smb_request_state()
H A Dhttp.c2966 data->info.filetime = k->timeofdoc; in Curl_http_header()
/curl/lib/vssh/
H A Dlibssh.c1213 data->info.filetime = attrs->mtime; in myssh_statemach_act()
H A Dlibssh2.c2375 data->info.filetime = (time_t)attrs.mtime; in ssh_statemachine()

Completed in 74 milliseconds