mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 20:39:33 +08:00
* syscalls.cc (_write): Allow zero length as per SUSv2.
This commit is contained in:
parent
b83587946b
commit
65814395b6
@ -1,3 +1,7 @@
|
||||
2001-11-13 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* syscalls.cc (_write): Allow zero length as per SUSv2.
|
||||
|
||||
2001-11-13 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* dir.cc (mkdir): Add HIDDEN file attribute if file has leading dot
|
||||
|
@ -355,6 +355,9 @@ _read (int fd, void *ptr, size_t len)
|
||||
extern "C" ssize_t
|
||||
_write (int fd, const void *ptr, size_t len)
|
||||
{
|
||||
if (len == 0)
|
||||
return 0;
|
||||
|
||||
if (__check_invalid_read_ptr_errno (ptr, len))
|
||||
return -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user