1
1

Fixes trac:1419: got a patch from upstream to fix the "OS X doesn't

have/need lseek64" issue.  This fix is also included in MPICH2 after
v1.0.7.

This commit was SVN r19070.

The following Trac tickets were found above:
  Ticket 1419 --> https://svn.open-mpi.org/trac/ompi/ticket/1419
Этот коммит содержится в:
Jeff Squyres 2008-07-28 17:02:53 +00:00
родитель 96c6262abd
Коммит c93f1d8c5e

Просмотреть файл

@ -89,9 +89,9 @@ void ADIOI_NOLOCK_WriteStrided(ADIO_File fd, void *buf, int count,
/* seek to the right spot in the file */
if (file_ptr_type == ADIO_EXPLICIT_OFFSET) {
off = fd->disp + etype_size * offset;
lseek64(fd->fd_sys, off, SEEK_SET);
lseek(fd->fd_sys, off, SEEK_SET);
}
else off = lseek64(fd->fd_sys, fd->fp_ind, SEEK_SET);
else off = lseek(fd->fd_sys, fd->fp_ind, SEEK_SET);
/* loop through all the flattened pieces. combine into buffer until
* no more will fit, then write.