~andreserl/ubuntu/lucid/bind9/bind9-apport-533601

« back to all changes in this revision

Viewing changes to lib/isc/win32/include/isc/mutex.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2009-01-26 10:33:42 UTC
  • mfrom: (1.4.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090126103342-zfv3z8v6jgci62tg
* New upstream patch release
  - supportable version of fix from 9.5.0.dfsg.P2-5.1
  - CVE-2009-0025:  Closes: #511936
  - 2475: Overly agressive cache entry removal.  Closes: #511768
  - other bug fixes worthy of patch-release inclusion

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004, 2007, 2008  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1998-2001  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and/or distribute this software for any
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: mutex.h,v 1.19 2007/06/19 23:47:20 tbox Exp $ */
 
18
/* $Id: mutex.h,v 1.19.128.2 2008/09/11 23:46:38 tbox Exp $ */
19
19
 
20
20
#ifndef ISC_MUTEX_H
21
21
#define ISC_MUTEX_H 1
27
27
 
28
28
typedef CRITICAL_SECTION isc_mutex_t;
29
29
 
30
 
/* This definition is here since WINBASE.H omits it for some reason */
31
 
 
 
30
/*
 
31
 * This definition is here since somve versions of WINBASE.H
 
32
 * omits it for some reason.
 
33
 */
 
34
#if (_WIN32_WINNT < 0x0400)
32
35
WINBASEAPI BOOL WINAPI
33
36
TryEnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
 
37
#endif /* _WIN32_WINNT < 0x0400 */
34
38
 
35
39
#define isc_mutex_init(mp) \
36
40
        (InitializeCriticalSection((mp)), ISC_R_SUCCESS)
46
50
/*
47
51
 * This is a placeholder for now since we are not keeping any mutex stats
48
52
 */
49
 
#define isc_mutex_stats(fp)
 
53
#define isc_mutex_stats(fp) do {} while (0)
50
54
 
51
55
#endif /* ISC_MUTEX_H */