2 Copyright © 1995-2001, 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 *****************************************************************************/
47 AROS_LIBBASE_EXT_DECL(struct DosLibrary
*,DOSBase
)
49 /* Get pointer to process structure */
50 struct Process
*me
=(struct Process
*)FindTask(NULL
);
53 /* Nothing spectacular */
54 old
=me
->pr_CurrentDir
;
55 me
->pr_CurrentDir
=lock
;