Map menu key to right amiga to allow clipboard operations on keyboards without right...
[AROS.git] / rom / dos / replypkt.c
blob525386c84bdc489ac60c31dd1c51459f840c003d
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH3(void, ReplyPkt,
19 /* SYNOPSIS */
20 AROS_LHA(struct DosPacket *, dp, D1),
21 AROS_LHA(LONG , res1, D2),
22 AROS_LHA(LONG , res2, D3),
24 /* LOCATION */
25 struct DosLibrary *, DOSBase, 43, Dos)
27 /* FUNCTION
29 INPUTS
31 RESULT
33 NOTES
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.
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
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
60 dp->dp_Res1 = res1;
61 dp->dp_Res2 = res2;
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);
70 AROS_LIBFUNC_EXIT
71 } /* ReplyPkt */