RTEMS  5.0.0
Macros | Functions

General operations on "fat-file". More...

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdarg.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <time.h>
#include <rtems/libio_.h>
#include "fat.h"
#include "fat_fat_operations.h"
#include "fat_file.h"

Macros

#define MSDOS_TRACE   1
 

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_update (fat_fs_info_t *fs_info, 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,...)
 
void fat_file_mark_removed (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd)
 
int fat_file_size (fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd)
 

Detailed Description

General operations on "fat-file".