aboutsummaryrefslogtreecommitdiffstats
path: root/guts/dup.c
blob: 13612b1c27c21defd73c414ef9c8dc0b5c606197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 
 * Copyright (c) 2008-2010 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * 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;
 * }
 */