ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
msdos_fs.h
Go to the documentation of this file.
1
/* msdos_fs.h - MS-DOS filesystem constants/structures
2
3
This program is free software: you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation, either version 3 of the License, or
6
(at your option) any later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16
The complete text of the GNU General Public License
17
can be found in /usr/share/common-licenses/GPL-3 file.
18
*/
19
20
#ifndef _MSDOS_FS_H
21
#define _MSDOS_FS_H
22
23
#ifndef __REACTOS__
24
#include <stdint.h>
25
#endif
26
27
#define SECTOR_SIZE 512
/* sector size (bytes) */
28
#define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
29
#define MSDOS_DPS_BITS 4
/* log2(MSDOS_DPS) */
30
#define MSDOS_DIR_BITS 5
/* log2(sizeof(struct msdos_dir_entry)) */
31
32
#define ATTR_NONE 0
/* no attribute bits */
33
#define ATTR_RO 1
/* read-only */
34
#define ATTR_HIDDEN 2
/* hidden */
35
#define ATTR_SYS 4
/* system */
36
#define ATTR_VOLUME 8
/* volume label */
37
#define ATTR_DIR 16
/* directory */
38
#define ATTR_ARCH 32
/* archived */
39
40
/* attribute bits that are copied "as is" */
41
#define ATTR_UNUSED (ATTR_VOLUME | ATTR_ARCH | ATTR_SYS | ATTR_HIDDEN)
42
43
#define DELETED_FLAG 0xe5
/* marks file as deleted when in name[0] */
44
#define IS_FREE(n) (!*(n) || *(n) == DELETED_FLAG)
45
46
#define MSDOS_NAME 11
/* maximum name length */
47
#define MSDOS_DOT ". "
/* ".", padded to MSDOS_NAME chars */
48
#define MSDOS_DOTDOT ".. "
/* "..", padded to MSDOS_NAME chars */
49
50
#ifdef __REACTOS__
51
#include <pshpack1.h>
52
#endif
53
54
struct
msdos_dir_entry
{
55
uint8_t
name
[
MSDOS_NAME
];
/* name including extension */
56
uint8_t
attr
;
/* attribute bits */
57
uint8_t
lcase
;
/* Case for base and extension */
58
uint8_t
ctime_cs
;
/* Creation time, centiseconds (0-199) */
59
uint16_t
ctime
;
/* Creation time */
60
uint16_t
cdate
;
/* Creation date */
61
uint16_t
adate
;
/* Last access date */
62
uint16_t
starthi
;
/* High 16 bits of cluster in FAT32 */
63
uint16_t
time
,
date
,
start
;
/* time, date and first cluster */
64
uint32_t
size
;
/* file size (in bytes) */
65
}
__attribute__
((
packed
));
66
67
#ifdef __REACTOS__
68
#include <poppack.h>
69
#endif
70
71
#endif
/* _MSDOS_FS_H */
uint16_t
unsigned short int uint16_t
Definition:
acefiex.h:54
uint32_t
UINT32 uint32_t
Definition:
types.h:75
__attribute__
#define __attribute__(x)
Definition:
wpp_private.h:207
packed
GLuint GLenum GLsizei GLsizei GLint GLint GLboolean packed
Definition:
glext.h:9271
MSDOS_NAME
#define MSDOS_NAME
Definition:
msdos_fs.h:46
uint8_t
BYTE uint8_t
Definition:
msvideo1.c:66
msdos_dir_entry
Definition:
mkdosfs.c:467
msdos_dir_entry::date
uint16_t date
Definition:
msdos_fs.h:63
msdos_dir_entry::cdate
uint16_t cdate
Definition:
msdos_fs.h:60
msdos_dir_entry::adate
uint16_t adate
Definition:
msdos_fs.h:61
msdos_dir_entry::starthi
uint16_t starthi
Definition:
msdos_fs.h:62
msdos_dir_entry::attr
uint8_t attr
Definition:
msdos_fs.h:56
msdos_dir_entry::size
uint32_t size
Definition:
msdos_fs.h:64
msdos_dir_entry::start
__u16 start
Definition:
mkdosfs.c:476
msdos_dir_entry::ctime
uint16_t ctime
Definition:
msdos_fs.h:59
msdos_dir_entry::ctime_cs
uint8_t ctime_cs
Definition:
msdos_fs.h:58
msdos_dir_entry::time
__u16 time
Definition:
mkdosfs.c:476
msdos_dir_entry::lcase
uint8_t lcase
Definition:
msdos_fs.h:57
name
Definition:
name.c:39
sdk
lib
fslib
vfatlib
check
msdos_fs.h
Generated on Tue Nov 26 2024 06:14:05 for ReactOS by
1.9.6