зеркало из https://github.com/github/ruby.git
* win32/win32.c (rb_w32_open): need to seek to the end of the file when
O_APPEND is specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f019cd5b79
Коммит
746a09406e
|
@ -1,3 +1,8 @@
|
|||
Wed Oct 29 00:26:00 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_open): need to seek to the end of the file when
|
||||
O_APPEND is specified.
|
||||
|
||||
Wed Oct 29 00:08:05 2008 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* math.c (rb_math_{atan2,cos,cosh,hypot,log,sin,sinh,sqrt}): added.
|
||||
|
|
|
@ -4129,8 +4129,10 @@ rb_w32_open(const char *file, int oflag, ...)
|
|||
fd = -1;
|
||||
goto quit;
|
||||
}
|
||||
if (!(flags & (FDEV | FPIPE)) && (oflag & O_APPEND))
|
||||
if (!(flags & (FDEV | FPIPE)) && (oflag & O_APPEND)) {
|
||||
flags |= FAPPEND;
|
||||
SetFilePointer(h, 0, NULL, FILE_END);
|
||||
}
|
||||
|
||||
_set_osfhnd(fd, (long)h);
|
||||
_osfile(fd) = flags | FOPEN;
|
||||
|
|
Загрузка…
Ссылка в новой задаче