Annotation of lucent/sys/man/3/dup, revision 1.1

1.1     ! root        1: .TH DUP 3 
        !             2: .SH NAME
        !             3: dup \- dups of open files
        !             4: .SH SYNOPSIS
        !             5: .nf
        !             6: .B bind #d /fd
        !             7: 
        !             8: .B /fd/0
        !             9: .B /fd/1
        !            10: \&...
        !            11: .fi
        !            12: .SH DESCRIPTION
        !            13: The
        !            14: .I dup
        !            15: device serves a one-level directory containing files whose
        !            16: names are decimal numbers.
        !            17: A file of name
        !            18: .I n
        !            19: corresponds to open file descriptor
        !            20: .I n
        !            21: in the current process.
        !            22: .PP
        !            23: An
        !            24: .IR open (2)
        !            25: of file
        !            26: .I n
        !            27: results in a file descriptor identical to
        !            28: what would be returned from a system call
        !            29: .IB dup ( n ", -1)."
        !            30: Note that the result is no longer a file in the
        !            31: .I dup
        !            32: device.
        !            33: .PP
        !            34: The
        !            35: .I stat
        !            36: operation returns information about the device file, not the open file it points to.
        !            37: A stat of
        !            38: .BI #d/ n
        !            39: will contain
        !            40: .I n
        !            41: for the name, 0 for the length, and 0400, 0200, or 0600
        !            42: for the mode, depending on whether the dup target is open
        !            43: for reading, writing, or both.
        !            44: .SH SEE ALSO
        !            45: .IR dup (2)
        !            46: .SH SOURCE
        !            47: .B /sys/src/9/port/devdup.c

unix.superglobalmegacorp.com

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