From 985f8af61da809877e477fbf944a9e9208adda6f Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 19 Apr 2021 01:49:53 +0100 Subject: [PATCH] Add AmigaOS skeleton. --- setter/src/CMakeLists.txt | 1 + setter/src/amiga/CMakeLists.txt | 40 +++++++++++++++++++++++++++++++++ setter/src/amiga/attr.c | 31 +++++++++++++++++++++++++ setter/src/amiga/deleted.c | 30 +++++++++++++++++++++++++ setter/src/amiga/dirdepth.c | 30 +++++++++++++++++++++++++ setter/src/amiga/filename.c | 30 +++++++++++++++++++++++++ setter/src/amiga/files.c | 30 +++++++++++++++++++++++++ setter/src/amiga/frag.c | 30 +++++++++++++++++++++++++ setter/src/amiga/links.c | 30 +++++++++++++++++++++++++ setter/src/amiga/os.c | 30 +++++++++++++++++++++++++ setter/src/amiga/perms.c | 30 +++++++++++++++++++++++++ setter/src/amiga/rsrcfork.c | 30 +++++++++++++++++++++++++ setter/src/amiga/sparse.c | 30 +++++++++++++++++++++++++ setter/src/amiga/time.c | 30 +++++++++++++++++++++++++ setter/src/amiga/volume.c | 30 +++++++++++++++++++++++++ setter/src/amiga/xattr.c | 30 +++++++++++++++++++++++++ 16 files changed, 462 insertions(+) create mode 100644 setter/src/amiga/CMakeLists.txt create mode 100644 setter/src/amiga/attr.c create mode 100644 setter/src/amiga/deleted.c create mode 100644 setter/src/amiga/dirdepth.c create mode 100644 setter/src/amiga/filename.c create mode 100644 setter/src/amiga/files.c create mode 100644 setter/src/amiga/frag.c create mode 100644 setter/src/amiga/links.c create mode 100644 setter/src/amiga/os.c create mode 100644 setter/src/amiga/perms.c create mode 100644 setter/src/amiga/rsrcfork.c create mode 100644 setter/src/amiga/sparse.c create mode 100644 setter/src/amiga/time.c create mode 100644 setter/src/amiga/volume.c create mode 100644 setter/src/amiga/xattr.c diff --git a/setter/src/CMakeLists.txt b/setter/src/CMakeLists.txt index f3d0a9f..5398038 100644 --- a/setter/src/CMakeLists.txt +++ b/setter/src/CMakeLists.txt @@ -31,3 +31,4 @@ add_subdirectory(dos) add_subdirectory(win32) add_subdirectory(unix) add_subdirectory(beos) +add_subdirectory(amiga) diff --git a/setter/src/amiga/CMakeLists.txt b/setter/src/amiga/CMakeLists.txt new file mode 100644 index 0000000..5695142 --- /dev/null +++ b/setter/src/amiga/CMakeLists.txt @@ -0,0 +1,40 @@ +# /**************************************************************************** +# Aaru Data Preservation Suite +# ----------------------------------------------------------------------------- +# +# Author(s) : Natalia Portillo +# +# --[ 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 warranty of +# MERCHANTABILITY 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 . +# +# ----------------------------------------------------------------------------- +# Copyright (C) 2011-2021 Natalia Portillo +# *****************************************************************************/ + +if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "AmigaOS" AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "MorphOS" AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "AROS") + return() +endif() + +project( + fssetter-amiga + DESCRIPTION "Filesystem test creator for AmigaOS and compatibles" + LANGUAGES C) + +set(PLATFORM_SOURCES attr.c deleted.c dirdepth.c filename.c files.c frag.c links.c os.c perms.c perms.h rsrcfork.c sparse.c time.c volume.c xattr.c) + +set(EXECUTABLE_NAME "fssetter-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}") + +add_executable(${EXECUTABLE_NAME} ${PLATFORM_SOURCES}) + +target_link_libraries(${EXECUTABLE_NAME} core) \ No newline at end of file diff --git a/setter/src/amiga/attr.c b/setter/src/amiga/attr.c new file mode 100644 index 0000000..068b8b3 --- /dev/null +++ b/setter/src/amiga/attr.c @@ -0,0 +1,31 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + + +void FileAttributes(const char* path) +{ + // TODO +} diff --git a/setter/src/amiga/deleted.c b/setter/src/amiga/deleted.c new file mode 100644 index 0000000..1a565dc --- /dev/null +++ b/setter/src/amiga/deleted.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void DeleteFiles(const char* path) +{ + // TODO +} diff --git a/setter/src/amiga/dirdepth.c b/setter/src/amiga/dirdepth.c new file mode 100644 index 0000000..2a91ac3 --- /dev/null +++ b/setter/src/amiga/dirdepth.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void DirectoryDepth(const char* path) +{ + // TODO +} diff --git a/setter/src/amiga/filename.c b/setter/src/amiga/filename.c new file mode 100644 index 0000000..16b15a4 --- /dev/null +++ b/setter/src/amiga/filename.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void Filenames(const char* path) +{ + // TODO +} diff --git a/setter/src/amiga/files.c b/setter/src/amiga/files.c new file mode 100644 index 0000000..69816d7 --- /dev/null +++ b/setter/src/amiga/files.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void MillionFiles(const char* path) +{ + // TODO +} diff --git a/setter/src/amiga/frag.c b/setter/src/amiga/frag.c new file mode 100644 index 0000000..da3c9db --- /dev/null +++ b/setter/src/amiga/frag.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void Fragmentation(const char* path, size_t clusterSize) +{ + // TODO +} diff --git a/setter/src/amiga/links.c b/setter/src/amiga/links.c new file mode 100644 index 0000000..50494ee --- /dev/null +++ b/setter/src/amiga/links.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void Links(const char* path) +{ + // TODO +} diff --git a/setter/src/amiga/os.c b/setter/src/amiga/os.c new file mode 100644 index 0000000..f2bc711 --- /dev/null +++ b/setter/src/amiga/os.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void GetOsInfo() +{ + // TODO +} diff --git a/setter/src/amiga/perms.c b/setter/src/amiga/perms.c new file mode 100644 index 0000000..6fd4ae5 --- /dev/null +++ b/setter/src/amiga/perms.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void FilePermissions(const char* path) +{ + // TODO +} diff --git a/setter/src/amiga/rsrcfork.c b/setter/src/amiga/rsrcfork.c new file mode 100644 index 0000000..bde6461 --- /dev/null +++ b/setter/src/amiga/rsrcfork.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void ResourceFork(const char* path) +{ + // Not supported +} diff --git a/setter/src/amiga/sparse.c b/setter/src/amiga/sparse.c new file mode 100644 index 0000000..743d704 --- /dev/null +++ b/setter/src/amiga/sparse.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void Sparse(const char* path) +{ + // TODO +} diff --git a/setter/src/amiga/time.c b/setter/src/amiga/time.c new file mode 100644 index 0000000..2aed506 --- /dev/null +++ b/setter/src/amiga/time.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void Timestamps(const char* path) +{ + // TODO +} diff --git a/setter/src/amiga/volume.c b/setter/src/amiga/volume.c new file mode 100644 index 0000000..c1ab83d --- /dev/null +++ b/setter/src/amiga/volume.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void GetVolumeInfo(const char* path, size_t* clusterSize) +{ + // TODO +} diff --git a/setter/src/amiga/xattr.c b/setter/src/amiga/xattr.c new file mode 100644 index 0000000..180852b --- /dev/null +++ b/setter/src/amiga/xattr.c @@ -0,0 +1,30 @@ +/**************************************************************************** +Aaru Data Preservation Suite +----------------------------------------------------------------------------- + + Author(s) : Natalia Portillo + +--[ 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 warranty of + MERCHANTABILITY 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 . + +----------------------------------------------------------------------------- +Copyright (C) 2011-2021 Natalia Portillo +*****************************************************************************/ + +#include "../include/defs.h" + +void ExtendedAttributes(const char* path) +{ + // TODO +}