X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/8128dcdfa57d0a792c4e221aae5b4886eaef72d0..31d0247cc58abc0b0720aa7e9972011c5a66995c:/sys/mdup.3 diff --git a/sys/mdup.3 b/sys/mdup.3 index 9ce3b85..1e1b836 100644 --- a/sys/mdup.3 +++ b/sys/mdup.3 @@ -26,6 +26,11 @@ mdup \- renumber file descriptors .nf .B "#include " +.B "typedef struct {" +.B "\h'4'int cur;" +.B "\h'4n'int want;" +.B "} mdup_fd;" + .BI "int mdup(mdup_fd *" v ", size_t " n ");" .fi .SH DESCRIPTION @@ -41,16 +46,7 @@ to a vector of .B mdup_fd structures, and the length .I n -of this vector, in elements. The -.B mdup_fd -structure is defined as -.VS -typedef struct mdup_fd { - int cur; - int want; -} mdup_fd; -.VE -Each `slot' (element) in the vector +of this vector, in elements. Each `slot' (element) in the vector .I v represents a file. The slot's .B cur