2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
11 #include "dos_intern.h"
13 /*****************************************************************************
16 #include <dos/dosextens.h>
17 #include <proto/dos.h>
19 AROS_LH2(void, AbortPkt
,
22 AROS_LHA(struct MsgPort
*, port
, D1
),
23 AROS_LHA(struct DosPacket
*, pkt
, D2
),
26 struct DosLibrary
*, DOSBase
, 44, Dos
)
29 Tries to abort an asynchronous packet. There is no guarantee
30 that this succeeds. You must wait for the packet to return
31 before you can reuse or deallocate it.
34 port - the message port to where the packet was sent
35 pkt - the packet to be aborted
49 *****************************************************************************/
53 #ifndef AROS_DOS_PACKETS
54 if (NULL
!= (struct IORequest
*)pkt
->dp_Arg7
)
56 if (0 == AbortIO((struct IORequest
*)pkt
->dp_Arg7
))
58 /* TODO: Still have to decide where to finally free the
59 * IORequest structure if this goes well
61 FreeMem((APTR
)pkt
->dp_Arg7
, sizeof(struct IOFileSys
));
66 /* TODO: implement this for real packets (is it possible ar all) ? */