DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Terminal device control

Opening a terminal device file

When a terminal-device-file is opened, it normally causes the process to wait until a connection is established. In practice, application-programs seldom open such files; instead, at system-initialization time special-programs open terminal-device-files as the ``standard input'', ``standard output'' and ``standard error'' files (see Intro(S)).

Opening a terminal-device-file with the flag O_NONBLOCK clear on the open system call causes the process to block until the terminal-device is ready and available (see open(S)). The flag CLOCAL can also affect the open system call (see ``Control modes'' in termio(M)).


Next topic: Input processing and reading data
Previous topic: Terminal device control character array

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005