2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
10 #include <proto/exec.h>
11 #include "dos_intern.h"
13 /*****************************************************************************
16 #include <proto/dos.h>
18 AROS_LH0(SIPTR
, IoErr
,
23 struct DosLibrary
*, DOSBase
, 22, Dos
)
26 Get the dos error code for the current process.
43 *****************************************************************************/
47 /* Get pointer to process structure */
48 struct Process
*me
=(struct Process
*)FindTask(NULL
);
50 ASSERT_VALID_PROCESS(me
);
52 /* Nothing spectacular */
53 return me
->pr_Result2
;