Support rastport clipping rectangle for layerless rastports
[tangerine.git] / rom / dos / currentdir.c
blob26591f2c0223cd29866ddb5573fee2a6a3d5af28
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <proto/dos.h>
16 AROS_LH1(BPTR, CurrentDir,
18 /* SYNOPSIS */
19 AROS_LHA(BPTR, lock, D1),
21 /* LOCATION */
22 struct DosLibrary *, DOSBase, 21, Dos)
24 /* FUNCTION
25 Sets a new directory as the current directory. Returns the old one.
26 0 is valid in both cases and represents the boot filesystem.
28 INPUTS
29 lock - Lock for the new current directory.
31 RESULT
32 Old current directory.
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
47 AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
49 /* Get pointer to process structure */
50 struct Process *me=(struct Process *)FindTask(NULL);
51 BPTR old;
53 /* Nothing spectacular */
54 old=me->pr_CurrentDir;
55 me->pr_CurrentDir=lock;
56 return old;
57 AROS_LIBFUNC_EXIT
58 } /* CurrentDir */