Ignore:
Timestamp:
May 13, 2009, 3:54:04 PM (13 years ago)
Author:
charles
Message:

(trunk) #920: add "move data" to libT so all clients can use it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r8350 r8389  
    202202}
    203203
     204tr_bool
     205tr_preallocate_file( const char * filename, uint64_t length )
     206{
     207    return preallocateFileFull( filename, length );
     208}
     209
     210int
     211tr_open_file_for_writing( const char * filename )
     212{
     213    int flags = O_WRONLY | O_CREAT;
     214#ifdef O_BINARY
     215    flags |= O_BINARY;
     216#endif
     217#ifdef O_LARGEFILE
     218    flags |= O_LARGEFILE;
     219#endif
     220    return open( filename, flags, 0666 );
     221}
     222
    204223int
    205224tr_open_file_for_scanning( const char * filename )
Note: See TracChangeset for help on using the changeset viewer.