Added kernel module for starting the usb stack at boot time. It's not activated thoug...
[cake.git] / rom / dos / setfilesystask.c
blob463ef5a564abf78563ee6376bac70c507e6ef104
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 BPTR old;
53 old = pr->pr_FileSystemTask;
54 pr->pr_FileSystemTask = MKBADDR(task);
55 return BADDR(old);
57 AROS_LIBFUNC_EXIT
58 } /* SetFileSysTask */