RTEMS  5.0.0
Macros | Functions
msdos_conv.c File Reference

MDOS Date Conversion. More...

#include <ctype.h>
#include <rtems.h>
#include "msdos.h"

Macros

#define SECONDSPERDAY   ((uint32_t) 86400)
 
#define UTF8_MAX_CHAR_SIZE   4
 
#define UTF8_NULL   0x00
 
#define UTF8_NULL_SIZE   1
 
#define UTF8_BLANK   0x20
 
#define UTF8_BLANK_SIZE   1
 
#define UTF8_FULL_STOP   0x2e
 
#define UTF8_FULL_STOP_SIZE   1
 
#define UTF16_MAX_CHAR_SIZE   4
 
#define UTF16_NULL   CT_LE_W( 0x0000 )
 
#define UTF16_NULL_SIZE   2
 
#define UTF16_BLANK   CT_LE_W( 0x0020 )
 
#define UTF16_BLANK_SIZE   2
 
#define UTF16_FULL_STOP   CT_LE_W( 0x002e )
 
#define UTF16_FULL_STOP_SIZE   2
 
#define DAYSTO1980   ((uint32_t) 3652)
 

Functions

void msdos_date_unix2dos (unsigned int t, uint16_t *ddp, uint16_t *dtp)
 
unsigned int msdos_date_dos2unix (unsigned int dd, unsigned int dt)
 
ssize_t msdos_filename_utf8_to_long_name_for_compare (rtems_dosfs_convert_control *converter, const uint8_t *utf8_name, const size_t utf8_name_size, uint8_t *long_name, const size_t long_name_size)
 
ssize_t msdos_filename_utf8_to_long_name_for_save (rtems_dosfs_convert_control *converter, const uint8_t *utf8_name, const size_t utf8_name_size, uint16_t *long_name, const size_t long_name_size)
 
ssize_t msdos_filename_utf8_to_short_name_for_compare (rtems_dosfs_convert_control *converter, const uint8_t *utf8_name, const size_t utf8_name_size, void *short_name, const size_t short_name_size)
 
ssize_t msdos_filename_utf8_to_short_name_for_save (rtems_dosfs_convert_control *converter, const uint8_t *utf8_name, const size_t utf8_name_size, void *short_name, const size_t short_name_size)
 

Detailed Description

MDOS Date Conversion.