(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/dos.h>

struct Device * DeviceProc (name)

LOCATION
In DOSBase at offset 29

SYNOPSIS
STRPTR name

FUNCTION
DeviceProc() is an obsolete function that returns the Process responsible for a DOS device. It has been updated to return a new filesystem device.

DeviceProc() will fail if you ask for the Process of a device created with AssignPath() as there is no process to return. If the device requested is an assign, the IoErr() will contain the Lock to the directory (the function will return the device on which the lock is set).

INPUTS
name
The name of the DOS device, without the ':'.

RESULT
Either a pointer to the Device structure, or NULL.

EXAMPLE

SEE ALSO
GetDeviceProc(), FreeDeviceProc().

NOTES
You should really use GetDeviceProc() as this function caters for all possible device types.

BUGS
Does not support late- and non-bound assigns, or multiple path assigns very well.

INTERNALS

HISTORY
06.02.1999 iaint
Might remove the compilation errors this time.
06.02.1999 iaint
A few dos.library functions, not tested.
23.10.1998 hkiel
Changes for use with aros_print_not_implemented() macro
20.10.1998 hkiel
Amiga Research OS
31.08.1998 hkiel
Added #warning for functions which are TODO
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column