09.06.2013 Views

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

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

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPENDIX B<br />

PROG RAMMING COMMANDS<br />

This section describes the programming commands available in the <strong>XENIX</strong> <strong>2<strong>86</strong></strong> Extended<br />

System product.<br />

Syntax<br />

Unless otherwise noted, commands described in this section accept options and other<br />

arguments according to the following syntax:<br />

name<br />

option<br />

cmdarg<br />

name [option ] ... [ cmdarg] ...<br />

The file name or path name of an executable file.<br />

A single letter representing a command option. By convention, most options<br />

are preceded by a hyphen. Option letters can sometimes be grouped<br />

together, as in -abed. Alternatively they are specified individually, as in -a<br />

-b -c -d. The method of specifying options depends on the syntax of the<br />

command. Some options require argu ments. For example, the -f option for<br />

many commands often takes a following file name argument.<br />

A path name or other command argument not beginning with a hyphen. It<br />

may also be a hyphen alone by itself, indicating the standard input.<br />

Note: Not all commands adhere to the above syntax.<br />

See Also<br />

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

getopt in "System Functions" in the <strong>XENIX</strong> <strong>2<strong>86</strong></strong> C Library <strong>Guide</strong><br />

Diagnostics<br />

Upon termination, each command returns 2 bytes of status, one supplied by the system<br />

and giving the cause for termination, and (in the case of "normal" termination) one<br />

supplied by the program. (See wait and exit in "System Functions" in the <strong>XENIX</strong> <strong>2<strong>86</strong></strong> C<br />

Library <strong>Guide</strong>.) The byte supplied by the system is zero for normal termination; the<br />

byte supplied by the program is customarily zero to indicate successful execution and<br />

nonzero to indicate troubles such as erroneous parameters or bad or inaccessible data.<br />

It is called variously "exit code," "exit status," or "return code," and is described only<br />

where special conventions are involved.<br />

B- 1

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

Saved successfully!

Ooh no, something went wrong!