Move include files to folder.

This commit is contained in:
2021-03-09 04:39:19 +00:00
parent 92a052002c
commit ccdb28a5f6
13 changed files with 346 additions and 429 deletions

View File

@@ -42,9 +42,9 @@ Copyright (C) 2011-2021 Natalia Portillo
#include "os2_16.h"
#include "consts.h"
#include "defs.h"
#include "dosos2.h"
#include "include/consts.h"
#include "include/defs.h"
void GetOsInfo()
{
@@ -79,14 +79,14 @@ void GetOsInfo()
printf("\tMaximum path is %d bytes.\n", pathLen[0]);
}
void GetVolumeInfo(const char *path, size_t *clusterSize)
void GetVolumeInfo(const char* path, size_t* clusterSize)
{
USHORT rc;
BYTE bData[64];
USHORT cbData = sizeof(bData);
PFSALLOCATE pfsAllocateBuffer;
USHORT driveNo = path[0] - '@';
char * fsdName;
char* fsdName;
PFSINFO pfsInfo;
if(driveNo > 32) driveNo -= 32;
@@ -147,7 +147,7 @@ void GetVolumeInfo(const char *path, size_t *clusterSize)
free(pfsInfo);
}
void FileAttributes(const char *path)
void FileAttributes(const char* path)
{
char drivePath[4];
USHORT rc = 0, wRc = 0, cRc = 0;
@@ -530,11 +530,11 @@ void FileAttributes(const char *path)
cRc);
}
void FilePermissions(const char *path)
void FilePermissions(const char* path)
{ /* Do nothing, not supported by target operating system */
}
void ExtendedAttributes(const char *path)
void ExtendedAttributes(const char* path)
{
char drivePath[4];
USHORT rc = 0, wRc = 0, cRc = 0;
@@ -638,11 +638,11 @@ void ExtendedAttributes(const char *path)
printf("\tFile with icon = \"%s\", rc = %d, wRc = %d, cRc = %d\n", "ICON", rc, wRc, cRc);
}
void ResourceFork(const char *path)
void ResourceFork(const char* path)
{ /* Do nothing, not supported by target operating system */
}
void Filenames(const char *path)
void Filenames(const char* path)
{
char drivePath[4];
USHORT rc = 0, wRc = 0, cRc = 0;
@@ -701,7 +701,7 @@ void Filenames(const char *path)
#define DATETIME_FORMAT "This file is dated %04d/%02d/%02d %02d:%02d:%02d for %s\n"
void Timestamps(const char *path)
void Timestamps(const char* path)
{
char drivePath[4];
USHORT rc = 0, wRc = 0, cRc = 0, tRc = 0;
@@ -1328,7 +1328,7 @@ void Timestamps(const char *path)
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d, tRc = %d\n", "Y2K_TIME", rc, wRc, cRc, tRc);
}
void DirectoryDepth(const char *path)
void DirectoryDepth(const char* path)
{
char drivePath[4];
USHORT rc = 0;
@@ -1374,14 +1374,14 @@ void DirectoryDepth(const char *path)
printf("\tCreated %d levels of directory hierarchy\n", pos);
}
void Fragmentation(const char *path, size_t clusterSize)
void Fragmentation(const char* path, size_t clusterSize)
{
size_t halfCluster = clusterSize / 2;
size_t quarterCluster = clusterSize / 4;
size_t twoCluster = clusterSize * 2;
size_t threeQuartersCluster = halfCluster + quarterCluster;
size_t twoAndThreeQuartCluster = threeQuartersCluster + twoCluster;
unsigned char *buffer;
unsigned char* buffer;
char drivePath[4];
USHORT rc = 0, wRc = 0, cRc = 0;
USHORT actionTaken = 0;
@@ -1660,15 +1660,15 @@ void Fragmentation(const char *path, size_t clusterSize)
cRc);
}
void Links(const char *path)
void Links(const char* path)
{ /* Do nothing, not supported by target operating system */
}
void Sparse(const char *path)
void Sparse(const char* path)
{ /* Do nothing, not supported by target operating system */
}
void MillionFiles(const char *path)
void MillionFiles(const char* path)
{
char drivePath[4];
USHORT rc = 0;
@@ -1722,7 +1722,7 @@ void MillionFiles(const char *path)
printf("\tCreated %lu files\n", pos);
}
void DeleteFiles(const char *path)
void DeleteFiles(const char* path)
{
char drivePath[4];
USHORT rc = 0;