add another arch specific function for IRQ handling.
[AROS.git] / compiler / alib / selecterroroutput.c
bloba0518b940073419833bc1a8e7329e9fcbd5f9fad
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <proto/exec.h>
10 /*****************************************************************************
12 NAME */
13 #include <proto/dos.h>
15 BPTR SelectErrorOutput(
17 /* SYNOPSIS */
18 BPTR fh)
20 /* FUNCTION
21 Sets the current error stream returned by ErrorOutput() to a new
22 value. Returns the old error stream.
24 INPUTS
25 fh - New error stream.
27 RESULT
28 Old error stream handle.
30 NOTES
31 This function is source-compatible with AmigaOS v4.
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 *****************************************************************************/
43 BPTR old;
44 /* Get pointer to process structure */
45 struct Process *me = (struct Process *)FindTask(NULL);
47 /* Nothing spectacular */
48 old = me->pr_CES;
49 me->pr_CES = fh;
51 return old;