* syscalls.cc (dup): Use cygheap_fdnew properly.
This commit is contained in:
parent
09244c002e
commit
870f29b5c3
|
@ -1,3 +1,7 @@
|
||||||
|
2013-12-06 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
|
* syscalls.cc (dup): Use cygheap_fdnew properly.
|
||||||
|
|
||||||
2013-12-05 Christopher Faylor <me.cygwin2013@cgf.cx>
|
2013-12-05 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
* cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will
|
* cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will
|
||||||
|
|
|
@ -121,7 +121,7 @@ extern "C" int
|
||||||
dup (int fd)
|
dup (int fd)
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
int newfd = cygheap_fdnew ();
|
cygheap_fdnew newfd;
|
||||||
if (newfd < 0)
|
if (newfd < 0)
|
||||||
res = -1;
|
res = -1;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue