RTEMS  5.1
Data Structures | Macros | Typedefs | Enumerations | Functions

Constants/Data Structures/Prototypes for Operations on "fat-file". More...

#include <rtems.h>
#include <rtems/libio_.h>
#include <time.h>
#include "fat.h"

Go to the source code of this file.

Data Structures

struct  fat_file_map_s
 The "fat-file" representation. More...
 
struct  fat_file_fd_s
 Descriptor of a fat-file. More...
 

Macros

#define FAT_FILE_REMOVED   0x01
 
#define FAT_FILE_META_DATA_CHANGED   0x02
 
#define F_CLU_NUM   0x01
 
#define FAT_ROOTDIR_CLUSTER_NUM   0x01
 
#define FAT_FD_OF_ROOT_DIR(fat_fd)
 
#define FAT_EOF   0x00
 

Typedefs

typedef struct fat_file_map_s fat_file_map_t
 The "fat-file" representation. More...
 
typedef struct fat_file_fd_s fat_file_fd_t
 Descriptor of a fat-file. More...
 

Enumerations

enum  fat_file_type_t { FAT_DIRECTORY = 0, FAT_HARD_LINK = 2, FAT_FILE = 4 }
 

Functions

int fat_file_open (fat_fs_info_t *fs_info, fat_dir_pos_t *dir_pos, fat_file_fd_t **fat_fd)
 
int fat_file_reopen (fat_file_fd_t *fat_fd)
 
int fat_file_close (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd)
 
ssize_t fat_file_read (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, uint8_t *buf)
 
ssize_t fat_file_write (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, const uint8_t *buf)
 
int fat_file_extend (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, bool zero_fill, uint32_t new_length, uint32_t *a_length)
 
int fat_file_truncate (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, uint32_t new_length)
 
int fat_file_ioctl (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, int cmd,...)
 
int fat_file_size (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd)
 
void fat_file_mark_removed (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd)
 
int fat_file_write_first_cluster_num (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd)
 
int fat_file_write_file_size (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd)
 
int fat_file_write_time_and_date (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd)
 
int fat_file_update (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd)
 

Detailed Description

Constants/Data Structures/Prototypes for Operations on "fat-file".