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.

RENAME [OPCOOE 055]<br />

RESTRICTION<br />

If your program attempts to change the extension of an SFO, a<br />

protection error results. An error also results if your program<br />

attempts to alter the name, extension, or PPN associated with a UFO or<br />

the PPN associated with an ersatz device name.<br />

SKIP RETURN<br />

On a skip return, the monitor returns the same information on a RENAME<br />

as on a LOOKUP and ENTER. Refer to Section 11.13.<br />

ERROR RETURN<br />

The error return is taken under the following conditions:<br />

o<br />

o<br />

o<br />

No file has been opened on the specified channel.<br />

The specified file cannot be found.<br />

The specified file is currently in the process of being<br />

written, superseded, or renamed.<br />

o Your program does not have the appropriate privileges to<br />

RENAME the file.<br />

o The new file name already exists (occurs when changing file<br />

names) .<br />

The monitor returns the error code for the RENAME monitor<br />

right half of addr+1 of the 4-word argument block, or<br />

half of addr+3 in the extended argument block. The<br />

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

entire access date.<br />

call in the<br />

in the right<br />

error code<br />

date and the<br />

This overwriting of data does not cause any problems for programs that<br />

recover from RENAME errors by aborting or by re-initializing the<br />

argument list. However, programs that attempt to recover from an<br />

error by fixing only the incorrect portion of the argument block and<br />

then reexecuting the monitor call should restore the right half of<br />

addr+1 or addr+3 before reexecuting the RENAME monitor call. Error<br />

codes are restricted to a maximum of 15 bits to allow programs to<br />

recover from an error in a file with a zero creation date. See<br />

Section 11.14 for a list of error codes.<br />

22-350

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

Saved successfully!

Ooh no, something went wrong!