Remove preprocessor guards by OS. Project should now only include the needed files.

This commit is contained in:
2021-03-14 14:38:51 +00:00
parent 9aa53cad57
commit 4b75cd3e71
95 changed files with 0 additions and 402 deletions

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include <dos.h>
#include <stdio.h>
#include <string.h>
@@ -87,5 +85,3 @@ void FileAttributes(const char* path)
cRc);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS definitions
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#ifndef SETTER_SRC_DOS_ATTR_H_
#define SETTER_SRC_DOS_ATTR_H_
@@ -114,5 +112,3 @@ static const dos_attr_tests_t dos_attrs[KNOWN_DOS_ATTRS] = {
};
#endif // SETTER_SRC_DOS_ATTR_H_
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include <dos.h>
#include <stdio.h>
#include <string.h>
@@ -79,5 +77,3 @@ void DeleteFiles(const char* path)
unlink(filename);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include <dos.h>
#include <stdio.h>
#include <string.h>
@@ -80,5 +78,3 @@ void DirectoryDepth(const char* path)
printf("\tCreated %d levels of directory hierarchy\n", pos);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include <dos.h>
#include <stdio.h>
#include <string.h>
@@ -84,5 +82,3 @@ void Filenames(const char* path)
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d\n", filenames[pos], rc, wRc, cRc);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include <dos.h>
#include <stdio.h>
#include <string.h>
@@ -80,5 +78,3 @@ void MillionFiles(const char* path)
printf("\tCreated %d files\n", pos);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include <dos.h>
#include <io.h>
#include <stdio.h>
@@ -252,5 +250,3 @@ void Fragmentation(const char* path, size_t clusterSize)
wRc,
cRc);
}
#endif

View File

@@ -27,12 +27,8 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include "../include/defs.h"
void Links(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -107,5 +105,3 @@ void GetOsInfo()
break;
}
}
#endif

View File

@@ -27,12 +27,8 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include "../include/defs.h"
void FilePermissions(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -27,12 +27,8 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include "../include/defs.h"
void ResourceFork(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -27,12 +27,8 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include "../include/defs.h"
void Sparse(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include <dos.h>
#include <stdio.h>
#include <string.h>
@@ -103,5 +101,3 @@ void Timestamps(const char* path)
"\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d, tRc = %d\n", dos_times[i].filename, rc, wRc, cRc, tRc);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS definitions
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#ifndef SETTER_SRC_DOS_TIME_H_
#define SETTER_SRC_DOS_TIME_H_
@@ -73,5 +71,3 @@ static const dos_time_tests_t dos_times[KNOWN_DOS_TIMES] = {
};
#endif // SETTER_SRC_DOS_TIME_H_
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include <dos.h>
#include <errno.h>
#include <io.h>
@@ -85,5 +83,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
*clusterSize = freeSpace.sectorsPerCluster * freeSpace.bytesPerSector;
}
}
#endif

View File

@@ -27,12 +27,8 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__DOS__) || defined(MSDOS)
#include "../include/defs.h"
void ExtendedAttributes(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Linux implementations
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
#include <errno.h>
#include <linux/fs.h>
#include <stdio.h>
@@ -115,5 +113,3 @@ void LinuxFileAttributes(const char* path)
printf("\t%s, rc = %d, wRc = %d, sRc = %d, cRc = %d\n", linux_attrs[i].description, rc, wRc, sRc, cRc);
}
}
#endif

View File

@@ -30,8 +30,6 @@ Copyright (C) 2011-2021 Natalia Portillo
#ifndef SETTER_LINUX_H
#define SETTER_LINUX_H
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
void LinuxExtendedAttributes(const char* path);
void LinuxSparse(const char* path);
void LinuxFileAttributes(const char* path);
@@ -231,5 +229,3 @@ static unsigned char IconEA[3516] = {
0x00};
#endif
#endif // SETTER_LINUX_H

View File

@@ -27,8 +27,6 @@ Contains Linux implementations
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
#include "../include/consts.h"
#define _GNU_SOURCE
#include <errno.h>
@@ -152,5 +150,3 @@ void LinuxSparse(const char* path)
cRc,
zRc);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Linux implementations
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
#include <errno.h>
#include <features.h>
#include <stdio.h>
@@ -105,5 +103,3 @@ void LinuxExtendedAttributes(const char* path)
printf("\tFile with an extended attribute called \"com.ibm.os2.icon\", rc = %d, cRc = %d\n", rc, cRc);
#endif
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
#include <FileTypesAndCreators.h>
#endif
@@ -130,4 +128,3 @@ void FileAttributes(const char* path)
cRc);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
#include <FileTypesAndCreators.h>
#endif
@@ -98,4 +96,3 @@ void DeleteFiles(const char* path)
HDelete(refNum, dirId, str255);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#include <Files.h>
#include <MacTypes.h>
#include <stdint.h>
@@ -103,4 +101,3 @@ void DirectoryDepth(const char* path)
printf("\tCreated %d levels of directory hierarchy\n", pos);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
#include <FileTypesAndCreators.h>
#endif
@@ -113,4 +111,3 @@ void Filenames(const char* path)
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d\n", filenames[pos], rc, wRc, cRc);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
#include <FileTypesAndCreators.h>
#endif
@@ -102,4 +100,3 @@ void MillionFiles(const char* path)
printf("\tCreated %d files\n", pos);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
#include <FileTypesAndCreators.h>
#endif
@@ -312,5 +310,3 @@ void Fragmentation(const char* path, size_t clusterSize)
wRc,
cRc);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
@@ -175,4 +173,3 @@ void Links(const char* path)
printf("pos = %d, rc = %d, wRc = %d, cRc = %d, oRc = %d, aRc = %d\n", pos, rc, wRc, cRc, oRc, aRc);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS definitions.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#ifndef AARU_FSTESTER_SETTER_MACINTOSH_H
#define AARU_FSTESTER_SETTER_MACINTOSH_H
@@ -50,5 +48,3 @@ enum
};
#endif
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#include <Gestalt.h>
#include <MacTypes.h>
#include <stdint.h>
@@ -74,4 +72,3 @@ void GetOsInfo()
if(!rc) { printf("Running under Classic.\n"); }
}
}
#endif

View File

@@ -27,11 +27,8 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#include "../include/defs.h"
void FilePermissions(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
#include <FileTypesAndCreators.h>
#endif
@@ -297,4 +295,3 @@ void ResourceFork(const char* path)
rRc2,
rRc3);
}
#endif

View File

@@ -27,11 +27,8 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#include "../include/defs.h"
void Sparse(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
#include <FileTypesAndCreators.h>
#endif
@@ -126,4 +124,3 @@ void Timestamps(const char* path)
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d, tRc = %d\n", str255, rc, wRc, cRc, tRc);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#include <Files.h>
#include <Gestalt.h>
#include <MacTypes.h>
@@ -145,5 +143,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
default: printf("unknown id 0x%04X\n", fsId); break;
}
}
#endif

View File

@@ -27,11 +27,8 @@ Contains Mac OS code.
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(macintosh)
#include "../include/defs.h"
void ExtendedAttributes(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void FileAttributes(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void DeleteFiles(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void DirectoryDepth(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,8 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +35,3 @@ void Filenames(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void MillionFiles(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void Fragmentation(const char* path, size_t clusterSize)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void Links(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,11 +27,7 @@ Contains DOS definitions
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#ifndef AARU_FSTESTER_SETTER_NETWARE_H
#define AARU_FSTESTER_SETTER_NETWARE_H
#endif
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void GetOsInfo()
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void FilePermissions(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void ResourceFork(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void Sparse(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void Timestamps(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -38,5 +35,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
// TODO: Implement
*clusterSize = 0;
}
#endif

View File

@@ -27,9 +27,6 @@ Contains DOS code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__NETWARE_386__)
#include "../include/consts.h"
#include "../include/defs.h"
#include "netware.h"
@@ -37,5 +34,3 @@ void ExtendedAttributes(const char* path)
{
// TODO: Implement
}
#endif

View File

@@ -27,9 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
!defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -74,5 +71,3 @@ void GetOsInfo()
printf("\tMaximum path is %d bytes.\n", pathLen[0]);
}
#endif

View File

@@ -27,9 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
!defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -147,5 +144,3 @@ void ExtendedAttributes(const char* path)
printf("\tFile with icon = \"%s\", rc = %d, wRc = %d, cRc = %d\n", "ICON", rc, wRc, cRc);
}
#endif

View File

@@ -27,9 +27,6 @@ Contains 32-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if(defined(__I386__) || defined(__i386__) || defined(__THW_INTEL) || defined(_M_I386)) && \
(defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -79,5 +76,3 @@ void GetOsInfo()
printf("\tMaximum path is %lu bytes.\n", pathLen[0]);
}
#endif

View File

@@ -27,9 +27,6 @@ Contains 32-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if(defined(__I386__) || defined(__i386__) || defined(__THW_INTEL) || defined(_M_I386)) && \
(defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -45,5 +42,3 @@ Copyright (C) 2011-2021 Natalia Portillo
void ExtendedAttributes(const char* path)
{ /* TODO: Implement */
}
#endif

View File

@@ -27,8 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -93,5 +91,3 @@ void DeleteFiles(const char* path)
__os2_delete(&filename);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -86,5 +84,3 @@ void DirectoryDepth(const char* path)
printf("\tCreated %d levels of directory hierarchy\n", pos);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -97,5 +95,3 @@ void Filenames(const char* path)
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d\n", filenames[pos], rc, wRc, cRc);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -94,5 +92,3 @@ void MillionFiles(const char* path)
printf("\tCreated %lu files\n", pos);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -326,5 +324,3 @@ void Fragmentation(const char* path, size_t clusterSize)
wRc,
cRc);
}
#endif

View File

@@ -27,9 +27,6 @@ Contains 32-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if(defined(__I386__) || defined(__i386__) || defined(__THW_INTEL) || defined(_M_I386)) && \
(defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#include "include/defs.h"
void Links(const char* path)
@@ -37,5 +34,3 @@ void Links(const char* path)
/* Do nothing, not supported by target operating system */
// TODO: Check if can ask WPS to make Shadow
}
#endif

View File

@@ -27,7 +27,6 @@ Contains 16-bit OS/2 definitions
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if(defined(__OS2__) || defined(__os2__))
#ifndef AARU_FSTESTER_SETTER_OS2_H
#define AARU_FSTESTER_SETTER_OS2_H
@@ -92,5 +91,3 @@ Copyright (C) 2011-2021 Natalia Portillo
#endif
#endif
#endif

View File

@@ -27,10 +27,7 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#include "include/defs.h"
void FilePermissions(const char* path) { /* Do nothing, not supported by target operating system */ }
#endif

View File

@@ -27,10 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
#include "include/defs.h"
void ResourceFork(const char* path) { /* Do nothing, not supported by target operating system */ }
#endif

View File

@@ -27,9 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
!defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -45,5 +42,3 @@ Copyright (C) 2011-2021 Natalia Portillo
void Sparse(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -27,9 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
!defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -678,5 +675,3 @@ void Timestamps(const char* path)
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d, tRc = %d\n", "Y2K_TIME", rc, wRc, cRc, tRc);
}
#endif

View File

@@ -27,9 +27,6 @@ Contains 16-bit OS/2 code
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
!defined(__DOS__)
#define INCL_DOSMISC
#define INCL_DOSFILEMGR
@@ -138,5 +135,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
free(pfsInfo);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include "../include/defs.h"
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
@@ -41,5 +39,3 @@ void FileAttributes(const char* path)
LinuxFileAttributes(path);
#endif
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
@@ -82,5 +80,3 @@ void DeleteFiles(const char* path)
unlink(filename);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stdio.h>
#include <string.h>
@@ -85,5 +83,3 @@ void DirectoryDepth(const char* path)
printf("\tCreated %ld levels of directory hierarchy\n", pos);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stdio.h>
#include <string.h>
@@ -95,5 +93,3 @@ void Filenames(const char* path)
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d\n", filenames[pos], rc, wRc, cRc);
}
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
@@ -84,5 +82,3 @@ void MillionFiles(const char* path)
printf("\tCreated %ld files\n", pos);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
@@ -330,5 +328,3 @@ void Fragmentation(const char* path, size_t clusterSize)
wRc,
cRc);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
@@ -88,5 +86,3 @@ void Links(const char* path)
if(ret) { printf("Error %d creating symbolic link.\n", errno); }
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stdio.h>
#include <sys/utsname.h>
@@ -54,5 +52,3 @@ void GetOsInfo()
printf("\tVersion: %s\n", buf.version);
printf("\tMachine: %s\n", buf.machine);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
@@ -89,5 +87,3 @@ void FilePermissions(const char* path)
printf("\t%s: name = \"%s\", rc = %d, cRc = %d\n", unix_perms[i].description, unix_perms[i].filename, rc, cRc);
}
}
#endif

View File

@@ -27,13 +27,9 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include "../include/defs.h"
void ResourceFork(const char* path)
{
// Not supported
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include "../include/defs.h"
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
@@ -41,5 +39,3 @@ void Sparse(const char* path)
LinuxSparse(path);
#endif
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
@@ -316,5 +314,3 @@ void Timestamps(const char* path)
}
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d, tRc = %d\n", "LESSMTIME", rc, wRc, cRc, tRc);
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
@@ -221,5 +219,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
*clusterSize = buf.f_bsize;
}
#endif

View File

@@ -27,8 +27,6 @@ Contains common implementations for UNIX family and compatibles
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
#include "../include/defs.h"
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
@@ -41,5 +39,3 @@ void ExtendedAttributes(const char* path)
LinuxExtendedAttributes(path);
#endif
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -225,5 +222,3 @@ void FileAttributes(const char* path)
FreeLibrary(advapi32);
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -106,5 +103,3 @@ void DeleteFiles(const char* path)
DeleteFileA(filename);
}
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -107,5 +104,3 @@ void DirectoryDepth(const char* path)
printf("\tCreated %ld levels of directory hierarchy\n", pos);
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -121,5 +118,3 @@ void Filenames(const char* path)
printf("\tFile name = \"%s\", rc = %lu, wRc = %lu, cRc = %lu\n", filenames[pos], rc, wRc, cRc);
}
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -108,5 +105,3 @@ void MillionFiles(const char* path)
printf("\tCreated %lu files\n", pos);
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -363,5 +360,3 @@ void Fragmentation(const char* path, size_t clusterSize)
wRc,
cRc);
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -216,5 +213,3 @@ void Links(const char* path)
FreeLibrary(kernel32);
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -200,5 +197,3 @@ void GetOsInfo()
FreeLibrary(kernel32);
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include "../include/defs.h"
@@ -39,5 +36,3 @@ Copyright (C) 2011-2021 Natalia Portillo
void FilePermissions(const char* path)
{ /* Do nothing, not supported by target operating system */
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -346,5 +343,3 @@ void ResourceFork(const char* path)
wRc,
cRc);
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -305,5 +302,3 @@ void Sparse(const char* path)
sRc,
zRc);
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -141,5 +138,3 @@ void Timestamps(const char* path)
tRc);
}
}
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -351,5 +348,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
if(func) FreeLibrary(kernel32);
}
#endif

View File

@@ -27,9 +27,6 @@ Contains 32-bit and 64-bit Windows declarations
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#ifndef AARU_FSTESTER_SETTER_WIN32_H
#define AARU_FSTESTER_SETTER_WIN32_H
@@ -61,5 +58,3 @@ static DWORD dwMaxNameSize = MAX_PATH + 1;
static DWORD dwFilePermissions = GENERIC_READ | GENERIC_WRITE;
#endif
#endif

View File

@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
// ReSharper disable CppJoinDeclarationAndAssignment
// ReSharper disable CppDeprecatedEntity
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
defined(__NT__)
#define _CRT_SECURE_NO_WARNINGS 1
#include <windows.h>
@@ -354,5 +351,3 @@ void ExtendedAttributes(const char* path)
FreeLibrary(ntdll);
}
#endif