Annotation of coherent/a/usr/man/MULTI/dup2, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: dup2()                 COHERENT System Call                dup2()
                      4: 
                      5: 
                      6: 
                      7: 
                      8: Duplicate a file descriptor
                      9: 
                     10: iinntt dduupp22(_f_d, _n_e_w_f_d) iinntt _f_d, _n_e_w_f_d;
                     11: 
                     12: dup2 duplicates  the file descriptor fd.   Unlike its cousin dup,
                     13: dup2 allows  you to specify  a new file  descriptor newfd, rather
                     14: than having the system select one.  If newfd is already open, the
                     15: system  closes it  before  assigning it  to the  new file.   dup2
                     16: returns the duplicate descriptor.
                     17: 
                     18: ***** See Also *****
                     19: 
                     20: COHERENT system calls, dup(), STDIO
                     21: 
                     22: ***** Diagnostics *****
                     23: 
                     24: dup2 returns  a number less than zero when  an error occurs, such
                     25: as a bad file descriptor or no file descriptor available.
                     26: 
                     27: 
                     28: 
                     29: 
                     30: 
                     31: 
                     32: 
                     33: 
                     34: 
                     35: 
                     36: 
                     37: 
                     38: 
                     39: 
                     40: 
                     41: 
                     42: 
                     43: 
                     44: 
                     45: 
                     46: 
                     47: 
                     48: 
                     49: 
                     50: 
                     51: 
                     52: 
                     53: 
                     54: 
                     55: 
                     56: 
                     57: 
                     58: 
                     59: 
                     60: 
                     61: 
                     62: 
                     63: 
                     64: COHERENT Lexicon                                           Page 1
                     65: 
                     66: 

unix.superglobalmegacorp.com

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