mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Reformatting.
This commit is contained in:
@@ -31,13 +31,8 @@ Copyright (C) 2011-2020 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(__DOS__) || defined(MSDOS)
|
#if defined(__DOS__) || defined(MSDOS)
|
||||||
|
|
||||||
#include "dos.h"
|
|
||||||
|
|
||||||
#include "consts.h"
|
|
||||||
#include "defs.h"
|
|
||||||
#include "dosos2.h"
|
|
||||||
|
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
#include <dos.h>
|
||||||
#include <i86.h>
|
#include <i86.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
@@ -45,6 +40,12 @@ Copyright (C) 2011-2020 Natalia Portillo
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "dos.h"
|
||||||
|
|
||||||
|
#include "consts.h"
|
||||||
|
#include "defs.h"
|
||||||
|
#include "dosos2.h"
|
||||||
|
|
||||||
void GetOsInfo()
|
void GetOsInfo()
|
||||||
{
|
{
|
||||||
union REGS regs;
|
union REGS regs;
|
||||||
@@ -407,11 +408,17 @@ void FileAttributes(const char *path)
|
|||||||
cRc);
|
cRc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FilePermissions(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void FilePermissions(const char *path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
void ExtendedAttributes(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void ExtendedAttributes(const char *path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
void ResourceFork(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void ResourceFork(const char *path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
void Filenames(const char *path)
|
void Filenames(const char *path)
|
||||||
{
|
{
|
||||||
@@ -1072,9 +1079,13 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
cRc);
|
cRc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sparse(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void Sparse(const char *path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
void Links(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void Links(const char *path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
void MillionFiles(const char *path)
|
void MillionFiles(const char *path)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ Contains DOS definitions
|
|||||||
Copyright (C) 2011-2020 Natalia Portillo
|
Copyright (C) 2011-2020 Natalia Portillo
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#if defined(__DOS__) || defined (MSDOS)
|
#if defined(__DOS__) || defined(MSDOS)
|
||||||
|
|
||||||
#ifndef AARU_FSTESTER_SETTER_DOS_H
|
#ifndef AARU_FSTESTER_SETTER_DOS_H
|
||||||
#define AARU_FSTESTER_SETTER_DOS_H
|
#define AARU_FSTESTER_SETTER_DOS_H
|
||||||
|
|||||||
@@ -32,19 +32,19 @@ Copyright (C) 2011-2020 Natalia Portillo
|
|||||||
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
|
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
|
||||||
!defined(__DOS__)
|
!defined(__DOS__)
|
||||||
|
|
||||||
|
#define INCL_DOSMISC
|
||||||
|
#define INCL_DOSFILEMGR
|
||||||
|
|
||||||
|
#include <os2.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define INCL_DOSMISC
|
#include "os2_16.h"
|
||||||
#define INCL_DOSFILEMGR
|
|
||||||
|
|
||||||
#include "consts.h"
|
#include "consts.h"
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
#include "dosos2.h"
|
#include "dosos2.h"
|
||||||
#include "os2_16.h"
|
|
||||||
|
|
||||||
#include <os2.h>
|
|
||||||
|
|
||||||
void GetOsInfo()
|
void GetOsInfo()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,23 +29,22 @@ Contains 32-bit OS/2 code
|
|||||||
Copyright (C) 2011-2020 Natalia Portillo
|
Copyright (C) 2011-2020 Natalia Portillo
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#if(defined(__I386__) || defined(__i386__) || defined(__THW_INTEL) || defined(_M_IX86)) && \
|
#if(defined(__I386__) || defined(__i386__) || defined(__THW_INTEL) || defined(_M_I386)) && \
|
||||||
(defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
(defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#define INCL_DOSMISC
|
#define INCL_DOSMISC
|
||||||
#define INCL_DOSFILEMGR
|
#define INCL_DOSFILEMGR
|
||||||
|
|
||||||
|
#include <os2.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "consts.h"
|
#include "consts.h"
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
#include "dosos2.h"
|
#include "dosos2.h"
|
||||||
#include "os2_16.h"
|
#include "os2_16.h"
|
||||||
|
|
||||||
#include <os2.h>
|
|
||||||
|
|
||||||
void GetOsInfo()
|
void GetOsInfo()
|
||||||
{
|
{
|
||||||
ULONG aulBuffer[3];
|
ULONG aulBuffer[3];
|
||||||
@@ -553,11 +552,17 @@ void FileAttributes(const char *path)
|
|||||||
cRc);
|
cRc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FilePermissions(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void FilePermissions(const char *path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
void ExtendedAttributes(const char *path) { /* TODO: Implement */ }
|
void ExtendedAttributes(const char *path)
|
||||||
|
{ /* TODO: Implement */
|
||||||
|
}
|
||||||
|
|
||||||
void ResourceFork(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void ResourceFork(const char *path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
void Filenames(const char *path)
|
void Filenames(const char *path)
|
||||||
{
|
{
|
||||||
@@ -1577,7 +1582,9 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
cRc);
|
cRc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sparse(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void Sparse(const char *path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
void Links(const char *path)
|
void Links(const char *path)
|
||||||
{
|
{
|
||||||
@@ -1690,4 +1697,5 @@ void DeleteFiles(const char *path)
|
|||||||
DosDelete(&filename);
|
DosDelete(&filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user