3 dup \- dups of open files
17 device serves a one-level directory containing files whose
18 names are decimal numbers.
19 Each such file also has an associated control file.
22 corresponds to open file descriptor
24 in the current process.
30 results in a file descriptor identical to
31 what would be returned from a system call
34 Note that the result is no longer a file in the
40 operation returns information about the device file, not the open file it points to.
45 for the name, 0 for the length, and 0400, 0200, or 0600
46 for the mode, depending on whether the dup target is open
47 for reading, writing, or both.
51 may be read to discover the properties of the associated file descriptor, in format identical to that of the
58 .B /sys/src/9/port/devdup.c