2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "dos_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH2(void, AbortPkt
,
20 AROS_LHA(struct MsgPort
*, port
, D1
),
21 AROS_LHA(struct DosPacket
*, pkt
, D2
),
24 struct DosLibrary
*, DOSBase
, 44, Dos
)
27 Tries to abort an asynchronous packet. There is no guarantee
28 that this succeeds. You must wait for the packet to return
29 before you can reuse or deallocate it.
32 port - the message port to where the packet was sent
33 pkt - the packet to be aborted
47 *****************************************************************************/
51 if (NULL
!= (struct IORequest
*)pkt
->dp_Arg7
) {
52 if (0 == AbortIO((struct IORequest
*)pkt
->dp_Arg7
))
54 #warning Still have to decide where to finally free the IORequest structure if this goes well
55 FreeMem((APTR
)pkt
->dp_Arg7
, sizeof(struct IOFileSys
));