OS4 DepotLogo by Alkaron 
(anonymous IP: 50.16.132.180) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Sobjs site
   Crashlog site
   Bugs site
 
 Categories

   o Audio (311)
   o Datatype (46)
   o Demo (166)
   o Development (467)
      o Cross (37)
      o Debug (8)
      o Edit (3)
      o Example (31)
      o Game (19)
      o Guitool (5)
      o Ide (3)
      o Install (0)
      o Language (30)
      o Library (236)
      o Misc (24)
      o Utility (71)
      o Webtool (0)
   o Document (18)
   o Driver (78)
   o Emulation (126)
   o Game (723)
   o Graphics (387)
   o Library (58)
   o Network (161)
   o Office (43)
   o Utility (625)
   o Video (48)

Total files: 3257

Full index file. Download
Recent index file. Download




 Links

  Amigans.net
  OpenAmiga
  Aminet
  UtilityBase
  IntuitionBase
  AmigaBounty


Support the site


 Readme for:  Development » Example » dos-handler.lha

Description: DOS filesystem example code (simple "RAM disk:")
Download: dos-handler.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 34kb
Version: 0.5
Date: 29 Nov 06
Author: Matthew Dillon, Fredrik Wikstrom (OS4 modifications)
Submitter: Fredrik Wikstrom
Email: fredrik/a500 org
Homepage: http://a500.org
Category: development/example
Replaces: development/example/dosdev.lzx
License: Public domain
Distribute: yes
Min OS Version: 4.0
FileID: 2356
 
Comments: 0  [View]
Snapshots: 0  [View]
Downloads: 211  (Current version)
211  (Accumulated)

Show content Show crashlogs Replace file 
This is an OS4 port of the "DOS DEVICE DRIVER EXAMPLE FOR AZTEC C" by Matthew
Dillon (http://aminet.net/package.php?package=dev/src/DosDev.lha). OS4
modifications and port by Fredrik Wikstrom (fredrik at a500 dot org).

It's a handler/filesystem for a simple dynamic sized "RAM Disk:". There are a
few issues with it (listed below), but is probably still useful as example
source though..

Issues:
 - DSIs when more than one program tries to access the same file (?)
 - Multiview complains about "not enough data" when opening a text file
 - Icon->Information on the disk shows bad data
 - Volume name shows up correctly with "C:info" in the "volumes available" and
in ASL requster but not in shell prompt or icon->info. Shows up correctly in
Workbench after being renamed but not before

When compiled with -DDEBUG the handler prints out debug output (packets
received, etc.) using exec's DebugPrintF. SashimiPPC can be used to capture this
output.

Compiling the handler:

1. make

To enable debug output remove the '#' before -DDEBUG in the Makefile.

Mounting the device:

1. mount test: from mountlist

This mounts a disk with:
Device name: "TEST:"
Volume name: "TEST Disk:"

Changes:
0.5 (29-Nov-06)
 - renamed handler to dos-handler to avoid confusion, since it's a handler, not
a device
 - handler now compiled without debug output (it's much faster now)
0.4 (22-Jun-06)
 - modified code to make use of MakeDosEntry()/FreeDosEntry
 - added ACTION_RENAME_DISK support (not fully working for some reason)
0.3 (19-Jun-06)
 - added version string
 - added support for ACTION_FH_FROM_LOCK packet
0.2 (16-Jun-06)
 - added support for ACTION_EXAMINE_FH packet
 - fixed handling of ACTION_PARENT packet
0.1 (15-Jun-06)
 - first released version


File Version Size Date OS Readme
dostutorials.lha1159kb07 Nov 104.1¤ Some DOS library function tutorials
Copyright (c) 2004-2013 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment