| 23 |
Suite 330, Boston, MA 02111-1307 USA |
Suite 330, Boston, MA 02111-1307 USA |
| 24 |
*/ |
*/ |
| 25 |
|
|
|
#define _FILE_OFFSET_BITS 64 |
|
| 26 |
#include "axel.h" |
#include "axel.h" |
| 27 |
|
|
| 28 |
/* Axel */ |
/* Axel */ |
| 194 |
/* And check whether the filesystem can handle seeks to |
/* And check whether the filesystem can handle seeks to |
| 195 |
past-EOF areas.. Speeds things up. :) AFAIK this |
past-EOF areas.. Speeds things up. :) AFAIK this |
| 196 |
should just not happen: */ |
should just not happen: */ |
| 197 |
if( lseek64( axel->outfd, axel->size, SEEK_SET ) == -1 && axel->conf->num_connections > 1 ) |
if( lseek( axel->outfd, axel->size, SEEK_SET ) == -1 && axel->conf->num_connections > 1 ) |
| 198 |
{ |
{ |
| 199 |
/* But if the OS/fs does not allow to seek behind |
/* But if the OS/fs does not allow to seek behind |
| 200 |
EOF, we have to fill the file with zeroes before |
EOF, we have to fill the file with zeroes before |