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-2003091401
[reactos.git]
/
lib
/
msvcrt
/
io
/
lseeki64.c
diff --git
a/lib/msvcrt/io/lseeki64.c
b/lib/msvcrt/io/lseeki64.c
index
71b8e76
..
83c45e7
100644
(file)
--- a/
lib/msvcrt/io/lseeki64.c
+++ b/
lib/msvcrt/io/lseeki64.c
@@
-5,6
+5,9
@@
//#define SETFILEPOINTEREX_AVAILABLE
//#define SETFILEPOINTEREX_AVAILABLE
+/*
+ * @implemented
+ */
__int64 _lseeki64(int _fildes, __int64 _offset, int _whence)
{
#ifdef SETFILEPOINTEREX_AVAILABLE
__int64 _lseeki64(int _fildes, __int64 _offset, int _whence)
{
#ifdef SETFILEPOINTEREX_AVAILABLE
@@
-13,12
+16,12
@@
__int64 _lseeki64(int _fildes, __int64 _offset, int _whence)
offset.QuadPart = _offset;
// if (invalid_filehnd(_fildes)) {
offset.QuadPart = _offset;
// if (invalid_filehnd(_fildes)) {
-//
errno = EBADF
;
+//
__set_errno ( EBADF )
;
// return -1L;
// }
if (SetFilePointerEx((HANDLE)filehnd(_fildes), offset, &new_pos, _whence)) {
} else {
// return -1L;
// }
if (SetFilePointerEx((HANDLE)filehnd(_fildes), offset, &new_pos, _whence)) {
} else {
- //
errno = EINVAL
;
+ //
__set_errno ( EINVAL )
;
return -1L;
}
return new_pos.QuadPart;
return -1L;
}
return new_pos.QuadPart;