Build fix.
[AROS.git] / rom / dos / setfilesystask.c
blob6182dd02f42cc3c523f67cbd348231686e1609f4
1 /*
2 Copyright © 1995-2007, 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
50 struct Process *pr = (struct Process *)FindTask(NULL);
51 APTR old;
53 old = pr->pr_FileSystemTask;
54 pr->pr_FileSystemTask = task;
55 return old;
57 AROS_LIBFUNC_EXIT
58 } /* SetFileSysTask */