FreeNOS
FileSystem.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Niek Linnenbank
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __LIB_LIBFS_FILESYSTEM_H
19#define __LIB_LIBFS_FILESYSTEM_H
20
21#include <Types.h>
22
143
149#endif /* __LIB_LIBFS_FILESYSTEM_H */
Create new files on the filesystem.
Definition CreateFile.h:32
u32 ProcessID
Process Identification Number.
Definition Types.h:140
unsigned int u32
Unsigned 32-bit number.
Definition Types.h:53
unsigned short UserID
User Identity.
Definition Types.h:134
unsigned short GroupID
Group Identity.
Definition Types.h:137
unsigned short u16
Unsigned 16-bit number.
Definition Types.h:56
unsigned int Size
Any sane size indicator cannot go negative.
Definition Types.h:128
FileType
All possible filetypes.
Definition FileSystem.h:71
@ CharacterDeviceFile
Definition FileSystem.h:75
@ BlockDeviceFile
Definition FileSystem.h:74
Result
Result code for filesystem Actions.
Definition FileSystem.h:53
@ InvalidArgument
Definition FileSystem.h:55
@ PermissionDenied
Definition FileSystem.h:59
@ RedirectRequest
Definition FileSystem.h:62
WaitStatus
WaitSet status flags.
Definition FileSystem.h:138
@ Writable
< File can be read without blocking
Definition FileSystem.h:140
Action
Actions which may be performed on a filesystem.
Definition FileSystem.h:37
@ MountFileSystem
Definition FileSystem.h:44
u16 FileModes
Multiple FileMode values combined.
Definition FileSystem.h:108
FileMode
File access permissions.
Definition FileSystem.h:86
Contains file information.
Definition FileSystem.h:114
ProcessID pid
< Inode number
Definition FileSystem.h:117
UserID userID
< Size of the file in bytes.
Definition FileSystem.h:120
u32 inode
< File type.
Definition FileSystem.h:116
FileModes access
< Process identifier of filesystem
Definition FileSystem.h:118
Size size
< File access permission bits.
Definition FileSystem.h:119
GroupID groupID
< User identity.
Definition FileSystem.h:121
Provides information about an inode.
Definition FileSystem.h:128
u16 current
< Requested status flags of the inode
Definition FileSystem.h:131
u16 requested
< Inode number
Definition FileSystem.h:130