mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Remove unused MacOS code.
This commit is contained in:
@@ -29,25 +29,16 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||||
#include <FileTypesAndCreators.h>
|
#include <FileTypesAndCreators.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "attr.h"
|
#include "attr.h"
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
@@ -63,7 +54,6 @@ void FileAttributes(const char* path)
|
|||||||
FInfo finderInfo;
|
FInfo finderInfo;
|
||||||
int32_t count;
|
int32_t count;
|
||||||
HParamBlockRec fpb;
|
HParamBlockRec fpb;
|
||||||
CInfoPBRec cipbr;
|
|
||||||
HParamBlockRec dirPB;
|
HParamBlockRec dirPB;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,12 @@
|
|||||||
#ifndef SETTER_SRC_MACOS_ATTR_H_
|
#ifndef SETTER_SRC_MACOS_ATTR_H_
|
||||||
#define SETTER_SRC_MACOS_ATTR_H_
|
#define SETTER_SRC_MACOS_ATTR_H_
|
||||||
|
|
||||||
|
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||||
|
#include <FileTypesAndCreators.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <MacTypes.h>
|
||||||
|
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|||||||
@@ -29,40 +29,28 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||||
#include <FileTypesAndCreators.h>
|
#include <FileTypesAndCreators.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
|
|
||||||
void DeleteFiles(const char* path)
|
void DeleteFiles(const char* path)
|
||||||
{
|
{
|
||||||
OSErr rc, wRc, cRc;
|
OSErr rc;
|
||||||
Str255 str255;
|
Str255 str255;
|
||||||
HVolumeParam hpb;
|
HVolumeParam hpb;
|
||||||
int16_t refNum;
|
int16_t refNum;
|
||||||
int16_t refFile;
|
|
||||||
int32_t dirId;
|
int32_t dirId;
|
||||||
FInfo finderInfo;
|
|
||||||
int32_t count;
|
|
||||||
char filename[9];
|
char filename[9];
|
||||||
int pos = 0;
|
int pos;
|
||||||
HParamBlockRec dirPB;
|
HParamBlockRec dirPB;
|
||||||
|
|
||||||
snprintf((char*)str255, 255, "%s", path);
|
snprintf((char*)str255, 255, "%s", path);
|
||||||
|
|||||||
@@ -29,38 +29,22 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <FileTypesAndCreators.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
|
|
||||||
void DirectoryDepth(const char* path)
|
void DirectoryDepth(const char* path)
|
||||||
{
|
{
|
||||||
OSErr rc, wRc, cRc;
|
OSErr rc;
|
||||||
Str255 str255;
|
Str255 str255;
|
||||||
HVolumeParam hpb;
|
HVolumeParam hpb;
|
||||||
int16_t refNum;
|
int16_t refNum;
|
||||||
int16_t refFile;
|
|
||||||
int32_t dirId;
|
int32_t dirId;
|
||||||
FInfo finderInfo;
|
|
||||||
int32_t count;
|
|
||||||
char filename[9];
|
char filename[9];
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
HParamBlockRec dirPB;
|
HParamBlockRec dirPB;
|
||||||
@@ -92,8 +76,6 @@ void DirectoryDepth(const char* path)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
dirId = dirPB.fileParam.ioDirID;
|
|
||||||
|
|
||||||
printf("Creating deepest directory tree.\n");
|
printf("Creating deepest directory tree.\n");
|
||||||
|
|
||||||
while(!rc)
|
while(!rc)
|
||||||
|
|||||||
@@ -29,22 +29,14 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||||
#include <FileTypesAndCreators.h>
|
#include <FileTypesAndCreators.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../include/consts.h"
|
#include "../include/consts.h"
|
||||||
|
|||||||
@@ -29,22 +29,14 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||||
#include <FileTypesAndCreators.h>
|
#include <FileTypesAndCreators.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../include/consts.h"
|
#include "../include/consts.h"
|
||||||
|
|||||||
@@ -29,19 +29,12 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||||
#include <FileTypesAndCreators.h>
|
#include <FileTypesAndCreators.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -41,20 +41,16 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
#include <Gestalt.h>
|
#include <Gestalt.h>
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
#include <Resources.h>
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "links.h"
|
#include "links.h"
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
|
|
||||||
static pascal OSErr
|
static pascal OSErr CreateAliasFile(FSSpec* targetFile, FSSpec* aliasFile, OSType fileCreator, OSType fileType)
|
||||||
|
|
||||||
CreateAliasFile(const FSSpec* targetFile, const FSSpec* aliasFile, OSType fileCreator, OSType fileType)
|
|
||||||
{
|
{
|
||||||
short rsrcID;
|
short rsrcID;
|
||||||
short aliasRefnum;
|
short aliasRefnum;
|
||||||
@@ -97,7 +93,7 @@ void Links(const char* path)
|
|||||||
int16_t refFile;
|
int16_t refFile;
|
||||||
int32_t dirId;
|
int32_t dirId;
|
||||||
char filename[9];
|
char filename[9];
|
||||||
int pos = 0;
|
int pos;
|
||||||
FSSpec targetSpec, aliasSpec;
|
FSSpec targetSpec, aliasSpec;
|
||||||
int32_t count;
|
int32_t count;
|
||||||
HParamBlockRec dirPB;
|
HParamBlockRec dirPB;
|
||||||
|
|||||||
@@ -5,6 +5,15 @@
|
|||||||
#ifndef SETTER_SRC_MACOS_LINKS_H_
|
#ifndef SETTER_SRC_MACOS_LINKS_H_
|
||||||
#define SETTER_SRC_MACOS_LINKS_H_
|
#define SETTER_SRC_MACOS_LINKS_H_
|
||||||
|
|
||||||
|
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
||||||
|
#include <Aliases.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <Files.h>
|
||||||
|
#include <MacTypes.h>
|
||||||
|
|
||||||
|
static pascal OSErr CreateAliasFile(FSSpec* targetFile, FSSpec* aliasFile, OSType fileCreator, OSType fileType);
|
||||||
|
|
||||||
const char* targetText = "This file is the target of an alias.\r";
|
const char* targetText = "This file is the target of an alias.\r";
|
||||||
|
|
||||||
#endif // SETTER_SRC_MACOS_LINKS_H_
|
#endif // SETTER_SRC_MACOS_LINKS_H_
|
||||||
|
|||||||
@@ -29,25 +29,11 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <FileTypesAndCreators.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Files.h>
|
|
||||||
#include <Gestalt.h>
|
#include <Gestalt.h>
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
|
|
||||||
|
|||||||
@@ -29,27 +29,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <FileTypesAndCreators.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Files.h>
|
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "macos.h"
|
|
||||||
|
|
||||||
void FilePermissions(const char* path)
|
void FilePermissions(const char* path)
|
||||||
{ /* Do nothing, not supported by target operating system */
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
|||||||
@@ -29,25 +29,17 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||||
#include <FileTypesAndCreators.h>
|
#include <FileTypesAndCreators.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
#include <Resources.h>
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
#include "rsrcfork.h"
|
#include "rsrcfork.h"
|
||||||
@@ -101,7 +93,6 @@ void ResourceFork(const char* path)
|
|||||||
FInfo finderInfo;
|
FInfo finderInfo;
|
||||||
int32_t count;
|
int32_t count;
|
||||||
HParamBlockRec fpb;
|
HParamBlockRec fpb;
|
||||||
CInfoPBRec cipbr;
|
|
||||||
HParamBlockRec dirPB;
|
HParamBlockRec dirPB;
|
||||||
|
|
||||||
snprintf((char*)str255, 255, "%s", path);
|
snprintf((char*)str255, 255, "%s", path);
|
||||||
|
|||||||
@@ -5,6 +5,15 @@
|
|||||||
#ifndef SETTER_SRC_MACOS_RSRCFORK_H_
|
#ifndef SETTER_SRC_MACOS_RSRCFORK_H_
|
||||||
#define SETTER_SRC_MACOS_RSRCFORK_H_
|
#define SETTER_SRC_MACOS_RSRCFORK_H_
|
||||||
|
|
||||||
|
static OSErr SaveResourceToNewFile(int16_t vRefNum,
|
||||||
|
int32_t dirID,
|
||||||
|
Str255 filename,
|
||||||
|
ResType type,
|
||||||
|
int16_t resId,
|
||||||
|
Str255 resName,
|
||||||
|
unsigned char* buffer,
|
||||||
|
size_t length);
|
||||||
|
|
||||||
const char* rsrcText = "This file has a custom icon, a version, and a picture, in the resource fork.\r";
|
const char* rsrcText = "This file has a custom icon, a version, and a picture, in the resource fork.\r";
|
||||||
|
|
||||||
const unsigned char IcnsResource[5618] = {
|
const unsigned char IcnsResource[5618] = {
|
||||||
|
|||||||
@@ -29,27 +29,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <FileTypesAndCreators.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Files.h>
|
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "macos.h"
|
|
||||||
|
|
||||||
void Sparse(const char* path)
|
void Sparse(const char* path)
|
||||||
{ /* Do nothing, not supported by target operating system */
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
|||||||
@@ -29,25 +29,15 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||||
#include <FileTypesAndCreators.h>
|
#include <FileTypesAndCreators.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
#include "time.h"
|
#include "time.h"
|
||||||
@@ -60,7 +50,6 @@ void Timestamps(const char* path)
|
|||||||
int16_t refNum;
|
int16_t refNum;
|
||||||
int16_t refFile;
|
int16_t refFile;
|
||||||
int32_t dirId;
|
int32_t dirId;
|
||||||
FInfo finderInfo;
|
|
||||||
int32_t count;
|
int32_t count;
|
||||||
HFileInfo* fpb;
|
HFileInfo* fpb;
|
||||||
CInfoPBRec cipbr;
|
CInfoPBRec cipbr;
|
||||||
|
|||||||
@@ -29,25 +29,12 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <FileTypesAndCreators.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Gestalt.h>
|
#include <Gestalt.h>
|
||||||
#include <MacTypes.h>
|
#include <MacTypes.h>
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
|
|
||||||
|
|||||||
@@ -29,27 +29,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <Aliases.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
|
||||||
#include <FileTypesAndCreators.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Files.h>
|
|
||||||
#include <Gestalt.h>
|
|
||||||
#include <MacTypes.h>
|
|
||||||
#include <Resources.h>
|
|
||||||
#include <TextUtils.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "macos.h"
|
|
||||||
|
|
||||||
void ExtendedAttributes(const char* path)
|
void ExtendedAttributes(const char* path)
|
||||||
{ /* Do nothing, not supported by target operating system */
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
|||||||
Reference in New Issue
Block a user