#include "setup.h"#include <stdio.h>#include <string.h>#include <stdarg.h>#include <stdlib.h>#include <ctype.h>#include <sys/ioctl.h>#include <signal.h>#include "urldata.h"#include <curl/curl.h>#include "progress.h"#include "sendf.h"#include "escape.h"#include "file.h"#include "speedcheck.h"#include "getinfo.h"#include "transfer.h"#include "url.h"#include "memory.h"#include "parsedate.h"#include <curl/mprintf.h>#include "memdebug.h"Go to the source code of this file.
Defines | |
| #define | _MPRINTF_REPLACE |
| #define | DIRSEP '/' |
Functions | |
| CURLcode | Curl_file_connect (struct connectdata *conn) |
| CURLcode | Curl_file_done (struct connectdata *conn, CURLcode status, bool premature) |
| static CURLcode | file_upload (struct connectdata *conn) |
| CURLcode | Curl_file (struct connectdata *conn, bool *done) |
| #define DIRSEP '/' |
| CURLcode Curl_file | ( | struct connectdata * | conn, | |
| bool * | done | |||
| ) |
Definition at line 316 of file file.c.
References connectdata::bits, asio::buffer(), UrlState::buffer, BUFSIZE, CLIENTWRITE_BODY, CLIENTWRITE_BOTH, Curl_client_write(), Curl_initinfo(), Curl_month, Curl_pgrsSetDownloadCounter(), Curl_pgrsSetDownloadSize(), Curl_pgrsStartNow(), Curl_pgrsTime(), Curl_pgrsUpdate(), Curl_readwrite_init(), Curl_speedcheck(), Curl_tvnow, Curl_wkday, CURLE_ABORTED_BY_CALLBACK, CURLE_BAD_DOWNLOAD_RESUME, CURLE_OK, connectdata::data, failf, FALSE, FILEPROTO::fd, HandleData::file, file_upload(), FORMAT_OFF_T, HAVE_GMTIME_R, UserDefined::include_header, ConnectBits::no_body, HandleData::proto, asio::read(), SessionHandle::reqdata, HandleData::resume_from, SEEK_SET, SessionHandle::set, ssize_t, SessionHandle::state, struct_stat, TIMER_STARTTRANSFER, TRUE, and UserDefined::upload.
Referenced by CreateConnection().
| CURLcode Curl_file_connect | ( | struct connectdata * | conn | ) |
Definition at line 97 of file file.c.
References calloc, curl_easy_unescape(), Curl_file_done(), CURLE_FILE_COULDNT_READ_FILE, CURLE_OK, CURLE_OUT_OF_MEMORY, connectdata::data, failf, FALSE, FILEPROTO::fd, HandleData::file, free, FILEPROTO::freepath, NULL, O_BINARY, FILEPROTO::path, HandleData::path, HandleData::proto, SessionHandle::reqdata, SessionHandle::set, and UserDefined::upload.
Referenced by CreateConnection().
| CURLcode Curl_file_done | ( | struct connectdata * | conn, | |
| CURLcode | status, | |||
| bool | premature | |||
| ) |
Definition at line 169 of file file.c.
References asio::detail::socket_ops::close(), Curl_safefree(), CURLE_OK, connectdata::data, FILEPROTO::fd, HandleData::file, FILEPROTO::freepath, HandleData::proto, and SessionHandle::reqdata.
Referenced by CreateConnection(), and Curl_file_connect().
| static CURLcode file_upload | ( | struct connectdata * | conn | ) | [static] |
Definition at line 189 of file file.c.
References UrlState::buffer, BUFSIZE, Curl_fillreadbuffer(), Curl_pgrsSetUploadCounter(), Curl_pgrsSetUploadSize(), Curl_pgrsUpdate(), Curl_speedcheck(), Curl_tvnow, CURLE_ABORTED_BY_CALLBACK, CURLE_FILE_COULDNT_READ_FILE, CURLE_OK, CURLE_SEND_ERROR, CURLE_WRITE_ERROR, connectdata::data, DIRSEP, failf, HandleData::file, UserDefined::fread, connectdata::fread, connectdata::fread_in, fwrite(), UserDefined::in, UserDefined::infilesize, UserDefined::new_file_perms, O_BINARY, FILEPROTO::path, HandleData::proto, SessionHandle::reqdata, HandleData::resume_from, SessionHandle::set, stat(), SessionHandle::state, struct_stat, and HandleData::upload_fromhere.
Referenced by Curl_file().
1.5.6