Support rastport clipping rectangle for layerless rastports
[tangerine.git] / rom / dos / abortpkt.c
blob88d0bf400e3a36e98d038110b059e8e20524b717
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "dos_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH2(void, AbortPkt,
19 /* SYNOPSIS */
20 AROS_LHA(struct MsgPort *, port, D1),
21 AROS_LHA(struct DosPacket *, pkt, D2),
23 /* LOCATION */
24 struct DosLibrary *, DOSBase, 44, Dos)
26 /* FUNCTION
28 INPUTS
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 *****************************************************************************/
44 AROS_LIBFUNC_INIT
45 AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
47 if (NULL != (struct IORequest *)pkt->dp_Arg7) {
48 if (0 == AbortIO((struct IORequest*)pkt->dp_Arg7))
50 #warning Still have to decide where to finally free the IORequest structure if this goes well
51 FreeMem((APTR)pkt->dp_Arg7, sizeof(struct IOFileSys));
52 pkt->dp_Arg7 = NULL;
55 AROS_LIBFUNC_EXIT
56 } /* AbortPkt */