2 Copyright © 1995-2007, 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 *****************************************************************************/
50 struct Process
*pr
= (struct Process
*)FindTask(NULL
);
53 old
= pr
->pr_FileSystemTask
;
54 pr
->pr_FileSystemTask
= MKBADDR(task
);
58 } /* SetFileSysTask */