Added some more svn properties
[AROS.git] / rom / misc / freemiscresource.c
blobba2855aa85435ff23a1911443794ef5201844af8
1 /*
2 Copyright © 1998-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: AllocMiscResource() function.
6 Lang: english
7 */
8 #include <resources/misc.h>
9 #include <proto/exec.h>
10 #include "misc_intern.h"
12 /*****************************************************************************
14 NAME */
16 AROS_LH1(VOID , FreeMiscResource,
17 AROS_LHA(ULONG, unitNum, D0),
18 /* SYNOPSIS */
20 /* LOCATION */
21 APTR, MiscBase, 2, Misc)
23 /* FUNCTION
25 Frees one of the miscellaneous resources.
27 INPUTS
29 unitNum -- The resource to free.
31 RESULT
33 NOTES
35 You must have allocated the resource to free it!
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 AllocMiscResource()
45 INTERNALS
47 HISTORY
49 23.7.98 SDuvan implemented
51 *****************************************************************************/
53 AROS_LIBFUNC_INIT
55 ObtainSemaphore(&GPB(MiscBase)->mb_Lock);
57 GPB(MiscBase)->mb_owners[unitNum] = NULL;
59 ReleaseSemaphore(&GPB(MiscBase)->mb_Lock);
61 AROS_LIBFUNC_EXIT
62 } /* FreeMiscResource */