File:  [MW Coherent from dump] / coherent / a / usr / man / MULTI / dup
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



dup()                  COHERENT System Call                 dup()




Duplicate a file descriptor

iinntt dduupp(_f_d) iinntt _f_d;

dup duplicates  the existing file descriptor  fd, and returns the
new descriptor.  The returned value is the smallest file descrip-
tor that is not already in use by the calling process.

***** See Also *****

COHERENT system calls, dup2(), fopen(), fdopen(), STDIO

***** Diagnostics *****

dup returns a number less than zero when an error occurs, such as
a bad file descriptor or no file descriptor available.








































COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.