mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Implement DOS fstester.setter.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
65
fstester/setter/dos.h
Executable file
65
fstester/setter/dos.h
Executable file
@@ -0,0 +1,65 @@
|
||||
/****************************************************************************
|
||||
The Disc Image Chef
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
Filename : dos.h
|
||||
Author(s) : Natalia Portillo
|
||||
|
||||
Component : fstester.setter
|
||||
|
||||
--[ Description ] -----------------------------------------------------------
|
||||
|
||||
Contains DOS definitions
|
||||
|
||||
--[ License ] ---------------------------------------------------------------
|
||||
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 3 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 warraty of
|
||||
MERCHANTIBILITY 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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2018 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined (MSDOS)
|
||||
|
||||
#ifndef DIC_FSTESTER_SETTER_DOS_H
|
||||
#define DIC_FSTESTER_SETTER_DOS_H
|
||||
|
||||
#pragma pack(__push, 1)
|
||||
|
||||
typedef struct _Fat32FreeSpace
|
||||
{
|
||||
unsigned short size;
|
||||
unsigned short version;
|
||||
unsigned long sectorsPerCluster;
|
||||
unsigned long bytesPerSector;
|
||||
unsigned long freeClusters;
|
||||
unsigned long totalClusters;
|
||||
unsigned long freeSectors;
|
||||
unsigned long totalSectors;
|
||||
unsigned long freeUnits;
|
||||
unsigned long totalUnits;
|
||||
unsigned char reserved[8];
|
||||
} Fat32FreeSpace;
|
||||
|
||||
#pragma pack(__pop)
|
||||
|
||||
#define YEAR(t) (((t & 0xFE00) >> 9) + 1980)
|
||||
#define MONTH(t) ((t & 0x01E0) >> 5)
|
||||
#define DAY(t) (t & 0x001F)
|
||||
#define HOUR(t) ((t & 0xF800) >> 11)
|
||||
#define MINUTE(t) ((t & 0x07E0) >> 5)
|
||||
#define SECOND(t) ((t & 0x001F) << 1)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -1,2 +1,2 @@
|
||||
FIL common.obj,dos.obj,main.obj
|
||||
FIL dos.obj,main.obj
|
||||
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
!define BLANK ""
|
||||
C:\dic\common.obj : C:\dic\common.c .AUTODEPEND
|
||||
@C:
|
||||
cd C:\dic
|
||||
*wcc common.c -i="C:\WATCOM/h" -w4 -e25 -zq -od -d2 -bt=dos -fo=.obj -ml
|
||||
|
||||
C:\dic\dos.obj : C:\dic\dos.c .AUTODEPEND
|
||||
@C:
|
||||
cd C:\dic
|
||||
@@ -14,11 +9,11 @@ C:\dic\main.obj : C:\dic\main.c .AUTODEPEND
|
||||
cd C:\dic
|
||||
*wcc main.c -i="C:\WATCOM/h" -w4 -e25 -zq -od -d2 -bt=dos -fo=.obj -ml
|
||||
|
||||
C:\dic\dos.exe : C:\dic\common.obj C:\dic\dos.obj C:\dic\main.obj C:\dic\con&
|
||||
sts.h C:\dic\defs.h C:\dic\dosos2.h C:\dic\main.h .AUTODEPEND
|
||||
C:\dic\dos.exe : C:\dic\dos.obj C:\dic\main.obj C:\dic\consts.h C:\dic\defs.&
|
||||
h C:\dic\dos.h C:\dic\dosos2.h C:\dic\main.h .AUTODEPEND
|
||||
@C:
|
||||
cd C:\dic
|
||||
@%write dos.lk1 FIL common.obj,dos.obj,main.obj
|
||||
@%write dos.lk1 FIL dos.obj,main.obj
|
||||
@%append dos.lk1
|
||||
*wlink name dos d all SYS dos op m op maxe=25 op q op symf @dos.lk1
|
||||
*wlink name dos d all sys dos op m op maxe=25 op q op symf @dos.lk1
|
||||
|
||||
|
||||
@@ -63,8 +63,8 @@ WVList
|
||||
0
|
||||
15
|
||||
MItem
|
||||
8
|
||||
common.c
|
||||
5
|
||||
dos.c
|
||||
16
|
||||
WString
|
||||
4
|
||||
@@ -81,8 +81,8 @@ WVList
|
||||
0
|
||||
19
|
||||
MItem
|
||||
5
|
||||
dos.c
|
||||
6
|
||||
main.c
|
||||
20
|
||||
WString
|
||||
4
|
||||
@@ -99,26 +99,26 @@ WVList
|
||||
0
|
||||
23
|
||||
MItem
|
||||
6
|
||||
main.c
|
||||
3
|
||||
*.h
|
||||
24
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
3
|
||||
NIL
|
||||
25
|
||||
WVList
|
||||
0
|
||||
26
|
||||
WVList
|
||||
0
|
||||
11
|
||||
-1
|
||||
1
|
||||
1
|
||||
0
|
||||
27
|
||||
MItem
|
||||
3
|
||||
*.h
|
||||
8
|
||||
consts.h
|
||||
28
|
||||
WString
|
||||
3
|
||||
@@ -129,14 +129,14 @@ WVList
|
||||
30
|
||||
WVList
|
||||
0
|
||||
-1
|
||||
23
|
||||
1
|
||||
1
|
||||
0
|
||||
31
|
||||
MItem
|
||||
8
|
||||
consts.h
|
||||
6
|
||||
defs.h
|
||||
32
|
||||
WString
|
||||
3
|
||||
@@ -147,14 +147,14 @@ WVList
|
||||
34
|
||||
WVList
|
||||
0
|
||||
27
|
||||
23
|
||||
1
|
||||
1
|
||||
0
|
||||
35
|
||||
MItem
|
||||
6
|
||||
defs.h
|
||||
5
|
||||
dos.h
|
||||
36
|
||||
WString
|
||||
3
|
||||
@@ -165,7 +165,7 @@ WVList
|
||||
38
|
||||
WVList
|
||||
0
|
||||
27
|
||||
23
|
||||
1
|
||||
1
|
||||
0
|
||||
@@ -183,7 +183,7 @@ WVList
|
||||
42
|
||||
WVList
|
||||
0
|
||||
27
|
||||
23
|
||||
1
|
||||
1
|
||||
0
|
||||
@@ -201,7 +201,7 @@ WVList
|
||||
46
|
||||
WVList
|
||||
0
|
||||
27
|
||||
23
|
||||
1
|
||||
1
|
||||
0
|
||||
|
||||
@@ -4,8 +4,8 @@ projectIdent
|
||||
VpeMain
|
||||
1
|
||||
WRect
|
||||
1504
|
||||
1490
|
||||
1304
|
||||
460
|
||||
7680
|
||||
9220
|
||||
2
|
||||
@@ -39,5 +39,5 @@ WFileName
|
||||
7
|
||||
dos.tgt
|
||||
0
|
||||
7
|
||||
1
|
||||
7
|
||||
|
||||
Reference in New Issue
Block a user