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
/
stdio
/
fsopen.c
diff --git
a/lib/msvcrt/stdio/fsopen.c
b/lib/msvcrt/stdio/fsopen.c
index
0b36507
..
7d7268f
100644
(file)
--- a/
lib/msvcrt/stdio/fsopen.c
+++ b/
lib/msvcrt/stdio/fsopen.c
@@
-1,7
+1,7
@@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
- * FILE: lib/
crtdll/conio/kbhit
.c
+ * FILE: lib/
msvcrt/stdio/fsopen
.c
* PURPOSE: Checks for keyboard hits
* PROGRAMER: Boudewijn Dekker
* UPDATE HISTORY:
* PURPOSE: Checks for keyboard hits
* PROGRAMER: Boudewijn Dekker
* UPDATE HISTORY:
@@
-20,6
+20,9
@@
FILE * __alloc_file(void);
FILE * __alloc_file(void);
+/*
+ * @implemented
+ */
FILE* _fsopen(const char *file, const char *mode, int shflag)
{
FILE *f;
FILE* _fsopen(const char *file, const char *mode, int shflag)
{
FILE *f;
@@
-79,7
+82,7
@@
FILE* _fsopen(const char *file, const char *mode, int shflag)
if (fd < 0)
return NULL;
if (fd < 0)
return NULL;
-// ms
crtdll
ensures that writes will end up at the end of file in append mode
+// ms
vcrt
ensures that writes will end up at the end of file in append mode
// we just move the file pointer to the end of file initially
if (*mode == 'a')
lseek(fd, 0, SEEK_END);
// we just move the file pointer to the end of file initially
if (*mode == 'a')
lseek(fd, 0, SEEK_END);
@@
-98,6
+101,9
@@
FILE* _fsopen(const char *file, const char *mode, int shflag)
return f;
}
return f;
}
+/*
+ * @implemented
+ */
FILE* _wfsopen(const wchar_t *file, const wchar_t *mode, int shflag)
{
FILE *f;
FILE* _wfsopen(const wchar_t *file, const wchar_t *mode, int shflag)
{
FILE *f;
@@
-157,7
+163,7
@@
FILE* _wfsopen(const wchar_t *file, const wchar_t *mode, int shflag)
if (fd < 0)
return NULL;
if (fd < 0)
return NULL;
-// ms
crtdll
ensures that writes will end up at the end of file in append mode
+// ms
vcrt
ensures that writes will end up at the end of file in append mode
// we just move the file pointer to the end of file initially
if (*mode == L'a')
lseek(fd, 0, SEEK_END);
// we just move the file pointer to the end of file initially
if (*mode == L'a')
lseek(fd, 0, SEEK_END);