Alexandre Julliard
b43fd31287
msvcrt: Rename a few functions to avoid conflicts with Windows headers.
2008-04-29 20:18:19 +02:00
Erik de Castro Lopo
60501aa93e
msvcrt: Clear end-of-file flag on fseek.
2008-04-09 11:43:35 +02:00
Andrew Talbot
32d7a9e668
msvcrt: Assign to structs instead of using memcpy.
2008-03-07 11:01:07 +01:00
James Hawkins
eedfacdfe7
janitorial: Remove links to any microsoft site.
2008-03-01 12:04:03 +01:00
Dan Kegel
316869b273
msvcrt: Fix EOF behavior on read from pipe or console.
...
The canonical way to detect EOF on read is when you request more than
zero bytes, but zero bytes come back. Switching to this method seems
to handle a few problem cases better. Also handle ERROR_BROKEN_PIPE
properly just in case.
2008-02-12 22:35:20 +01:00
Andrew Talbot
edaa0fbc13
msvcrt: Remove unneeded cast.
2007-12-24 13:30:20 +01:00
Dan Kegel
56eb6f6730
msvcrt: Fix ^Z handling in text mode.
2007-10-09 11:39:57 +02:00
Dan Kegel
4cd3a16f18
msvcrt: Improve CR CR LF handling.
2007-10-05 10:33:27 +02:00
Hans Leidekker
1efae756c3
msvcrt: Implement _wspawnv{, e, p, pe}.
2007-09-24 14:38:53 +02:00
Tijl Coosemans
6bbd3cacb8
msvcrt: Resolve symbols clashes with FreeBSD libc.
2007-09-19 15:01:33 +02:00
Michael Stefaniuc
d7d40b7dd3
msvcrt: Remove superfluous casts of void pointers to other pointer types.
2007-07-04 12:06:58 +02:00
Michael Stefaniuc
ec4936a6a3
msvcrt: Do not use wide character constants.
2007-06-25 11:43:58 +02:00
Francois Gouget
cf218621fd
msvcrt: When operating on a closed pipe, read() should return 0, not -1.
...
Add tests to make sure read() and fread() work right on closed pipes.
2007-05-22 12:01:35 +02:00
Andrew Talbot
9069577cd0
msvcrt: Exclude unused headers.
2007-05-15 12:19:12 +02:00
Jan Zerebecki
3b32ae2a54
msvcrt: Add DebugInfo to critical sections.
2007-03-12 13:38:22 +01:00
Damjan Jovanovic
2705d78876
msvcrt: Fix fstat's handling of pipes and char devices.
...
For pipes/char devices, st_dev and st_rdev should be the fd, st_nlink
is always 1, and st_mode is S_IFIFO and S_IFCHR respectively.
Added tests to prove the new behaviour right.
2007-02-16 13:13:37 +01:00
Damjan Jovanovic
7ecc283bd9
msvcrt: Implemented stat64, wstat64 and fstat64.
...
Change all other variations of stat use the stat64 family, since it is
the most general.
2007-02-14 12:31:14 +01:00
Alexandre Julliard
2851b31f4c
msvcrt: Implement fopen/wfopen on top of fsopen/wfsopen instead of the other way around.
2007-02-07 13:25:29 +01:00
Eric Pouech
8333cf88d8
msvcrt: Fix the internal flag computation for _open_osfhandle.
2007-01-23 13:05:52 +01:00
Francois Gouget
aab5e5856e
Don't put single quotes around '%s' when using the debugstr_*() functions.
2007-01-18 12:55:50 +01:00
Andrew Talbot
55f25b712d
msvcrt: Cast-qual warnings fix.
2006-11-06 15:39:55 +01:00
Louis. Lenders
32ffc7cb8a
msvcrt: Add stub for _setmaxstdio + tiny test.
2006-10-31 11:46:20 +01:00
Duane Clark
b4c1c67ea4
msvcrt: Fix fread on large buffers in ascii mode.
2006-10-27 12:30:24 +02:00
Louis. Lenders
a5e6c89dcf
msvcrt: Add stub for _getmaxstdio.
2006-10-18 12:35:40 +02:00
Markus Amsler
9ae995f674
msvcrt: Fix fread eof handling.
2006-10-13 11:20:40 +02:00
Markus Amsler
fdd61a7a35
msvcrt: fread: Fill buffer on small reads.
2006-10-13 11:20:35 +02:00
Michael Stefaniuc
6520ee04c8
msvcrt: Win64 printf format warning fixes.
2006-10-04 09:58:47 +02:00
Duane Clark
9a71b483d3
msvcrt: fgetc needs to use unsigned parameters.
...
Spotted by and adapted from test written by Tobias Ringström.
2006-09-26 11:41:25 +02:00
Andrew Talbot
c5df5717e9
msvcrt: Cast-qual warnings fix.
2006-09-20 12:23:32 +02:00
Duane Clark
4d3952f3dc
msvcrt: In text mode a ctrl-z signals EOF.
...
Spotted by David Hagood with test suggested by Dan Kegel.
2006-08-09 17:33:23 +02:00
Michael Stefaniuc
243a3e4107
msvcrt: Remove redundant NULL checks before MSVCRT_free.
2006-08-09 11:21:07 +02:00
Duane Clark
bc194793a7
msvcrt: Fix fgetwc/s in binary mode.
2006-07-31 21:44:17 +02:00
Duane Clark
5c4b18a931
msvcrt: Remove read_i loop and fix fread.
2006-07-31 21:43:01 +02:00
Duane Clark
88aeeb9fd8
msvcrt: Fix _getw.
2006-07-31 11:15:21 +02:00
Duane Clark
b44ea8084d
msvcrt: Fix fread.
2006-07-31 11:15:21 +02:00
Duane Clark
b37b967add
msvcrt: Fix _read and fgetc.
2006-07-31 11:15:21 +02:00
Alexandre Julliard
24beabfd4e
msvcrt: Explicitly specify CDECL calling convention on exported functions.
2006-06-13 11:40:23 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
qingdoa daoo
4f7adfb04a
msvcrt: Don't duplicate handle in _get_osfhandle.
2006-05-08 17:40:09 +02:00
Eric Pouech
819565be21
msvcrt: IO init.
...
Make sure, when copying handles from std ones (when no io info is
inherited from parent) to create inheritable handles (spotted by
qingdao daoo).
2006-04-11 12:38:23 +02:00
Alexandre Julliard
19a088202a
msvcrt: Fix fflush() of files opened for read.
...
Some apps, for no particular reason, call fflush() on files opened for
read. This keeps them from tripping over their shoelaces.
2006-03-27 11:30:50 +02:00
Peter Beutner
72017cc9ab
msvcrt: Correctly set EOF flag in fread().
...
Setting the EOF flag only if _read() returns zero is not enough as we
could also read something AND hit the end of file.
_read() already sets another internal EOF flag, so just use this too.
Removing todo_wine from the test case.
2006-02-17 17:38:03 +01:00
Peter Beutner
58d3f14514
msvcrt: Fix use of uninitialized variable.
2006-02-17 17:37:14 +01:00
Uwe Bonnes
b53ed5866d
msvcrt: In _mktemp sixth generated charater always starts with 'a'.
2006-02-10 15:52:47 +01:00
Alexandre Julliard
a17b2c1cd2
msvcrt: Use the msvcrt version of printf everywhere.
2006-01-24 12:21:58 +01:00
Sasha Slijepcevic
736cd60340
msvcrt: In _tempnam, if TMP is set, it has a precedence over the
...
parameter dir.
2006-01-18 14:22:27 +01:00
Saulius Krasuckas
5a10c37dba
Fix _fcloseall() return value.
...
Improve some trace messages.
Add tests for fopen(), fclose(), _fcloseall().
Stricten some checks of _unlink().
2005-11-16 11:47:51 +00:00
Vitaliy Margolen
a6a5fb7a70
Fix initial position for files opened with O_APPEND flag.
2005-10-07 15:01:15 +00:00
Francois Gouget
c63b85b866
Make it clear the empty body sections are not accidental.
2005-09-26 09:54:47 +00:00
Mike McCormack
6dc69f5f54
Fix gcc 4.0 warnings.
2005-09-02 12:26:21 +00:00