2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
11 #include <aros/asmcall.h>
12 #include "dos_intern.h"
14 AROS_UFP2(void, vfp_hook
,
15 AROS_UFPA(UBYTE
, chr
, D0
),
16 AROS_UFPA(struct vfp
*, vfp
, A3
)
19 /*****************************************************************************
22 #include <proto/dos.h>
24 AROS_LH2(LONG
, VPrintf
,
27 AROS_LHA(CONST_STRPTR
, format
, D1
),
28 AROS_LHA(IPTR
*, argarray
, D2
),
31 struct DosLibrary
*, DOSBase
, 159, Dos
)
49 *****************************************************************************/
52 AROS_LIBBASE_EXT_DECL(struct DosLibrary
*,DOSBase
)
55 BPTR file
= ((struct Process
*)FindTask(NULL
))->pr_COS
;
59 vfp
.DOSBase
= DOSBase
;
61 (void)RawDoFmt(format
, argarray
,
62 (VOID_FUNC
)AROS_ASMSYMNAME(vfp_hook
), &vfp
);
64 /* Remove the last character (which is a NUL character) */
69 ((struct FileHandle *)BADDR(file))->fh_Pos--;