Fixed missing fprintf argument.
[AROS.git] / rom / dos / replypkt.c
blob741d35a4cdf3758ef970405f8341778fe976fe20
1 /*
2 Copyright © 1995-2001, 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
50 AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
52 struct Process *me = (struct Process *)FindTask(NULL);
54 /* What should we do with res1? This function is not called by any
55 AROS functions, so I think we don't have to care. */
56 ((struct IOFileSys *)dp->dp_Arg7)->io_DosError = res2;
59 * Just to be correct I write the res1/2 also into the packet
61 dp->dp_Res1 = res1;
62 dp->dp_Res2 = res2;
64 dp->dp_Port = &me->pr_MsgPort;
65 ((struct IOFileSys *)dp->dp_Arg7)->IOFS.io_Message.mn_ReplyPort = &me->pr_MsgPort;
68 /* I just love this casting... */
69 ReplyMsg(&((struct IOFileSys *)dp->dp_Arg7)->IOFS.io_Message);
71 AROS_LIBFUNC_EXIT
72 } /* ReplyPkt */