~sense/ubuntu/lucid/transmission/fix-497882

« back to all changes in this revision

Viewing changes to third-party/shttpd/compat_unix.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
 
/*
2
 
 * Copyright (c) 2004-2007 Sergey Lyubka <valenok@gmail.com>
3
 
 * All rights reserved
4
 
 *
5
 
 * "THE BEER-WARE LICENSE" (Revision 42):
6
 
 * Sergey Lyubka wrote this file.  As long as you retain this notice you
7
 
 * can do whatever you want with this stuff. If we meet some day, and you think
8
 
 * this stuff is worth it, you can buy me a beer in return.
9
 
 */
10
 
 
11
 
#include <sys/wait.h>
12
 
#include <sys/socket.h>
13
 
#include <sys/select.h>
14
 
#include <sys/mman.h>
15
 
#include <netinet/in.h>
16
 
#include <arpa/inet.h>
17
 
#include <sys/time.h>
18
 
 
19
 
#include <pwd.h>
20
 
#include <unistd.h>
21
 
#include <dirent.h>
22
 
#include <dlfcn.h>
23
 
 
24
 
#if !defined(NO_THREADS)
25
 
#include "pthread.h"
26
 
#define _beginthread(a, b, c) do { pthread_t tid; \
27
 
        pthread_create(&tid, NULL, (void *(*)(void *))a, c); } while (0)
28
 
#endif /* !NO_THREADS */
29
 
 
30
 
#define SSL_LIB                         "libssl.so"
31
 
#define DIRSEP                          '/'
32
 
#define IS_DIRSEP_CHAR(c)               ((c) == '/')
33
 
#define O_BINARY                        0
34
 
#define closesocket(a)                  close(a)
35
 
#define ERRNO                           errno