RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions

This source file contains the implementation of the Trivial File Transfer Protocol (TFTP) file system. More...

#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <errno.h>
#include <malloc.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <rtems.h>
#include <rtems/libio_.h>
#include <rtems/seterr.h>
#include <rtems/tftp.h>
#include <rtems/thread.h>
#include "tftp_driver.h"

Data Structures

struct  tftpfs_info_s
 

Macros

#define TFTPFS_VERBOSE   (1 << 0)
 
#define tftpfs_info_mount_table(_mt)   ((tftpfs_info_t*) ((_mt)->fs_info))
 
#define tftpfs_info_pathloc(_pl)   ((tftpfs_info_t*) ((_pl)->mt_entry->fs_info))
 
#define tftpfs_info_iop(_iop)   (tftpfs_info_pathloc (&((_iop)->pathinfo)))
 

Typedefs

typedef struct tftpfs_info_s tftpfs_info_t
 

Functions

ssize_t _Tftpfs_Parse_options (const char *option_str, tftp_net_config *tftp_config, uint32_t *flags)
 
int rtems_tftpfs_initialize (rtems_filesystem_mount_table_entry_t *mt_entry, const void *data)
 Do not call directly, use mount().
 

Detailed Description

This source file contains the implementation of the Trivial File Transfer Protocol (TFTP) file system.

The code in this file handles the file system operations (such as mount(), open(), read(), write(), close() etc.). The networking part, i.e. the actual Trivial File Transfer Protocol implementation, is realized in another file - the TFTP client library.