msdos.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 528 行 · 第 1/2 页

H
528
字号
msdos_shut_down(avfs_filesystem_mount_table_entry_t *temp_mt_entry);

int 
msdos_eval_path(const char                       *pathname, /* IN */
                int                               flags,    /* IN */
                avfs_filesystem_location_info_t *pathloc   /* IN/OUT */);

int 
msdos_eval4make(const char                       *path,     /* IN */
                avfs_filesystem_location_info_t *pathloc,  /* IN/OUT */
                const char                       **name     /* OUT    */); 
         
int 
msdos_unlink(avfs_filesystem_location_info_t *pathloc /* IN */);

int 
msdos_free_node_info(avfs_filesystem_location_info_t *pathloc /* IN */);

avfs_filesystem_node_types_t 
msdos_node_type(avfs_filesystem_location_info_t    *pathloc);

int 
msdos_mknod(const char                       *path,   /* IN */
            mode_t                            mode,   /* IN */
            dev_t                             dev,    /* IN */
            avfs_filesystem_location_info_t *pathloc /* IN/OUT */);

int 
msdos_utime(avfs_filesystem_location_info_t *pathloc, /* IN */
            time_t                            actime,  /* IN */
            time_t                            modtime  /* IN */);

int
msdos_initialize_support(
  avfs_filesystem_mount_table_entry_t *temp_mt_entry,
  avfs_filesystem_operations_table    *op_table,
  avfs_filesystem_file_handlers_r     *file_handlers,
  avfs_filesystem_file_handlers_r     *directory_handlers
);

int 
msdos_file_open(
  avfs_libio_t *iop,             /* IN  */
  const char    *pathname,        /* IN  */
  unsigned32     flag,            /* IN  */
  unsigned32     mode             /* IN  */
);

int 
msdos_file_close(avfs_libio_t *iop /* IN  */);

ssize_t 
msdos_file_read(
  avfs_libio_t *iop,              /* IN  */
  void          *buffer,           /* IN  */
  unsigned32     count             /* IN  */
);

ssize_t 
msdos_file_write(
  avfs_libio_t *iop,             /* IN  */
  const void    *buffer,          /* IN  */
  unsigned32     count            /* IN  */
);

int 
msdos_file_lseek(
  avfs_libio_t        *iop,              /* IN  */
  off_t                 offset,           /* IN  */
  int                   whence            /* IN  */
);

int 
msdos_file_stat(avfs_filesystem_location_info_t *loc, /* IN  */
                struct stat                      *buf  /* OUT */);

int 
msdos_file_ftruncate(
  avfs_libio_t *iop,               /* IN  */
  off_t          length             /* IN  */
);

int 
msdos_file_sync(avfs_libio_t *iop);

int 
msdos_file_datasync(avfs_libio_t *iop);
 
int 
msdos_file_ioctl(
  avfs_libio_t *iop,             /* IN  */
  unsigned32     command,         /* IN  */
  void          *buffer           /* IN  */
);

int 
msdos_file_rmnod(avfs_filesystem_location_info_t *pathloc /* IN */);
 
int 
msdos_file_link(avfs_filesystem_location_info_t *to_loc,
		avfs_filesystem_location_info_t *pa_loc,
		const char                       *token);

int 
msdos_dir_open(
  avfs_libio_t *iop,             /* IN  */
  const char    *pathname,        /* IN  */
  unsigned32     flag,            /* IN  */
  unsigned32     mode             /* IN  */
);

int 
msdos_dir_close(avfs_libio_t *iop /* IN  */);

ssize_t 
msdos_dir_read(
  avfs_libio_t *iop,              /* IN  */
  void          *buffer,           /* IN  */
  unsigned32     count             /* IN  */
);

int 
msdos_dir_lseek(
  avfs_libio_t        *iop,              /* IN  */
  off_t                 offset,           /* IN  */
  int                   whence            /* IN  */
);

int 
msdos_dir_rmnod(avfs_filesystem_location_info_t *pathloc /* IN */);

int 
msdos_dir_sync(avfs_libio_t *iop);

int 
msdos_dir_stat(
  avfs_filesystem_location_info_t *loc,         /* IN  */
  struct stat                      *buf          /* OUT */
);
#if 1
int 
msdos_dir_ioctl(
  avfs_libio_t *iop,             /* IN  */
  unsigned32     command,         /* IN  */
  void          *buffer           /* IN  */
);
#endif
int
msdos_creat_node(avfs_filesystem_location_info_t  *parent_loc,
                 msdos_node_type_t                  type,
                 const char                        *name,
                 mode_t                             mode,
                 const fat_file_fd_t               *link_fd);

/* Misc prototypes */
msdos_token_types_t msdos_get_token(const char *path,
                                    char       *token,
                                    int        *token_len);

int
msdos_find_name(avfs_filesystem_location_info_t *parent_loc,
                char                             *name);

int
msdos_get_name_node(avfs_filesystem_location_info_t *parent_loc,
                    char                             *name,
                    fat_auxiliary_t                  *paux,
                    char                             *name_dir_entry,
                    unsigned32                       dir_entry_num);

int
msdos_dir_info_remove(avfs_filesystem_location_info_t *pathloc);

int
msdos_filename_unix2dos(char *un, int unlen, char *dn);

void
msdos_date_unix2dos(unsigned int tsp, unsigned short *ddp, 
                    unsigned short *dtp);

unsigned int
msdos_date_dos2unix(unsigned int dd, unsigned int dt);

int
msdos_set_first_cluster_num(avfs_filesystem_mount_table_entry_t *mt_entry,
                            fat_file_fd_t                        *fat_fd);

int
msdos_set_file_size(avfs_filesystem_mount_table_entry_t *mt_entry,
                    fat_file_fd_t                        *fat_fd);

int 
msdos_set_first_char4file_name(avfs_filesystem_mount_table_entry_t *mt_entry,
                               fat_file_fd_t *fat_fd,
                               unsigned32  cl,
                               unsigned32  ofs,
                               unsigned char first_char);

int
msdos_set_dir_wrt_time_and_date(
    avfs_filesystem_mount_table_entry_t *mt_entry,
    fat_file_fd_t                        *fat_fd
);
                               
int
msdos_set_nt_res(
    avfs_filesystem_mount_table_entry_t *mt_entry, 
    fat_file_fd_t                        *fat_fd,
    char                                 res_value
    ) ;

int
msdos_dir_is_empty(avfs_filesystem_mount_table_entry_t *mt_entry,
                   fat_file_fd_t                        *fat_fd, 
                   avfs_boolean                        *ret_val);

int
msdos_find_name_in_fat_file(
    avfs_filesystem_mount_table_entry_t *mt_entry,
    fat_file_fd_t                        *fat_fd, 
    char                                 *name, 
    fat_auxiliary_t                      *paux,
    char                                 *name_dir_entry,
    unsigned32                           dir_entry_num);
                            
int
msdos_find_node_by_cluster_num_in_fat_file(
    avfs_filesystem_mount_table_entry_t *mt_entry,
    fat_file_fd_t                        *fat_fd,
    unsigned32                            cl4find, 
    fat_auxiliary_t                      *paux,
    char                                 *dir_entry
);

int
msdos_get_dotdot_dir_info_cluster_num_and_offset(
    avfs_filesystem_mount_table_entry_t *mt_entry,
    unsigned32                            cln,
    fat_auxiliary_t                      *paux,
    char                                 *dir_entry
);

unsigned char ChkSumofShorName(unsigned char *pFcbName) ;

int 
msdos_find_long_name(
    avfs_filesystem_location_info_t *parent_loc,
    const char                       *name,
    int                              name_len
    );
int 
fat_free_fat_for_delete_file(
    avfs_filesystem_mount_table_entry_t *mt_entry,
    fat_file_fd_t                        *fat_fd
  );

#ifdef __cplusplus
}
#endif

extern avfs_filesystem_operations_table  msdos_ops ;

#endif /* __DOSFS_MSDOS_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?