aboutsummaryrefslogtreecommitdiffstats
path: root/guts/dup.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/dup.c')
-rw-r--r--guts/dup.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/guts/dup.c b/guts/dup.c
new file mode 100644
index 0000000..941a5d9
--- /dev/null
+++ b/guts/dup.c
@@ -0,0 +1,16 @@
+/*
+ * static int
+ * wrap_dup(int fd) {
+ * int rc = -1;
+ */
+ int save_errno;
+
+ rc = real_dup(fd);
+ save_errno = errno;
+ pseudo_debug(2, "dup: %d->%d\n", fd, rc);
+ pseudo_client_op(OP_DUP, 0, fd, rc, 0, 0);
+
+ errno = save_errno;
+/* return rc;
+ * }
+ */