revert between 56095 -> 55830 in arch
[AROS.git] / rom / dos / unloadseg.c
blobc79a279d203c4944089acb80d16a991015fcd91c
1 /*
2 Copyright © 1995-2013, 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.
50 NOTES
52 EXAMPLE
54 BUGS
56 SEE ALSO
57 LoadSeg()
59 INTERNALS
61 *****************************************************************************/
63 AROS_LIBFUNC_INIT
65 if (seglist)
67 return InternalUnLoadSeg(seglist, FreeFunc);
70 return FALSE;
72 AROS_LIBFUNC_EXIT
73 } /* UnLoadSeg */