rom/mmakefile.src: Add missing pci module, and kernel/pci include generation
[AROS.git] / rom / dos / unloadseg.c
blob98798908f1aa4bc94063a439e02e01848a3334fd
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
9 #include <proto/exec.h>
10 #include <dos/dos.h>
11 #include <exec/types.h>
12 #include "dos_intern.h"
14 static AROS_UFH3(void, FreeFunc,
15 AROS_UFHA(APTR, buffer, A1),
16 AROS_UFHA(ULONG, length, D0),
17 AROS_UFHA(struct ExecBase *, SysBase, A6)
20 AROS_USERFUNC_INIT
22 FreeMem(buffer, length);
24 AROS_USERFUNC_EXIT
27 /*****************************************************************************
29 NAME */
30 #include <proto/dos.h>
32 AROS_LH1(BOOL, UnLoadSeg,
34 /* SYNOPSIS */
35 AROS_LHA(BPTR, seglist, D1),
37 /* LOCATION */
38 struct DosLibrary *, DOSBase, 26, Dos)
40 /* FUNCTION
41 Free a segment list allocated with LoadSeg().
43 INPUTS
44 seglist - The segment list.
46 RESULT
47 success = returns whether everything went ok. Returns FALSE if
48 seglist was NULL.
49 NOTES
51 EXAMPLE
53 BUGS
55 SEE ALSO
56 LoadSeg()
58 INTERNALS
60 *****************************************************************************/
62 AROS_LIBFUNC_INIT
64 if (seglist)
66 return InternalUnLoadSeg(seglist, FreeFunc);
69 return FALSE;
71 AROS_LIBFUNC_EXIT
72 } /* UnLoadSeg */