OS4 DepotLogo by DBAlex 
(anonymous IP: 3.139.67.228,2258) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (602)
   o Document (24)
   o Driver (97)
   o Emulation (149)
   o Game (1011)
   o Graphics (500)
   o Library (118)
   o Network (234)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4399

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


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 2006
Author: Matthew Dillon, Fredrik Wikström (OS4 modifications)
Submitter: Fredrik Wikström
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
Videos: 0
Downloads: 513  (Current version)
513  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos 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 20104.1329¤ Dostutorials - Some DOS library function tutorials
Copyright © 2004-2024 by Björn Hagström All Rights Reserved