~ubuntu-branches/ubuntu/maverick/transmission/maverick-updates

« back to all changes in this revision

Viewing changes to libtransmission/fdlimit.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson, Krzysztof Klimonda, Chris Coulson
  • Date: 2009-09-09 09:06:11 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20090909090611-09ai2hyo66h1dhv8
Tags: 1.74-0ubuntu1
[ Krzysztof Klimonda ]
* Merge from debian unstable, remaining changes:
  - debian/control:
    + Added replaces & provides clutch (now included as part of transmission).
    + add liblaunchpad-integration to Build-Depends
  - debian/rules:
    + Create a PO template during package build.
  - debian/patches/01_lpi.patch:
    + Integrate Transmission with Launchpad
  - debian/patches/20_add_X-Ubuntu-Gettext-Domain.diff:
    + Add X-Ubuntu-Gettext-Domain to .desktop file.
* debian/control:
  - add lsb-release to Build-Depends
* This includes the QT client in transmission-qt.

[ Chris Coulson ]
* Update to new upstream version 1.74 (LP: #418367):
  - Better data recovery in the case of an OS or Transmission crash
  - If a data file is moved, stop the torrent instead of redownloading 
    it (LP: #419304).
  - Fix bug that didn't list some peers in the resume file and in PEX
  - More helpful torrent error messages
  - DHT now honors the bind-address-ipv4 configuration option
  - Fix Debian build error with miniupnpc
  - Fix Cygwin build error with strtold
  - Update to a newer snapshot of miniupnpc
  - Fix crash that occurred when adding torrents on some desktops
  - Synchronize the statusbar's and torrent list's speeds
  - Fix the Properties dialog's "Origin" field for multiple torrents
* debian/rules, debian/control:
  - Don't run autoreconf at build time and don't build-dep on libtool.
* debian/control:
  - transmission-common replaces transmission-gtk (<< 1.74) rather than
    (<= 1.73-1).
* Refreshed patches:
  - 01_lpi.patch.
  - dont_build_libevent.patch.
  - qt_client_use_system_libevent.patch.
* Dropped patches not needed anymore:
  - updateminiupnpcstrings_double_escape_slash.patch
* Added 99_autoreconf.patch for autotools update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: fdlimit.h 8725 2009-06-21 07:36:51Z charles $
 
2
 * $Id: fdlimit.h 8935 2009-08-15 15:52:10Z charles $
3
3
 *
4
4
 * Copyright (c) 2005-2008 Transmission authors and contributors
5
5
 *
53
53
 *
54
54
 * A small pool of open files is kept to avoid the overhead of
55
55
 * continually opening and closing the same files when downloading
56
 
 * piece data.    It's also used to ensure only one caller can
57
 
 * write to the file at a time.  Callers check out a file, use it,
58
 
 * and then check it back in via tr_fdFileReturn() when done.
 
56
 * piece data.
59
57
 *
60
58
 * - if `folder' doesn't exist, errno is set to ENOENT.
61
59
 * - if doWrite is true, subfolders in torrentFile are created if necessary.
64
62
 * on success, a file descriptor >= 0 is returned.
65
63
 * on failure, a -1 is returned and errno is set.
66
64
 *
67
 
 * @see tr_fdFileReturn
68
65
 * @see tr_fdFileClose
69
66
 */
70
67
int  tr_fdFileCheckout( int                      torrentId,
75
72
                        uint64_t                 desiredFileSize );
76
73
 
77
74
/**
78
 
 * Returns an fd from tr_fdFileCheckout() so that other clients may borrow it.
79
 
 *
80
 
 * @see tr_fdFileCheckout
81
 
 * @see tr_fdFileClose
82
 
 */
83
 
void tr_fdFileReturn( int file );
84
 
 
85
 
/**
86
75
 * Closes a file that's being held by our file repository.
87
76
 *
88
77
 * If the file isn't checked out, it's closed immediately.
89
78
 * If the file is currently checked out, it will be closed upon its return.
90
79
 *
91
80
 * @see tr_fdFileCheckout
92
 
 * @see tr_fdFileReturn
93
81
 */
94
82
void     tr_fdFileClose( const char * filename );
95
83