Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc

09.06.2013 Views

XENIX Programming Programming Commands get (continued) The z-file serves as a "lock-out" mechanism against simultaneous updates. Its contents are the binary (2 bytes) process ID of the command that created it, namely get. The z-file is created in the directory containing the SCCS file for the duration of get. The same protection restrictions that apply to the p-file apply to the z-file. The z-file is created in mode 0444. See Also admin, delta, help, prs sccsfile in "File Formats" in the XENIX 286 C Library Guide what in "Commands" in the XENIX 286 Reference Manual Diagnostics Use help for explanations. Notes If the effective user has explicit or implicit write permission in the directory containing the SCCS files, but the real user doesn't, then only one file may be named when the -e option is used. B-69

Programming Commands XENIX Programming gets - Gets _ a string from the standard input. Syntax gets [string] Description gets can be used with csh to read a string from the standard input. If string is given, it is used as a default value should an error occur. The resulting string (either string or the string as read from the standard input) is written to the standard output. If no default is given and an error occurs, gets exits with exit status 1. See Also csh line in "Commands" in the XENIX 286 Reference Manual B-70

Programming Commands <strong>XENIX</strong> Programming<br />

gets - Gets _ a string from the standard input.<br />

Syntax<br />

gets [string]<br />

Description<br />

gets can be used with csh to read a string from the standard input. If string is given, it<br />

is used as a default value should an error occur. The resulting string (either string or<br />

the string as read from the standard input) is written to the standard output. If no<br />

default is given and an error occurs, gets exits with exit status 1.<br />

See Also<br />

csh<br />

line in "Commands" in the <strong>XENIX</strong> <strong>2<strong>86</strong></strong> Reference Manual<br />

B-70

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

Saved successfully!

Ooh no, something went wrong!