some fixes to accented characters
[tangerine.git] / rom / dos / currentdir.c
blobf8bb62c2178269574c930f176237b4f916a047f5
1 /*
2 Copyright © 1995-2007, 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
48 /* Get pointer to process structure */
49 struct Process *me=(struct Process *)FindTask(NULL);
50 BPTR old;
52 /* Nothing spectacular */
53 old=me->pr_CurrentDir;
54 me->pr_CurrentDir=lock;
55 return old;
56 AROS_LIBFUNC_EXIT
57 } /* CurrentDir */