02.07.2013 Views

A/UX® Programmer's Reference

A/UX® Programmer's Reference

A/UX® Programmer's Reference

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.

intro(2)<br />

stdin<br />

stdout<br />

stderr<br />

the standard input file<br />

the standard output file<br />

the standard error file<br />

intro(2)<br />

Output streams, with the exception of the standard error stream<br />

stderr, are, by default, buffered if the output refers to a file and<br />

line-buffered if the output refers to a terminal. The standard error<br />

output stream stderr is, by default, unbuffered. When an output<br />

stream is unbuffered, information is queued for writing on the<br />

destination file or terminal as soon as written; when it is buffered,<br />

many characters are saved up and written as a block. When an<br />

output stream is line-buffered, each line of output is queued for<br />

writing on the destination terminal as soon as the line is completed,<br />

that is, as soon as a newline character is written or terminal input<br />

is requested. The setbuf(3S) routines may be used to<br />

change the buffering strategy of the stream.<br />

Filename<br />

Names consisting of 1 to 14 characters may be used to name an<br />

ordinary file, special file, or directory.<br />

These characters may be selected from the set of all character<br />

values excluding \Q (null) and the ASCII code for / (slash).<br />

Note that it is generally unwise to use *, ?, [, or ] as part of<br />

filenames because of the special meaning attached to these characters<br />

by the shell (see sh(I». Although permitted, it is advisable to<br />

avoid the use of unprintable characters in filenames.<br />

Pathname and Path Prefix<br />

A pathname is a null-terminated character string starting with an<br />

optional slash (I), followed by zero or more directory names<br />

separated by slashes, then optionally followed by a filename.<br />

Unless specifically stated otherwise, the null path name is treated<br />

as if it named a nonexistent file.<br />

More precisely, a pathname is a null-terminated character string<br />

constructed as follows:<br />

::=kpath-prefix>l/<br />

: :=1 / <br />

::= / I /<br />

where is a string of 1 to 14 characters other than the ASCII<br />

slash and null, and is a string of 1 to 14 characters<br />

(other than the ASCII slash and null) that names a directory.<br />

February, 1990 13<br />

Revision C

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

Saved successfully!

Ooh no, something went wrong!