chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
@@@ wip type definitions in manpage synopses
[mLib]
/
sys
/
mdup.3
diff --git
a/sys/mdup.3
b/sys/mdup.3
index 9ce3b85f600ae896130df9bf5d910549d8219a2c..1e1b8365e7d265e9a7e4e25c9ffd8e81427117e1 100644
(file)
--- a/
sys/mdup.3
+++ b/
sys/mdup.3
@@
-26,6
+26,11
@@
mdup \- renumber file descriptors
.nf
.B "#include <mLib/mdup.h>"
.nf
.B "#include <mLib/mdup.h>"
+.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
.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
.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
.I v
represents a file. The slot's
.B cur