2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 #include <aros/debug.h>
13 /*****************************************************************************
16 #include <proto/dos.h>
18 AROS_LH1(LONG
, SetIoErr
,
21 AROS_LHA(LONG
, result
, D1
),
24 struct DosLibrary
*, DOSBase
, 77, Dos
)
27 Sets to dos error code for the current process.
30 result -- new error code
45 *****************************************************************************/
48 AROS_LIBBASE_EXT_DECL(struct DosLibrary
*,DOSBase
)
53 /* Get pointer to process structure */
54 struct Process
*me
= (struct Process
*)FindTask(NULL
);
56 /* If this is not a Process, do nothing */
57 if (!__is_process(me
))
60 /* Nothing spectacular */
62 me
->pr_Result2
= result
;