Updated PCI IDs to latest snapshot.
[tangerine.git] / rom / dos / ioerr.c
blobf891aadce5dc0fc01cb1876bed8761f4dab592cb
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <proto/dos.h>
16 AROS_LH0(LONG, IoErr,
18 /* SYNOPSIS */
20 /* LOCATION */
21 struct DosLibrary *, DOSBase, 22, Dos)
23 /* FUNCTION
24 Get the dos error code for the current process.
26 INPUTS
28 RESULT
29 Error code.
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 *****************************************************************************/
43 AROS_LIBFUNC_INIT
45 /* Get pointer to process structure */
46 struct Process *me=(struct Process *)FindTask(NULL);
48 /* Nothing spectacular */
49 return me->pr_Result2;
50 AROS_LIBFUNC_EXIT
51 } /* IoErr */