* Cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34363 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-11-30 08:31:31 +00:00
parent a4faebeb11
commit c598298047
1 changed files with 8 additions and 18 deletions

View File

@ -1,35 +1,25 @@
/*
* Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
/*
* Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*/
#include <unistd.h>
#include <syscalls.h>
#include <errno.h>
#include <unistd.h>
#include <syscalls.h>
#include <syscall_utils.h>
int
dup(int fd)
{
int status = _kern_dup(fd);
if (status < 0) {
errno = status;
status = -1;
}
return status;
RETURN_AND_SET_ERRNO(_kern_dup(fd));
}
int
dup2(int oldFD, int newFD)
{
int status = _kern_dup2(oldFD, newFD);
if (status < 0) {
errno = status;
status = -1;
}
return status;
RETURN_AND_SET_ERRNO(_kern_dup2(oldFD, newFD));
}