2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
14 #include <proto/dos.h>
16 AROS_LH1(BPTR
, CurrentDir
,
19 AROS_LHA(BPTR
, lock
, D1
),
22 struct DosLibrary
*, DOSBase
, 21, Dos
)
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.
29 lock - Lock for the new current directory.
32 Old current directory.
44 *****************************************************************************/
48 /* Get pointer to process structure */
49 struct Process
*me
=(struct Process
*)FindTask(NULL
);
52 /* Nothing spectacular */
53 old
=me
->pr_CurrentDir
;
54 me
->pr_CurrentDir
=lock
;