git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update for HEAD-2003021201
[reactos.git]
/
lib
/
msvcrt
/
io
/
fileleni.c
diff --git a/lib/msvcrt/io/fileleni.c
b/lib/msvcrt/io/fileleni.c
new file mode 100644
(file)
index 0000000..
9c2d406
--- /dev/null
+++ b/
lib/msvcrt/io/fileleni.c
@@ -0,0
+1,11
@@
+#include <windows.h>
+#include <msvcrt/io.h>
+
+
+__int64 _filelengthi64(int _fd)
+{
+ long lo_length, hi_length;
+
+ lo_length = GetFileSize(_get_osfhandle(_fd), &hi_length);
+ return((((__int64)hi_length) << 32) + lo_length);
+}