fs_port.h File Reference

File system abstraction layer. More...

#include "fs_port_config.h"
#include "os_port.h"
#include "date_time.h"
#include "error.h"

Go to the source code of this file.

Data Structures

struct  FsFileStat
 File status. More...
 
struct  FsDirEntry
 Directory entry. More...
 

Macros

#define FS_MAX_NAME_LEN   127
 

Enumerations

enum  FsFileAttributes {
  FS_FILE_ATTR_READ_ONLY = 0x01, FS_FILE_ATTR_HIDDEN = 0x02, FS_FILE_ATTR_SYSTEM = 0x04, FS_FILE_ATTR_VOLUME_NAME = 0x08,
  FS_FILE_ATTR_DIRECTORY = 0x10, FS_FILE_ATTR_ARCHIVE = 0x20
}
 File attributes. More...
 
enum  FsFileMode { FS_FILE_MODE_READ = 1, FS_FILE_MODE_WRITE = 2, FS_FILE_MODE_CREATE = 4, FS_FILE_MODE_TRUNC = 8 }
 File access mode. More...
 
enum  FsSeekOrigin { FS_SEEK_SET = 0, FS_SEEK_CUR = 1, FS_SEEK_END = 2 }
 File seek origin. More...
 

Detailed Description

File system abstraction layer.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file fs_port.h.

Macro Definition Documentation

◆ FS_MAX_NAME_LEN

#define FS_MAX_NAME_LEN   127

Definition at line 40 of file fs_port.h.

Enumeration Type Documentation

◆ FsFileAttributes

File attributes.

Enumerator
FS_FILE_ATTR_READ_ONLY 
FS_FILE_ATTR_HIDDEN 
FS_FILE_ATTR_SYSTEM 
FS_FILE_ATTR_VOLUME_NAME 
FS_FILE_ATTR_DIRECTORY 
FS_FILE_ATTR_ARCHIVE 

Definition at line 55 of file fs_port.h.

◆ FsFileMode

enum FsFileMode

File access mode.

Enumerator
FS_FILE_MODE_READ 
FS_FILE_MODE_WRITE 
FS_FILE_MODE_CREATE 
FS_FILE_MODE_TRUNC 

Definition at line 70 of file fs_port.h.

◆ FsSeekOrigin

File seek origin.

Enumerator
FS_SEEK_SET 
FS_SEEK_CUR 
FS_SEEK_END 

Definition at line 83 of file fs_port.h.