Defines | |
#define | MAX_NAME_LEN 64 |
#define | FS_NONE 0 |
#define | FS_CREATED 1 |
#define | FS_REMOVED 2 |
#define | FC_CHANGED 3 |
#define | FC_RENAMED 4 |
#define | FC_FORMATTED 5 |
#define | SEEK_SET 0 |
#define | SEEK_CUR 1 |
#define | SEEK_END 2 |
Typedefs | |
typedef int | seek_t |
Enumerations | |
enum | Flags { FLAG_BAD = 1, FLAG_EOF = 2, FLAG_EXCEPTIONS = 4 } |
Functions | |
struct Input* | open_resource (int index) |
struct Input* | open_resource_Ex (char *sz_file_name) |
int | mFileName_max_file_name_length (void) |
bool | mFileName_is_valid_file_name (char *sz_full_name) |
void | mFileName_split_path (char *sz_full_name, char *sz_device_name, char *sz_file_name) |
void | mFileName_make_path (char *sz_full_name, char *sz_device_name, char *sz_file_name) |
void | mFileName_get_path (char *sz_full_name, char *sz_path) |
char* | mFileName_current_device_name (void) |
Variables | |
char | MP3_DRIVE_NAME [] |
char | DEFAULT_DRIVE_NAME [] |
char | DRIVE_A_NAME [] |
char | DRIVE_B_NAME [] |
Compounds | ||
struct | Archive | Archive storage. A file that holds more files inside, each one of may be compressed |
struct | File | The object to be manipulated |
struct | FileFind | File finder. Implements the functions needed to find a set of files |
struct | FileInput | The Input file stream |
struct | FileOutput | The Output file stream |
struct | Input | An abstract object for sequential data access objects |
struct | Output | An abstract object for the sequential data access objects |
Structures of the File I/O section define the most basic file operations in the CyOS. These rules apply to file names that include any of these valid symbols:
valid_symbols = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM 1234567890-_+.()";
start_disabled = " -+.";
end_disabled = " -+.";
|
File was changed. |
|
Disk was formatted. |
|
File was renamed. |
|
File was created. |
|
State is undefined. |
|
File was removed. |
|
Maximum filename length. |
|
Seek from the current position (a positive offset indicates towards end of file). |
|
Seek from the end. |
|
Seek to the absolute position. |
|
Defines the initial position in the stream and must be one of the following: SEEK_SET, SEEK_CUR or SEEK_END. |
|
Stream's state flags. |
|
Retrieves the name of the current flash device.
|
|
Retrieves the path to the file from the absolute file name.
|
|
Verifies that the file name is valid.
|
|
Creates an absolute file name by combining the file name with the device name.
|
|
Retrieves the maximum file name length.
|
|
Splits the absolute file name into device name and file name.
|
|
Returns the resource from the current archive, using resource index.
|
|
Returns the resource from the current archive, using the resource name.
|
|
Name of the default flash device. |
|
Name of flash device A. |
|
Name of flash device B. |
|
Name of MP3 player device. |
Copyright © 2001 Cybiko, Inc. All rights reserved. | More information... |