## **Overview**
**Related Modules:**
[OSAL](OSAL.md)
**Description:**
Declares the file structures and interfaces.
This file provides interfaces for opening, closing, reading, and writing a file, and setting the read/write offset.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures
## Macros
Opens a file in read-only mode. | |
Opens a file in write-only mode. | |
Opens a file in read and write mode. | |
OSAL_S_IREAD 00400 | Defines the read permission for the owner. |
OSAL_S_IWRITE 00200 | Defines the write permission for the owner. |
OSAL_S_IEXEC 00100 | Defines the execution permission for the owner. |
OSAL_S_IRGRP 00040 | Defines the read permission for the group. |
OSAL_S_IWGRP 00020 | Defines the write permission for the group. |
OSAL_S_IXGRP 00010 | Defines the execution permission for the group. |
OSAL_S_IROTH 00004 | Defines the read permission for others. |
OSAL_S_IWOTH 00002 | Defines the write permission for others. |
OSAL_S_IXOTH 00001 | Defines the execution permission for others. |
Defines the offset from the file header. | |
Defines the offset from the current position. | |
Defines the offset from the end of the file. |
## Functions
OsalFileOpen (OsalFile *file, const char *path, int flags, uint32_t rights) | |
OsalFileWrite (OsalFile *file, const void *string, uint32_t length) | |
OsalFileClose (OsalFile *file) | |
OsalFileRead (OsalFile *file, void *buf, uint32_t length) | |
OsalFileLseek (OsalFile *file, off_t offset, int32_t whence) | Sets the file read/write offset. |