24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ENTER [OPCODE 077]<br />

22.42 ENTER [OPCODE 077]<br />

FUNCTION<br />

Specifies an output file to create, supersede, or update a file.<br />

FILOP. to perform an ENTER for an extended I/O channel.<br />

Use<br />

CALLING SEQUENCE<br />

The ENTER monitor call has two types of argument lists: one using a<br />

four-word argument list and one using an extended argument list. The<br />

extended argument list offers many additional options for ENTERing a<br />

file. For complete information about the argument lists, refer to<br />

Section 11.13.<br />

The calling sequence for the ENTER UUO is:<br />

ENTER channo,addr<br />

error return<br />

skip return<br />

In the call sequence, the program supplies<br />

address of the argument list. Refer<br />

information about the argument list.<br />

SKIP RETURN<br />

the addr,<br />

to Section<br />

which is the<br />

11.13 for more<br />

When you use the short form of the argument block, the monitor returns<br />

a four-word argument block at addr.<br />

Refer to Section 11.13.1 for information about the argument block that<br />

is returned.<br />

When you use the extended argument list, the monitor returns the<br />

information that is listed on Section 11.13.2.<br />

ERROR RETURN<br />

On an error return from ENTER, the monitor returns an error code in<br />

either of the following:<br />

o For the short-form argument block, the error code is stored<br />

in the right half of addr+l of the 4-word argument block<br />

o For the extended-form argument block,<br />

returned in the right half of addr+3.<br />

the error code<br />

",<br />

is<br />

It is possible to LOOKUP/RENAME a file after using an ENTER to specify<br />

the argument list, referring to the same "argument list with subsequent<br />

calls. Note, however, that on an error return from the ENTER, the<br />

error code overwrites the high-order three bits of the creation date<br />

and the entire access date. Because most programs recover from these<br />

errors by either aborting or by reinitializing the entire argument<br />

block, this overwriting of data normally does not cause any problems.<br />

However, a program may attempt to recover from an error by fixing only<br />

the incorrect portion of the argument block and then reexecuting the<br />

monitor call. These programs should always initialize the contents of<br />

these locations before reexecuting the ENTER monitor call.<br />

Error codes are restricted to a maximum of 15 bits to eliminate<br />

problems when recovering from an error in a file with a zero creation<br />

date. The error codes are described in Section 11.14.<br />

22-122

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!