AmigaDOS

AmigaDOS

AmigaDOS provides the disk operating system portion of the AmigaOS. This includes file systems, file and directory manipulation, the command-line interface, file redirection and so on.

In AmigaOS 1.x, the AmigaDOS portion was based on a TRIPOS port by MetaComCo, written in BCPL. Because BCPL does not use native pointers, as do C and most other low-level programming languages and assembler programs, using more advanced functionality of the operating system was difficult and prone to errors. The third-party "AmigaDOS Resource Project" [http://uk.aminet.net/misc/antiq/ARP_13.readme] (ARP, formerly the "AmigaDOS Replacement Project" [ARP is referred to as the AmigaDOS Replacement Project in ARP version 1.1's arpbase.h, available from ftp://ftp.funet.fi/pub/amiga/ancient/ex-amiga-s/archive/] ), a project begun by Amiga developer Charlie Heath, replaced many of the BCPL utilities with smaller and often more sophisticated equivalents written in C and assembler, and provided a wrapper library, arp.library, which eliminated the interfacing problems in applications by automatically performing conversions from native pointers (such as those used by C or assembler) to BCPL equivalents and vice versa for all AmigaDOS functions.

From AmigaOS 2.x onwards, AmigaDOS was rewritten in C, retaining 1.x compatibility where possible.

Starting with AmigaOS 4.0, the DOS abandoned completely any legacy with BCPL, and starting from AmigaOS 4.1 it has been rewritten with full 64-bit support.

Console

The Amiga console is a standard Amiga virtual device and it is piloted by Console.Handler. It could be accessed as quite as any other device by invoking it with semicolons Con:.

The Amiga console evolved from a primitive interface present in 1.1, and became stable with OS 1.2 and 1.3 when it was introduced AmigaShell, driven by NewConsole.Handler. First Amiga console has various features that were up to date when it was created in 1985, like Command Template Help, redirection to null ("Nil:"), ANSI color terminal. The New Console Handler introduced the device Newcon: that allowed many more features, like for example Command History, pipelines, automatic creation of files when output was redirected, and its design was so advanced that when internet became popular, the console could also receive redirection from Amiga internet stacks as quite this redirection stream was a standard Amiga Device ("TCP:", example: "copy file to tcp:site"), etc.

Amiga console has had a standard character set since 1985. Differently from other system of its age, Amiga did not implemented a character set of its own; the developers wisely decided to implement an International Organization for Standardization ANSIISO compliant one. The Amiga character set is ISO-8895-1 (Latin 1), which includes the ASCII character set (first 128 characters), and it is also used in e-Mail and WWW standards.

Euro currency character

ISO-8859-1 standard does not support the Euro currency character ("€"), as it was created many years before the introduction of that currency. Modern Amiga character sets includes that character by remapping the keyboard.

Modern Amiga systems like AmigaOS and MorphOS are about to introduce UNICODE as character set, but legacy programs are incapable of supporting it.

MorphOS supports UNICODE internally and uses various charsets to maintain retro-compatibility with ancient Amiga programs.

Line feed

As in Unix systems, the Amiga console accepts only Linefeed ("LF") as an end-of-line ("EOL") character.

Amiga console has support for accented characters as well as for charcters created by combinations of "dead keys" on the keyboard.

yntax of AmigaDOS commands

This is an example of typical AmigaDOS command syntax:

::

Output is:

::

Example shown copies a file named myfile FROM Floppy Disk TO Hard Disk directory called mydata. Syntax of Amiga commands is often structured by its creators to being close enough to human language.

Command Break and pausing console output

AmigaDOS can terminate a program and breaking it by invoking keypress|Ctrl+keypress|C combination of keys.

Pressing keypress|space on the keyboard suspends the Console Output, and it can be resumed by pressing the keypress|backspace key.

Wildcard characters

Like other operating systems AmigaDOS also provides wildcard characters, that are substitutes for any character, or any sequence of random characters in a string.

Here follows an example of wildcard characters in AmigaDOS commands:

::

If The protection bit "S" that means "Script" is set on, then Amiga is capable to recognize and run automatically the script by simply invoking its name.

Protection bits

Protection bits are flag bits that could be set into any program, or data file. Amiga supports this set of protection bits (HSPARWED):

*H = Hide (hides the file from the directory. However this flag has no effect in Amiga)
*S = Script (Batch file)
*P = Pure (indicates reentrant commands that can be made resident in RAM and then requiring no more to be loaded any time from disks, hard-disks or any other media device)
*A = Archive (Archive bit)
*R = Read (Permission to Read the file)
*W = write (Permission to Write the file)
*E = Edit (Permission to Edit the file)
*D = Delete (Permission to Delete the file)

Local and global variables

As any other DOS, Amiga could deal with variables as used in batch programming. Global Variables are stored in ENV: (environment) device, phisically localized in System:Prefs/env-archive, and it has also local environment variables, that worked like the Unix version. [http://www.safalra.com/programming/amigados/universal-register-machine/] AmigaOS command to create an environment variable is SetENV.

Usage:

::

Case sensitivity

AmigaOS is case insensitive. Filenames like MyProg, myprog, MYPROG and MyPrOg are considered the same, and so the directory, volumes and device names. Indicating a device as Dh0:, DH0: or dh0: refers always to the same partition.

Conventions of names of devices

Partitions and physical drives are typically referred to as DF0: (floppy drive 0), DH0: (Device hard disk 0 or HD0: hard drive 0), etc. However, unlike many operating systems, outside of built-in phisical hardware devices like DF0: or HD0: the name of the single floppy disks, or the volumes or partition own names are totally arbitrary; for example a hard disk partition could be named HARDDISK or A, or MyDisk or any other name when it was partitioned. Volume names then will be recognized as have the same format as device names, so a disk partition on device DH0: called Workbench could be accessed either with the name DH0: or Workbench: (Note that once the name of the volume was set up, then the system adds automatically semicolon character to the name of the partition to indicate it is considered as a device as for example when showing a list of active devices. On the desktop, the name of the device appears right under device icon and without the semicolon. Users must indicate to the system that "Workbench" is a device "Workbench:" by always typing the semicolons ":" when they are entering informations in a requester form or into AmigaShell command based interface windows. This is mandatory.). If the partition is the same that started the boot sequence, it could also be accessed as Sys:. So there could various ways to indicate and access the partition that made the boot. In addition, virtual volume names could be set with the "assign" command to any directory or device; for example programs often assigned a virtual volume name to their installation directory; an example might be a fictionary worprocessor called FooBarWriter assigning FooBar: to DH0:Productivity/FooBarWriter. This allows for easy relocation of installed programs.

Conventions of names and typical behaviour of virtual devices

The phisical device DF0: share the same floppy drive mechanics with PC0: that is the CrossDOS virtual device capable to read PC formatted floppy disks. When any PC formatted floppy disk is inserted into the floppy drive, then the Df0: floppy Amiga icon will change to indicate that the disk is unknown for normal Amiga device, and it will show four question marks '????' as standard "unknown" volume name, while the PC0: icon will appear revealing the name of the PC formatted disk. Any disk change with Amiga formatted disks will invert this behaviour.

Filesystems

The AmigaOS supports various filesystems and variants.

First filesystem was simply called Amiga FileSystem, and was suitable mainly for floppy disks, because it does not support autoboot from Hard disks. it was soon replaced by FastFileSystem, and hence the original filesystem was de facto recognized with the name of "Old" FileSystem.

The new FastFileSystem was soon expanded to recognize cached partitions, international partitions allowing accented characters in file and partition names, and finally longnames in files, upto 108 characters.

Since AmigaOS 4.0 is available a new version of FastFileSystem called FastFileSystem2 which can expand its features and capabilities with the aid of plug-ins. Amiga also supports two filesystems from third-party manufacturers called Professional FileSystem that is a filesystem with an easy structure, based on metadata, allowing high internal coherence, capable to defragment itself on the fly, and do not requires to be unmounted before being mounted again; and Smart FileSystem that is a very interesting journaling filesystem which performs journaled activities during system inactivities, and has been chosen by MorphOS as standard filesystem.

The AmigaOS version of Smart FileSystem is a fork of the original SFS adopted by MorphOS, and is not compatible 100% with it.

Other filesystems like FAT16, FAT32 from Windows or ext2 from Linux are available through system libraries or third-party modules or even into Aminet freeware software repository.

AmigaOS 4.1 adopted a new filesystem called JXFS capable to support partitions over a Terabyte of size.

Official variants of Amiga filesystems

Old File System / Fast File System

*OFS (DOS0)
*FFS (DOS1)
*OFS International (DOS2)
*FFS International (DOS3)
*OFS Directory Caching (DOS4)
*FFS Directory Caching (DOS5)

Fast File System 2 (AmigaOS4.0)

*OFS Long filenames (DOS6)
*FFS Long filenames (DOS7)

FastFileSystem2 plug-ins

With the first update of AmigaOS 4.0 in 2007, the first two plugins for FFS2 were released:

*fs_plugin_cache: increments performances of FFS2 by introducing a new method of data buffering.
*fs_plugin_encrypt: data encryption plugin for partitions using Blowfish algorythm.

Filename extensions

Amiga has only one obliged filename extension for filenames and that is ".info" which is appended as a suffix to filenames of icons. If a filename called myprog exists, then myprog.info is the file containing icons, its position on the desktop (AmigaOS is capable to "snapshot" icons in places defined by the user), program metadata such as options and keywords, and other informations about the file.

There is no mandatory issue in Amiga to indicate programs and projects (datafiles) with extensions. Any user can rename files with any suffix if he likes to, or if there is the need to rename files for a matter of precision. Amiga will recognize an executable by using the first sequence of bytes in the binary header of file (magic cookie number), and it will recognize the datafiles by the icons, or by its information again contained in headers. A list of files like "data1", "data2", "data3", etc, will be considered the same even if it has been renamed "data1.lbm, "data2.jpg", "data3.lbm".

Amiga will open the correct software for any kind of file depending from the info contained in its icon, or by using Datatypes.

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • AmigaDOS — est la partie du système d exploitation de l Amiga qui gère le système de fichiers et la ligne de commande. Sommaire 1 Syntaxe de la ligne de commande 1.1 Redirection 1.2 Modèle de commande …   Wikipédia en Français

  • AmigaDOS — AmigaOS Basisdaten Entwickler Commodore International (1.0 3.1) Haage Partner (3.5 3.9) …   Deutsch Wikipedia

  • AmigaOS — Infobox OS name = AmigaOS logo = caption = A screenshot of AmigaOS 4.0 family = Amiga OS developer = Commodore International (1.0 3.1) Haage Partner (3.5 3.9) Hyperion Entertainment (4.0) source model = Closed source working state = Current… …   Wikipedia

  • AmigaOS — Basisdaten Entwickler Commodore International (1.0 3.1) Haage &am …   Deutsch Wikipedia

  • Amiga OS — AmigaOS Basisdaten Entwickler Commodore International (1.0 3.1) Haage Partner (3.5 3.9) …   Deutsch Wikipedia

  • DOS — Dieser Artikel behandelt Betriebssysteme. Weitere Bedeutungen der Abkürzung DOS findet man unter Dos. Als Disk Operating System [dɪsk ˈɒpəɹeɪtɪŋ ˈsɪstəm] (kurz DOS) werden kleine und einfache Betriebssysteme für Computer bezeichnet, deren… …   Deutsch Wikipedia

  • Disk Operating System — Als Disk Operating System (englisch Aussprache [dɪsk ˈɒpəɹeɪtɪŋ ˈsɪstəm]; kurz DOS) werden Betriebssysteme für Computer bezeichnet, deren Hauptaufgabe die Verwaltung von magnetisch gespeicherten Informationen auf sich drehenden (Disk)… …   Deutsch Wikipedia

  • Disk operating system — Dieser Artikel behandelt Betriebssysteme. Weitere Bedeutungen der Abkürzung DOS findet man unter Dos. Als Disk Operating System [dɪsk ˈɒpəɹeɪtɪŋ ˈsɪstəm] (kurz DOS) werden kleine und einfache Betriebssysteme für Computer bezeichnet, deren… …   Deutsch Wikipedia

  • OS4 — AmigaOS Basisdaten Entwickler Commodore International (1.0 3.1) Haage Partner (3.5 3.9) …   Deutsch Wikipedia

  • TRIPOS — This article is about TRIPOS, the operating system. For the name given to undergraduate degree subjects by Cambridge University, see Tripos. TRIPOS Company / developer University of Cambridge, University of Bath, MetaComCo, Open G I… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”