2016-07-28 18:13:49 +01:00
|
|
|
// /***************************************************************************
|
|
|
|
|
// The Disc Image Chef
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Filename : AppleMFS.cs
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
//
|
|
|
|
|
// Component : Apple Macintosh File System filesystem plugin.
|
|
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Identifies the Apple Macintosh File System and shows information.
|
|
|
|
|
//
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// This library is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as
|
|
|
|
|
// published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This library 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
|
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
// Copyright © 2011-2016 Natalia Portillo
|
|
|
|
|
// ****************************************************************************/
|
2014-04-17 19:58:14 +00:00
|
|
|
|
2011-03-03 18:34:33 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Text;
|
2016-07-21 17:16:08 +01:00
|
|
|
using System.Collections.Generic;
|
2011-03-03 18:34:33 +00:00
|
|
|
|
2016-07-21 16:15:39 +01:00
|
|
|
namespace DiscImageChef.Filesystems
|
2011-03-03 18:34:33 +00:00
|
|
|
{
|
2016-07-28 22:25:26 +01:00
|
|
|
// Information from Inside Macintosh
|
2016-07-21 16:15:39 +01:00
|
|
|
class AppleMFS : Filesystem
|
2014-04-14 02:29:13 +00:00
|
|
|
{
|
2016-07-28 22:25:26 +01:00
|
|
|
const ushort MFS_MAGIC = 0xD2D7;
|
2014-04-14 02:29:13 +00:00
|
|
|
// "LK"
|
2016-07-28 22:25:26 +01:00
|
|
|
const ushort MFSBB_MAGIC = 0x4C4B;
|
2012-08-05 00:43:49 +00:00
|
|
|
|
2015-10-05 20:04:05 +01:00
|
|
|
public AppleMFS()
|
2011-03-03 18:34:33 +00:00
|
|
|
{
|
2014-04-14 02:29:13 +00:00
|
|
|
Name = "Apple Macintosh File System";
|
|
|
|
|
PluginUUID = new Guid("36405F8D-0D26-4066-6538-5DBF5D065C3A");
|
2011-03-03 18:34:33 +00:00
|
|
|
}
|
2012-08-05 00:43:49 +00:00
|
|
|
|
2016-07-27 13:32:45 +01:00
|
|
|
public AppleMFS(ImagePlugins.ImagePlugin imagePlugin, ulong partitionStart, ulong partitionEnd)
|
|
|
|
|
{
|
|
|
|
|
Name = "Apple Macintosh File System";
|
|
|
|
|
PluginUUID = new Guid("36405F8D-0D26-4066-6538-5DBF5D065C3A");
|
|
|
|
|
}
|
|
|
|
|
|
2015-04-20 05:09:46 +01:00
|
|
|
public override bool Identify(ImagePlugins.ImagePlugin imagePlugin, ulong partitionStart, ulong partitionEnd)
|
2014-04-14 02:29:13 +00:00
|
|
|
{
|
2016-07-28 22:25:26 +01:00
|
|
|
ushort drSigWord;
|
2014-04-14 02:29:13 +00:00
|
|
|
|
2016-04-19 02:11:47 +01:00
|
|
|
if((2 + partitionStart) >= imagePlugin.GetSectors())
|
2014-07-09 19:49:14 +01:00
|
|
|
return false;
|
|
|
|
|
|
2015-04-20 05:09:46 +01:00
|
|
|
byte[] mdb_sector = imagePlugin.ReadSector(2 + partitionStart);
|
2014-04-14 02:29:13 +00:00
|
|
|
|
|
|
|
|
drSigWord = BigEndianBitConverter.ToUInt16(mdb_sector, 0x000);
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
return drSigWord == MFS_MAGIC;
|
|
|
|
|
}
|
|
|
|
|
|
2015-04-20 05:09:46 +01:00
|
|
|
public override void GetInformation(ImagePlugins.ImagePlugin imagePlugin, ulong partitionStart, ulong partitionEnd, out string information)
|
2014-04-14 02:29:13 +00:00
|
|
|
{
|
|
|
|
|
information = "";
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
StringBuilder sb = new StringBuilder();
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
MFS_MasterDirectoryBlock MDB = new MFS_MasterDirectoryBlock();
|
|
|
|
|
MFS_BootBlock BB = new MFS_BootBlock();
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
byte[] pString = new byte[16];
|
|
|
|
|
byte[] variable_size;
|
|
|
|
|
|
2015-04-20 05:09:46 +01:00
|
|
|
byte[] mdb_sector = imagePlugin.ReadSector(2 + partitionStart);
|
|
|
|
|
byte[] bb_sector = imagePlugin.ReadSector(0 + partitionStart);
|
2012-08-05 00:43:49 +00:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
MDB.drSigWord = BigEndianBitConverter.ToUInt16(mdb_sector, 0x000);
|
2016-04-19 02:11:47 +01:00
|
|
|
if(MDB.drSigWord != MFS_MAGIC)
|
2014-04-14 02:29:13 +00:00
|
|
|
return;
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
MDB.drCrDate = BigEndianBitConverter.ToUInt32(mdb_sector, 0x002);
|
2014-04-17 02:58:08 +00:00
|
|
|
MDB.drLsBkUp = BigEndianBitConverter.ToUInt32(mdb_sector, 0x006);
|
|
|
|
|
MDB.drAtrb = BigEndianBitConverter.ToUInt16(mdb_sector, 0x00A);
|
|
|
|
|
MDB.drNmFls = BigEndianBitConverter.ToUInt16(mdb_sector, 0x00C);
|
|
|
|
|
MDB.drDirSt = BigEndianBitConverter.ToUInt16(mdb_sector, 0x00E);
|
|
|
|
|
MDB.drBlLen = BigEndianBitConverter.ToUInt16(mdb_sector, 0x010);
|
|
|
|
|
MDB.drNmAlBlks = BigEndianBitConverter.ToUInt16(mdb_sector, 0x012);
|
|
|
|
|
MDB.drAlBlkSiz = BigEndianBitConverter.ToUInt32(mdb_sector, 0x014);
|
|
|
|
|
MDB.drClpSiz = BigEndianBitConverter.ToUInt32(mdb_sector, 0x018);
|
|
|
|
|
MDB.drAlBlSt = BigEndianBitConverter.ToUInt16(mdb_sector, 0x01C);
|
|
|
|
|
MDB.drNxtFNum = BigEndianBitConverter.ToUInt32(mdb_sector, 0x01E);
|
|
|
|
|
MDB.drFreeBks = BigEndianBitConverter.ToUInt16(mdb_sector, 0x022);
|
|
|
|
|
MDB.drVNSiz = mdb_sector[0x024];
|
2014-04-14 02:29:13 +00:00
|
|
|
variable_size = new byte[MDB.drVNSiz];
|
2014-04-17 02:58:08 +00:00
|
|
|
Array.Copy(mdb_sector, 0x025, variable_size, 0, MDB.drVNSiz);
|
2014-04-14 02:29:13 +00:00
|
|
|
MDB.drVN = Encoding.ASCII.GetString(variable_size);
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
BB.signature = BigEndianBitConverter.ToUInt16(bb_sector, 0x000);
|
2016-04-19 02:11:47 +01:00
|
|
|
|
|
|
|
|
if(BB.signature == MFSBB_MAGIC)
|
2014-04-14 02:29:13 +00:00
|
|
|
{
|
|
|
|
|
BB.branch = BigEndianBitConverter.ToUInt32(bb_sector, 0x002);
|
|
|
|
|
BB.boot_flags = bb_sector[0x006];
|
|
|
|
|
BB.boot_version = bb_sector[0x007];
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
BB.sec_sv_pages = BigEndianBitConverter.ToInt16(bb_sector, 0x008);
|
2012-08-05 00:43:49 +00:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
Array.Copy(mdb_sector, 0x00A, pString, 0, 16);
|
|
|
|
|
BB.system_name = StringHandlers.PascalToString(pString);
|
|
|
|
|
Array.Copy(mdb_sector, 0x01A, pString, 0, 16);
|
|
|
|
|
BB.finder_name = StringHandlers.PascalToString(pString);
|
|
|
|
|
Array.Copy(mdb_sector, 0x02A, pString, 0, 16);
|
|
|
|
|
BB.debug_name = StringHandlers.PascalToString(pString);
|
|
|
|
|
Array.Copy(mdb_sector, 0x03A, pString, 0, 16);
|
|
|
|
|
BB.disasm_name = StringHandlers.PascalToString(pString);
|
|
|
|
|
Array.Copy(mdb_sector, 0x04A, pString, 0, 16);
|
|
|
|
|
BB.stupscr_name = StringHandlers.PascalToString(pString);
|
|
|
|
|
Array.Copy(mdb_sector, 0x05A, pString, 0, 16);
|
|
|
|
|
BB.bootup_name = StringHandlers.PascalToString(pString);
|
|
|
|
|
Array.Copy(mdb_sector, 0x06A, pString, 0, 16);
|
|
|
|
|
BB.clipbrd_name = StringHandlers.PascalToString(pString);
|
2012-08-05 00:43:49 +00:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
BB.max_files = BigEndianBitConverter.ToUInt16(bb_sector, 0x07A);
|
|
|
|
|
BB.queue_size = BigEndianBitConverter.ToUInt16(bb_sector, 0x07C);
|
|
|
|
|
BB.heap_128k = BigEndianBitConverter.ToUInt32(bb_sector, 0x07E);
|
|
|
|
|
BB.heap_256k = BigEndianBitConverter.ToUInt32(bb_sector, 0x082);
|
|
|
|
|
BB.heap_512k = BigEndianBitConverter.ToUInt32(bb_sector, 0x086);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
BB.signature = 0x0000;
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
sb.AppendLine("Apple Macintosh File System");
|
|
|
|
|
sb.AppendLine();
|
|
|
|
|
sb.AppendLine("Master Directory Block:");
|
|
|
|
|
sb.AppendFormat("Creation date: {0}", DateHandlers.MacToDateTime(MDB.drCrDate)).AppendLine();
|
|
|
|
|
sb.AppendFormat("Last backup date: {0}", DateHandlers.MacToDateTime(MDB.drLsBkUp)).AppendLine();
|
2016-04-19 02:11:47 +01:00
|
|
|
if((MDB.drAtrb & 0x80) == 0x80)
|
2014-04-14 02:29:13 +00:00
|
|
|
sb.AppendLine("Volume is locked by hardware.");
|
2016-04-19 02:11:47 +01:00
|
|
|
if((MDB.drAtrb & 0x8000) == 0x8000)
|
2014-04-14 02:29:13 +00:00
|
|
|
sb.AppendLine("Volume is locked by software.");
|
|
|
|
|
sb.AppendFormat("{0} files on volume", MDB.drNmFls).AppendLine();
|
|
|
|
|
sb.AppendFormat("First directory block: {0}", MDB.drDirSt).AppendLine();
|
|
|
|
|
sb.AppendFormat("{0} blocks in directory.", MDB.drBlLen).AppendLine();
|
|
|
|
|
sb.AppendFormat("{0} volume allocation blocks.", MDB.drNmAlBlks).AppendLine();
|
|
|
|
|
sb.AppendFormat("Size of allocation blocks: {0}", MDB.drAlBlkSiz).AppendLine();
|
|
|
|
|
sb.AppendFormat("{0} bytes to allocate.", MDB.drClpSiz).AppendLine();
|
|
|
|
|
sb.AppendFormat("{0} first allocation block.", MDB.drAlBlSt).AppendLine();
|
|
|
|
|
sb.AppendFormat("Next unused file number: {0}", MDB.drNxtFNum).AppendLine();
|
|
|
|
|
sb.AppendFormat("{0} unused allocation blocks.", MDB.drFreeBks).AppendLine();
|
|
|
|
|
sb.AppendFormat("Volume name: {0}", MDB.drVN).AppendLine();
|
2016-04-19 02:11:47 +01:00
|
|
|
|
|
|
|
|
if(BB.signature == MFSBB_MAGIC)
|
2014-04-14 02:29:13 +00:00
|
|
|
{
|
|
|
|
|
sb.AppendLine("Volume is bootable.");
|
|
|
|
|
sb.AppendLine();
|
|
|
|
|
sb.AppendLine("Boot Block:");
|
2016-04-19 02:11:47 +01:00
|
|
|
if((BB.boot_flags & 0x40) == 0x40)
|
2014-04-14 02:29:13 +00:00
|
|
|
sb.AppendLine("Boot block should be executed.");
|
2016-04-19 02:11:47 +01:00
|
|
|
if((BB.boot_flags & 0x80) == 0x80)
|
2014-04-14 02:29:13 +00:00
|
|
|
{
|
|
|
|
|
sb.AppendLine("Boot block is in new unknown format.");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2016-04-19 02:11:47 +01:00
|
|
|
if(BB.sec_sv_pages > 0)
|
2014-04-14 02:29:13 +00:00
|
|
|
sb.AppendLine("Allocate secondary sound buffer at boot.");
|
2016-04-19 02:11:47 +01:00
|
|
|
else if(BB.sec_sv_pages < 0)
|
2014-04-14 02:29:13 +00:00
|
|
|
sb.AppendLine("Allocate secondary sound and video buffers at boot.");
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
sb.AppendFormat("System filename: {0}", BB.system_name).AppendLine();
|
|
|
|
|
sb.AppendFormat("Finder filename: {0}", BB.finder_name).AppendLine();
|
|
|
|
|
sb.AppendFormat("Debugger filename: {0}", BB.debug_name).AppendLine();
|
|
|
|
|
sb.AppendFormat("Disassembler filename: {0}", BB.disasm_name).AppendLine();
|
|
|
|
|
sb.AppendFormat("Startup screen filename: {0}", BB.stupscr_name).AppendLine();
|
|
|
|
|
sb.AppendFormat("First program to execute at boot: {0}", BB.bootup_name).AppendLine();
|
|
|
|
|
sb.AppendFormat("Clipboard filename: {0}", BB.clipbrd_name).AppendLine();
|
|
|
|
|
sb.AppendFormat("Maximum opened files: {0}", BB.max_files * 4).AppendLine();
|
|
|
|
|
sb.AppendFormat("Event queue size: {0}", BB.queue_size).AppendLine();
|
|
|
|
|
sb.AppendFormat("Heap size with 128KiB of RAM: {0} bytes", BB.heap_128k).AppendLine();
|
|
|
|
|
sb.AppendFormat("Heap size with 256KiB of RAM: {0} bytes", BB.heap_256k).AppendLine();
|
|
|
|
|
sb.AppendFormat("Heap size with 512KiB of RAM or more: {0} bytes", BB.heap_512k).AppendLine();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
sb.AppendLine("Volume is not bootable.");
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
information = sb.ToString();
|
2015-12-05 17:10:27 +00:00
|
|
|
|
|
|
|
|
xmlFSType = new Schemas.FileSystemType();
|
2016-04-19 02:11:47 +01:00
|
|
|
if(MDB.drLsBkUp > 0)
|
2015-12-06 05:09:31 +00:00
|
|
|
{
|
|
|
|
|
xmlFSType.BackupDate = DateHandlers.MacToDateTime(MDB.drLsBkUp);
|
|
|
|
|
xmlFSType.BackupDateSpecified = true;
|
|
|
|
|
}
|
2015-12-05 17:10:27 +00:00
|
|
|
xmlFSType.Bootable = BB.signature == MFSBB_MAGIC;
|
|
|
|
|
xmlFSType.Clusters = MDB.drNmAlBlks;
|
|
|
|
|
xmlFSType.ClusterSize = (int)MDB.drAlBlkSiz;
|
2016-04-19 02:11:47 +01:00
|
|
|
if(MDB.drCrDate > 0)
|
2015-12-06 05:09:31 +00:00
|
|
|
{
|
|
|
|
|
xmlFSType.CreationDate = DateHandlers.MacToDateTime(MDB.drCrDate);
|
|
|
|
|
xmlFSType.CreationDateSpecified = true;
|
|
|
|
|
}
|
2015-12-05 17:10:27 +00:00
|
|
|
xmlFSType.Files = MDB.drNmFls;
|
2015-12-06 05:09:31 +00:00
|
|
|
xmlFSType.FilesSpecified = true;
|
2015-12-05 17:10:27 +00:00
|
|
|
xmlFSType.FreeClusters = MDB.drFreeBks;
|
2015-12-06 05:09:31 +00:00
|
|
|
xmlFSType.FreeClustersSpecified = true;
|
2015-12-05 17:10:27 +00:00
|
|
|
xmlFSType.Type = "MFS";
|
|
|
|
|
xmlFSType.VolumeName = MDB.drVN;
|
2016-04-19 02:11:47 +01:00
|
|
|
|
2014-04-14 02:29:13 +00:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Master Directory Block, should be at offset 0x0400 bytes in volume
|
|
|
|
|
/// </summary>
|
|
|
|
|
struct MFS_MasterDirectoryBlock
|
2014-04-14 02:29:13 +00:00
|
|
|
{
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x000, Signature, 0xD2D7</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort drSigWord;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x002, Volume creation date</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public uint drCrDate;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x006, Volume last backup date</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public uint drLsBkUp;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x00A, Volume attributes</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort drAtrb;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x00C, Volume number of files</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort drNmFls;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x00E, First directory block</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort drDirSt;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x010, Length of directory in blocks</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort drBlLen;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x012, Volume allocation blocks</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort drNmAlBlks;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x014, Size of allocation blocks</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public uint drAlBlkSiz;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x018, Number of bytes to allocate</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public uint drClpSiz;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x01C, First allocation block in block map</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort drAlBlSt;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x01E. Next unused file number</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public uint drNxtFNum;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x022, Number of unused allocation blocks</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort drFreeBks;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x024, Length of volume name</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public byte drVNSiz;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x025, Characters of volume name</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public string drVN;
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Should be at offset 0x0000 in volume, followed by boot code
|
|
|
|
|
/// </summary>
|
|
|
|
|
struct MFS_BootBlock
|
2014-04-14 02:29:13 +00:00
|
|
|
{
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x000, Signature, 0x4C4B if bootable</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort signature;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x002, Branch</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public uint branch;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x006, Boot block flags</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public byte boot_flags;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x007, Boot block version</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public byte boot_version;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x008, Allocate secondary buffers</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public short sec_sv_pages;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x00A, System file name (16 bytes)</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public string system_name;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x01A, Finder file name (16 bytes)</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public string finder_name;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x02A, Debugger file name (16 bytes)</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public string debug_name;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x03A, Disassembler file name (16 bytes)</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public string disasm_name;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x04A, Startup screen file name (16 bytes)</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public string stupscr_name;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x05A, First program to execute on boot (16 bytes)</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public string bootup_name;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x06A, Clipboard file name (16 bytes)</summary>
|
2014-04-14 02:29:13 +00:00
|
|
|
public string clipbrd_name;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x07A, 1/4 of maximum opened at a time files</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort max_files;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x07C, Event queue size</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public ushort queue_size;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x07E, Heap size on a Mac with 128KiB of RAM</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public uint heap_128k;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x082, Heap size on a Mac with 256KiB of RAM</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public uint heap_256k;
|
2015-12-06 07:18:36 +00:00
|
|
|
/// <summary>0x086, Heap size on a Mac with 512KiB of RAM or more</summary>
|
2016-07-28 22:25:26 +01:00
|
|
|
public uint heap_512k;
|
2014-04-14 02:29:13 +00:00
|
|
|
}
|
2016-07-21 17:16:08 +01:00
|
|
|
|
|
|
|
|
public override Errno Mount()
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-22 00:43:22 +01:00
|
|
|
public override Errno Mount(bool debug)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-21 17:16:08 +01:00
|
|
|
public override Errno Unmount()
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Errno MapBlock(string path, long fileBlock, ref long deviceBlock)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Errno GetAttributes(string path, ref FileAttributes attributes)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Errno ListXAttr(string path, ref List<string> xattrs)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Errno GetXattr(string path, string xattr, ref byte[] buf)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Errno Read(string path, long offset, long size, ref byte[] buf)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Errno ReadDir(string path, ref List<string> contents)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Errno StatFs(ref FileSystemInfo stat)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Errno Stat(string path, ref FileEntryInfo stat)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Errno ReadLink(string path, ref string dest)
|
|
|
|
|
{
|
|
|
|
|
return Errno.NotImplemented;
|
|
|
|
|
}
|
2014-04-14 02:29:13 +00:00
|
|
|
}
|
2011-03-03 18:34:33 +00:00
|
|
|
}
|