From dbaa240832c159e395e8b3104ecdb551c8f96b5d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 14 Nov 2012 00:08:18 -0500 Subject: libc/sysdeps: add dup3 syscall wrapper Some projects (like udev) are starting to use this. Signed-off-by: Mike Frysinger --- libc/sysdeps/linux/common/dup3.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libc/sysdeps/linux/common/dup3.c (limited to 'libc/sysdeps/linux/common/dup3.c') diff --git a/libc/sysdeps/linux/common/dup3.c b/libc/sysdeps/linux/common/dup3.c new file mode 100644 index 000000000..539c0716c --- /dev/null +++ b/libc/sysdeps/linux/common/dup3.c @@ -0,0 +1,13 @@ +/* vi: set sw=4 ts=4: */ +/* + * dup2() for uClibc + * + * Copyright (C) 2000-2006 Erik Andersen + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include +#include + +_syscall3(int, dup3, int, oldfd, int, newfd, int, flags) -- cgit v1.2.3