Searched refs:file_cookie (Results 1 - 6 of 6) sorted by relevance

/fuchsia/zircon/system/ulib/tftp/include/tftp/
H A Dtftp.h121 // |file_cookie| will be passed to this function from the argument to
127 void* file_cookie);
130 // writing. |file_cookie| will be passed to this function from the argument to
135 void* file_cookie);
138 // at |offset|, into |data|. |file_cookie| will be passed to this function from
148 void* file_cookie);
151 // starting at |offset|, into the destination. |file_cookie| will be passed to
161 void* file_cookie);
164 // operation. |file_cookie| will be passed to this function from the argument to
166 typedef void (*tftp_file_close_cb)(void* file_cookie);
[all...]
/fuchsia/zircon/system/ulib/tftp/
H A Dtftp-example.c162 ssize_t open_read_file(const char* filename, void* file_cookie) { argument
169 struct tftp_file* f = (struct tftp_file*)file_cookie;
179 tftp_status open_write_file(const char* filename, size_t size, void* file_cookie) { argument
187 struct tftp_file* f = (struct tftp_file*)file_cookie;
192 tftp_status read_file(void* data, size_t* length, off_t offset, void* file_cookie) { argument
193 int fd = ((struct tftp_file*)file_cookie)->fd;
203 tftp_status write_file(const void* data, size_t* length, off_t offset, void* file_cookie) { argument
204 struct tftp_file* f = file_cookie;
216 void close_file(void* file_cookie) { argument
217 struct tftp_file* f = file_cookie;
228 struct tftp_file file_cookie; local
249 struct tftp_file file_cookie; local
[all...]
H A Dtftp-file-test.cpp74 ssize_t file_open_read(const char* filename, void* file_cookie) { argument
75 auto* file_info = reinterpret_cast<file_info_t*>(file_cookie);
84 void* file_cookie) {
85 auto* file_info = reinterpret_cast<file_info_t*>(file_cookie);
97 void* file_cookie) {
98 auto* file_info = reinterpret_cast<file_info_t*>(file_cookie);
119 void* file_cookie) {
120 auto* file_info = reinterpret_cast<file_info_t*>(file_cookie);
133 void file_close(void* file_cookie) { argument
82 file_open_write(const char* filename, size_t size, void* file_cookie) argument
96 file_read(void* data, size_t* length, off_t offset, void* file_cookie) argument
118 file_write(const void* data, size_t* length, off_t offset, void* file_cookie) argument
H A Dtftp.c1028 void* file_cookie) {
1046 return tftp_prepare_data(session, msg_buf, msg_len, timeout_ms, file_cookie);
1070 void* file_cookie,
1094 file_cookie);
1113 file_cookie);
1144 file_cookie);
1164 void* file_cookie,
1177 file_size = session->file_interface.open_read(local_filename, file_cookie);
1224 status = tftp_msg_loop(session, transport_cookie, file_cookie, &msg_loop_opts, timeout_ms);
1229 session->file_interface.close(file_cookie);
1023 tftp_timeout(tftp_session* session, void* msg_buf, size_t* msg_len, size_t buf_sz, uint32_t* timeout_ms, void* file_cookie) argument
1068 tftp_msg_loop(tftp_session* session, void* transport_cookie, void* file_cookie, tftp_msg_loop_opts* opts, uint32_t timeout_ms) argument
1162 transfer_file(tftp_session* session, void* transport_cookie, void* file_cookie, tftp_file_direction xfer_direction, const char* local_filename, const char* remote_filename, tftp_request_opts* opts) argument
1235 tftp_push_file(tftp_session* session, void* transport_cookie, void* file_cookie, const char* local_filename, const char* remote_filename, tftp_request_opts* opts) argument
1245 tftp_pull_file(tftp_session* session, void* transport_cookie, void* file_cookie, const char* local_filename, const char* remote_filename, tftp_request_opts* opts) argument
1255 tftp_service_request(tftp_session* session, void* transport_cookie, void* file_cookie, tftp_handler_opts* opts) argument
1277 tftp_handle_msg(tftp_session* session, void* transport_cookie, void* file_cookie, tftp_handler_opts* opts) argument
[all...]
H A Dtftp-test.cpp743 tftp_status mock_open_write(const char* filename, size_t size, void* file_cookie) { argument
1386 ifc.write = [](const void* data, size_t* length, off_t offset, void* file_cookie)
/fuchsia/zircon/system/host/netprotocol/
H A Dnetcp.c49 static ssize_t file_open_read(const char* filename, void* file_cookie) { argument
54 file_info_t *file_info = file_cookie;
65 static tftp_status file_open_write(const char* filename, size_t size, void* file_cookie) { argument
70 file_info_t* file_info = file_cookie;
76 static tftp_status file_read(void* data, size_t* length, off_t offset, void* file_cookie) { argument
77 int fd = ((file_info_t*)file_cookie)->fd;
86 static tftp_status file_write(const void* data, size_t* length, off_t offset, void* file_cookie) { argument
87 int fd = ((file_info_t*)file_cookie)->fd;
96 static void file_close(void* file_cookie) { argument
97 close(((file_info_t*)file_cookie)
[all...]

Completed in 46 milliseconds