Add czech.ct locale for WiMP (tools)
[AROS.git] / rom / dos / setioerr.c
blobd7f7fc0dab54f1f34e22fb2c82caab6ec1855166
1 /*
2 Copyright © 1995-2013, 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 #include <aros/debug.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/dos.h>
18 AROS_LH1(SIPTR, SetIoErr,
20 /* SYNOPSIS */
21 AROS_LHA(SIPTR, result, D1),
23 /* LOCATION */
24 struct DosLibrary *, DOSBase, 77, Dos)
26 /* FUNCTION
27 Sets the dos error code for the current process.
29 INPUTS
30 result - new error code
32 RESULT
33 Old error code.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 /* old contents */
50 SIPTR old;
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))
57 return 0;
59 /* Nothing spectacular */
60 old = me->pr_Result2;
61 me->pr_Result2 = result;
63 return old;
65 AROS_LIBFUNC_EXIT
66 } /* SetIoErr */