some fixes to accented characters
[tangerine.git] / rom / dos / setioerr.c
blob06541b6caeb31afc6495079f3680659e6aee99cd
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 #include <aros/debug.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/dos.h>
18 AROS_LH1(LONG, SetIoErr,
20 /* SYNOPSIS */
21 AROS_LHA(LONG, 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 LONG 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 */