2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH3(void, ReplyPkt
,
20 AROS_LHA(struct DosPacket
*, dp
, D1
),
21 AROS_LHA(LONG
, res1
, D2
),
22 AROS_LHA(LONG
, res2
, D3
),
25 struct DosLibrary
*, DOSBase
, 43, Dos
)
34 This function is mega-deprecated. Since all AROS drivers
35 use IORequests to perform operations the driver will most
36 probably not ever use or look at a packet. Also there might
37 not even be a packet at all except for if SendPkt was used.
47 *****************************************************************************/
51 struct Process
*me
= (struct Process
*)FindTask(NULL
);
53 /* What should we do with res1? This function is not called by any
54 AROS functions, so I think we don't have to care. */
55 ((struct IOFileSys
*)dp
->dp_Arg7
)->io_DosError
= res2
;
58 * Just to be correct I write the res1/2 also into the packet
63 dp
->dp_Port
= &me
->pr_MsgPort
;
64 ((struct IOFileSys
*)dp
->dp_Arg7
)->IOFS
.io_Message
.mn_ReplyPort
= &me
->pr_MsgPort
;
67 /* I just love this casting... */
68 ReplyMsg(&((struct IOFileSys
*)dp
->dp_Arg7
)->IOFS
.io_Message
);