RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_ChangeRedirection

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_ChangeRedirection

OS_ChangeRedirection

(SWI &5E)
Entry
R1 New file handle for input
0 = not redirected
-1 = read
R1 New file handle for output
0 = not redirected
-1 = read
Exit
R0 Old file handle for input (or 0 for standard input)
R1 Old file handle for output (or 0 for standard output)

Use

The purpose of this call is to read or write the file handles used by OS_CLI to redirect input/output.

Notes

This call is mainly provided for the use of the TaskManager, but you may also find the call useful.

Calling OS_Exit automatically removes any redirection (and closes the associated file handles) before control passes to the exit handler.

See also

  • OS_CLI
  • OS_Exit
Revised on November 26, 2010 12:28:31 by Trevor Johnson (329)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: OS SWI Calls

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys