2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: Set the current filesystem handler for a process.
8 #include <aros/debug.h>
10 #include "dos_intern.h"
11 #include <proto/exec.h>
13 /*****************************************************************************
16 #include <dos/dosextens.h>
17 #include <proto/dos.h>
19 AROS_LH1(struct MsgPort
*, SetFileSysTask
,
22 AROS_LHA(struct MsgPort
*, task
, D1
),
25 struct DosLibrary
*, DOSBase
, 88, Dos
)
28 Set the default filesystem handler for the current process,
29 the old filesystem handler will be returned.
32 task - The new filesystem handler.
35 The old filesystem handler.
48 *****************************************************************************/
52 struct Process
*pr
= (struct Process
*)FindTask(NULL
);
55 ASSERT_VALID_PROCESS(pr
);
57 old
= pr
->pr_FileSystemTask
;
58 pr
->pr_FileSystemTask
= task
;
62 } /* SetFileSysTask */