Lines Matching defs:file
24 * as they appear in the source file.
143 * Open a file on a remote host, using the TFTP protocol.
148 * filename - name of file on remote system
149 * mode - file open mode, read or write
181 * Try to send the RRQ packet to open the file
190 ebuf_append_u16_be(buf,TFTP_OP_RRQ); /* read file */
193 ebuf_append_u16_be(buf,TFTP_OP_WRQ); /* write file */
280 * Read the next block of the file. We do this by acking the
375 * Write the next block of the file, sending the data from our
480 * Close a TFTP file. There are two cases for what we do
481 * here. If we're closing the file mid-stream, send an error
531 * Create a file system device context for the TFTP service
556 * This is the filesystem entry point for opening a TFTP file.
557 * Allocate a tftp_info structure, open the TFTP file, and
563 * filename - name of remote file to open
575 char *file;
597 lib_chop_filename(info->tftp_filename,&host,&file);
599 /* Open the file */
601 res = _tftp_open(info,host,file,mode);
619 * Read some bytes from the remote TFTP file. Do this by copying
621 * remote file as necessary.
675 * Write some bytes to the remote TFTP file. Do this by copying
677 * remote file as necessary.
728 * Seek within a TFTP file. Note that you can only seek *forward*,
730 * could reopen the file, but thus far nobody needs to go
731 * backwards). You can only seek in a file in read mode.
765 xprintf("Warning: negative seek on tftp file attempted\n");
778 * Close the TFTP file.