Added kernel module for starting the usb stack at boot time. It's not activated thoug...
[cake.git] / rom / dos / getprogramdir.c
blobcfd75b4f9e4c76e977d4c3f8f5180068239bded9
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: GetProgramDir() - Get the lock for PROGDIR:
6 Lang: english
7 */
8 #include "dos_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <proto/dos.h>
16 AROS_LH0(BPTR, GetProgramDir,
18 /* SYNOPSIS */
19 /* void */
21 /* LOCATION */
22 struct DosLibrary *, DOSBase, 100, Dos)
24 /* FUNCTION
25 This function will return the shared lock on the directory that
26 the current process was loaded from. You can use this to help
27 you find data files which were supplied with your program.
29 A NULL return is possible, which means that you may be running
30 from the Resident list.
32 You should NOT under any circumstance UnLock() this lock.
34 INPUTS
36 RESULT
37 A shared lock on the directory the program was started from.
39 NOTES
41 EXAMPLE
43 BUGS
45 SEE ALSO
47 INTERNALS
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
53 return ((struct Process *)FindTask(NULL))->pr_HomeDir;
55 AROS_LIBFUNC_EXIT
56 } /* GetProgramDir */