(C) 1998 AROS - The Amiga Research OS


NAME

ULONG Assign (name , physical , "physical" , )

LOCATION
In ArpBase at offset 56

SYNOPSIS
char * name
char * physical
Result = Assign("name:" "physical"
D0 ao a1

FUNCTION
This function performs the guts of an AmigaDOS "assign" function. The arguments are similar to the arguments of the ADOS program "Assign logicaldev: directory".

INPUTS
"name" -- Name to create a Devinfo assigned name for.

"physical" -- Name of file or directory to get a Lock from.

NOTE
if physical is NULL, remove existing name.

RESULT
A Devinfo entry is created for the requested name. Any prior assignment for that name is removed.

Result -- an error code return which may be one of:

ASSIGN_OK everything worked this time. ASSIGN_NODEV "physical" did not represent a valid directory. ASSIGN_FATAL Something is really rotten somewhere. ASSIGN_CANCEL Attempt to cancel something (like a volume) that can't be canceled.

EXAMPLE
SEE ALSO

NOTES

BUGS
None known.

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
28.03.1998 bergers
Some new functions.