New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / dos / setfilesystask.c
blob4d00a999577dfceef8f751ff7072c0c30d84ce0f
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Set the current filesystem handler for a process.
6 Lang: english
7 */
8 #include "dos_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH1(struct MsgPort *, SetFileSysTask,
19 /* SYNOPSIS */
20 AROS_LHA(struct MsgPort *, task, D1),
22 /* LOCATION */
23 struct DosLibrary *, DOSBase, 88, Dos)
25 /* FUNCTION
26 Set the default filesystem handler for the current process,
27 the old filesystem handler will be returned.
29 INPUTS
30 task - The new filesystem handler.
32 RESULT
33 The old filesystem handler.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 GetFileSysTask()
44 INTERNALS
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
49 AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
51 struct Process *pr = (struct Process *)FindTask(NULL);
52 BPTR old;
54 old = pr->pr_FileSystemTask;
55 pr->pr_FileSystemTask = MKBADDR(task);
56 return BADDR(old);
58 AROS_LIBFUNC_EXIT
59 } /* SetFileSysTask */