mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
taking out the PWRITE calls too
This commit is contained in:
parent
31fe6a549f
commit
65df9d5127
1 changed files with 0 additions and 4 deletions
|
@ -294,12 +294,8 @@ PS_WRITE_FUNC(files)
|
|||
if (vallen < (int)data->st_size)
|
||||
ftruncate(data->fd, 0);
|
||||
|
||||
#ifdef HAVE_PWRITE
|
||||
n = pwrite(data->fd, val, vallen, 0);
|
||||
#else
|
||||
lseek(data->fd, 0, SEEK_SET);
|
||||
n = write(data->fd, val, vallen);
|
||||
#endif
|
||||
|
||||
if (n != vallen) {
|
||||
php_error(E_WARNING, "write failed: %s (%d)", strerror(errno), errno);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue