~ubuntu-branches/ubuntu/jaunty/transmission/jaunty-updates

« back to all changes in this revision

Viewing changes to libtransmission/ggets.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2008-11-28 15:33:48 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20081128153348-it70trfnxiroblmc
Tags: 1.40-0ubuntu1
* New upstream release (LP: #302672)
  - Tracker communication uses fewer resources
  - More accurate bandwidth limits
  - Reduce disk fragmentation by preallocating files (LP: #287726)
  - Stability, security and performance improvements to the RPC /
    Web UI server (closes LP: #290423)
  - Support compression when serving Web UI and RPC responses
  - Simplify the RPC whitelist
  - Fix bug that prevented handshakes with encrypted BitComet peers
  - Fix 1.3x bug that could re-download some data unnecessarily
    (LP: #295040)
  - Option to automatically update the blocklist weekly
  - Added off-hour bandwidth scheduling
  - Simplify file/priority selection in the details dialog
  - Fix a couple of crashes
  - New / updated translations
  - Don't inhibit hibernation by default (LP: #292929)
  - Use "close" animation when sending to notification area (LP: #130811)
  - Fix resize problems (LP: #269872)
  - Support "--version" option when launching from command line
    (LP: #292011)
  - Correctly parse announce URLs that have leading or trailing
    spaces (LP: #262411)
  - Display an error when "Open Torrent" fails (LP: #281463)
* Dropped 10_fix_crasher_from_upstream.dpatch: Fix is in this
  upstream release.
* debian/control: Don't just build-depend on libcurl-dev, which is
  a virtual package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* File ggets.h  - goodgets is a safe alternative to gets */
2
 
/* By C.B. Falconer.  Public domain 2002-06-22            */
3
 
/*    attribution appreciated.                            */
4
 
 
5
 
 
6
 
/* Revised 2002-06-26  New prototype.
7
 
           2002-06-27  Incomplete final lines
8
 
 */
9
 
 
10
 
/* fggets and ggets [which is fggets(ln, stdin)] set *ln to
11
 
   a buffer filled with the next complete line from the text
12
 
   stream f.  The storage has been allocated within fggets,
13
 
   and is normally reduced to be an exact fit.  The trailing
14
 
   \n has been removed, so the resultant line is ready for
15
 
   dumping with puts.  The buffer will be as large as is
16
 
   required to hold the complete line.
17
 
 
18
 
   Note: this means a final file line without a \n terminator
19
 
   has an effective \n appended, as EOF occurs within the read.
20
 
 
21
 
   If no error occurs fggets returns 0.  If an EOF occurs on
22
 
   the input file, EOF is returned.  For memory allocation
23
 
   errors some positive value is returned.  In this case *ln
24
 
   may point to a partial line.  For other errors memory is
25
 
   freed and *ln is set to NULL.
26
 
 
27
 
   Freeing of assigned storage is the callers responsibility
28
 
 */
29
 
 
30
 
#ifndef ggets_h_
31
 
#  define ggets_h_
32
 
 
33
 
#  ifdef __cplusplus
34
 
      extern "C" {
35
 
#  endif
36
 
 
37
 
int fggets(char* *ln, FILE *f);
38
 
 
39
 
#define ggets(ln) fggets(ln, stdin)
40
 
 
41
 
#  ifdef __cplusplus
42
 
      }
43
 
#  endif
44
 
#endif
45
 
/* END ggets.h */
 
1
/* File ggets.h  - goodgets is a safe alternative to gets */
 
2
/* By C.B. Falconer.  Public domain 2002-06-22            */
 
3
/*    attribution appreciated.                            */
 
4
 
 
5
 
 
6
/* Revised 2002-06-26  New prototype.
 
7
           2002-06-27  Incomplete final lines
 
8
 */
 
9
 
 
10
/* fggets and ggets [which is fggets(ln, stdin)] set *ln to
 
11
   a buffer filled with the next complete line from the text
 
12
   stream f.  The storage has been allocated within fggets,
 
13
   and is normally reduced to be an exact fit.  The trailing
 
14
   \n has been removed, so the resultant line is ready for
 
15
   dumping with puts.  The buffer will be as large as is
 
16
   required to hold the complete line.
 
17
 
 
18
   Note: this means a final file line without a \n terminator
 
19
   has an effective \n appended, as EOF occurs within the read.
 
20
 
 
21
   If no error occurs fggets returns 0.  If an EOF occurs on
 
22
   the input file, EOF is returned.  For memory allocation
 
23
   errors some positive value is returned.  In this case *ln
 
24
   may point to a partial line.  For other errors memory is
 
25
   freed and *ln is set to NULL.
 
26
 
 
27
   Freeing of assigned storage is the callers responsibility
 
28
 */
 
29
 
 
30
#ifndef ggets_h_
 
31
#define ggets_h_
 
32
 
 
33
#ifdef __cplusplus
 
34
extern "C" {
 
35
#endif
 
36
 
 
37
int fggets( char* *ln,
 
38
            FILE * f );
 
39
 
 
40
#define ggets( ln ) fggets( ln, stdin )
 
41
 
 
42
#ifdef __cplusplus
 
43
}
 
44
#endif
 
45
#endif
 
46
/* END ggets.h */