OS4 DepotLogo by DaveyD 
(anonymous IP: 54.211.68.132,83) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 
 Categories

   o Audio (322)
   o Datatype (47)
   o Demo (176)
   o Development (487)
      o Cross (35)
      o Debug (8)
      o Edit (5)
      o Example (31)
      o Game (19)
      o Guitool (5)
      o Ide (6)
      o Install (0)
      o Language (34)
      o Library (243)
      o Misc (26)
      o Utility (75)
      o Webtool (0)
   o Document (19)
   o Driver (82)
   o Emulation (131)
   o Game (786)
   o Graphics (422)
   o Library (74)
   o Network (185)
   o Office (50)
   o Utility (735)
   o Video (56)

Total files: 3572

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

Dos-handler

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
Snapshots: 0
Downloads: 230  (Current version)
230  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

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 Dls Readme
dostutorials.lha1159kb07 Nov 104.178¤ Dostutorials - Some DOS library function tutorials
Copyright (c) 2004-2014 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment