2 Copyright © 1995-2013, 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(SIPTR
, SetIoErr
,
21 AROS_LHA(SIPTR
, result
, D1
),
24 struct DosLibrary
*, DOSBase
, 77, Dos
)
27 Sets the dos error code for the current process.
30 result - new error code
45 *****************************************************************************/
52 /* Get pointer to process structure */
53 struct Process
*me
= (struct Process
*)FindTask(NULL
);
55 /* If this is not a Process, do nothing */
56 if (!__is_process(me
))
59 /* Nothing spectacular */
61 me
->pr_Result2
= result
;