2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Set the current filesystem handler for a process.
8 #include "dos_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH1(struct MsgPort
*, SetFileSysTask
,
20 AROS_LHA(struct MsgPort
*, task
, D1
),
23 struct DosLibrary
*, DOSBase
, 88, Dos
)
26 Set the default filesystem handler for the current process,
27 the old filesystem handler will be returned.
30 task - The new filesystem handler.
33 The old filesystem handler.
46 *****************************************************************************/
49 AROS_LIBBASE_EXT_DECL(struct DosLibrary
*,DOSBase
)
51 struct Process
*pr
= (struct Process
*)FindTask(NULL
);
54 old
= pr
->pr_FileSystemTask
;
55 pr
->pr_FileSystemTask
= MKBADDR(task
);
59 } /* SetFileSysTask */