git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
crtdll
/
io
/
dup.c
1
#include <windows.h>
2
#include <crtdll/io.h>
3
4
// fixme change type of mode argument to mode_t
5
6
int __fileno_alloc(HANDLE hFile, int mode);
7
int __fileno_getmode(int _fd);
8
9
int _dup( int handle )
10
{
11
return __fileno_alloc(_get_osfhandle(handle), __fileno_getmode(handle));
12
}