Added useful custom dimensions to some top-level drawers that lacked them.
[AROS.git] / rom / dos / ioerr.c
blob9dcb042d685e32e54242cebbb0d6b65b959e4936
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <aros/debug.h>
10 #include <proto/exec.h>
11 #include "dos_intern.h"
13 /*****************************************************************************
15 NAME */
16 #include <proto/dos.h>
18 AROS_LH0(SIPTR, IoErr,
20 /* SYNOPSIS */
22 /* LOCATION */
23 struct DosLibrary *, DOSBase, 22, Dos)
25 /* FUNCTION
26 Get the dos error code for the current process.
28 INPUTS
30 RESULT
31 Error code.
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
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;
54 AROS_LIBFUNC_EXIT
55 } /* IoErr */