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

110
setter/src/include/consts.h Normal file
View File

@@ -0,0 +1,110 @@
/****************************************************************************
Aaru Data Preservation Suite
-----------------------------------------------------------------------------
Filename : consts.h
Author(s) : Natalia Portillo
Component : fstester.setter
--[ Description ] -----------------------------------------------------------
Constants
--[ 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-2021 Natalia Portillo
*****************************************************************************/
#ifndef AARU_FSTESTER_SETTER_CONSTS_H
#define AARU_FSTESTER_SETTER_CONSTS_H
static const char *filenames[] = {
"FILNAM",
"FILNAM.EXT",
"FILENAME",
"FILENAME.EXT",
"UPPCAS",
"lowcas",
"UPPER.low",
"lower.UP",
"CamUpr",
"Dromed",
"droMed",
"FIL NA",
" FILNA",
"FILNA ",
"FILE. XT",
"FILE .EXT",
"FILE . XT",
"Fourteen_Chars",
"FifteenCharacts",
"Sixteen_Characts",
"Twenty_One_Characters",
"This name has thirty charactrs",
"This name has thirty one chactrs",
"This name has thirty two chacters",
"This filename has fourty four characterrs",
"This filename has sixty three characters like a lazy dromedaire",
"This filename has sixty four characters like a redy lazy fox dog",
"This filename has one hundred twenty eight characters and once upon a time in a place which name you must buy the "
"book yetnotget",
"This filename has two hundred thirty six characters and once upon a time in a place which name i have no desire "
"to call to mind there lived not long since one of those gentlemen that keep a lance and well you know it so go "
"and read its",
"This filename has two hundred fourty eight characters and once upon a time in a place which name i have no desire "
"to call to mind there lived not long since one of those gentlemen that keep a lance and well you know it so go "
"and read the book yout",
"This filename has two hundred fifty three characters and once upon a time in a place which name i have no desire "
"to call to mind there lived not long since one of those gentlemen that keep a lance and well you know it so go "
"and read the book as you get",
"This filename has two hundred fifty four characters and once upon a time in a place which name i have no desire "
"to call to mind there lived not long since one of those gentlemen that keep a lance and well you know it so go "
"and read the book as you mustd",
"This filename has two hundred fifty five characters and once upon a time in a place which name i have no desire "
"to call to mind there lived not long since one of those gentlemen that keep a lance and well you know it so go "
"and read the book as you mustdo",
"This filename has two hundred fifty six characters and once upon a time in a place which name i have no desire to "
"call to mind there lived not long since one of those gentlemen that keep a lance and well you know it so go and "
"read the book as you must get",
"?NM?E?",
"N!A!M!",
"NA/ME",
"NA\\ME",
"'QUOT'",
"\"QUOT\"",
"NA>ME>",
"N<AME<",
"NA%%ME",
"N*A*ME",
"NA:ME",
"N|AME|",
"N.A.ME",
".NAME",
"NAME.",
"..NAME",
"NAME..",
"N$ME",
"N@ME@",
"NAM#",
"NA-ME",
"_NAME_",
0};
#define CLAUNIA_SIZE 7
static const unsigned char clauniaBytes[] = {0x43, 0x4C, 0x41, 0x55, 0x4E, 0x49, 0x41};
#endif

67
setter/src/include/defs.h Normal file
View File

@@ -0,0 +1,67 @@
/****************************************************************************
Aaru Data Preservation Suite
-----------------------------------------------------------------------------
Filename : defs.h
Author(s) : Natalia Portillo
Component : fstester.setter
--[ Description ] -----------------------------------------------------------
Contains common 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-2021 Natalia Portillo
*****************************************************************************/
#ifndef AARU_FSTESTER_SETTER_DEFS_H
#define AARU_FSTESTER_SETTER_DEFS_H
#include <stddef.h>
void GetOsInfo(void);
void GetVolumeInfo(const char *path, size_t *clusterSize);
void FileAttributes(const char *path);
void FilePermissions(const char *path);
void ExtendedAttributes(const char *path);
void ResourceFork(const char *path);
void Filenames(const char *path);
void Timestamps(const char *path);
void DirectoryDepth(const char *path);
void Fragmentation(const char *path, size_t clusterSize);
void Sparse(const char *path);
void MillionFiles(const char *path);
void DeleteFiles(const char *path);
void Links(const char *path);
#define FILENAME_FORMAT "This file should be named \"%s\".\n"
#endif