~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/include/private/primpl.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
#include <kernel/OS.h>
55
55
#endif
56
56
 
57
 
#ifdef WINNT
58
 
/* Need to force service-pack 3 extensions to be defined by
59
 
** setting _WIN32_WINNT to NT 4.0 for winsock.h, winbase.h, winnt.h.
60
 
*/
61
 
#ifndef  _WIN32_WINNT
62
 
    #define _WIN32_WINNT 0x0400
63
 
#elif   (_WIN32_WINNT < 0x0400)
64
 
    #undef  _WIN32_WINNT
65
 
    #define _WIN32_WINNT 0x0400
66
 
#endif /* _WIN32_WINNT */
67
 
#endif /* WINNT */
 
57
#ifdef WIN32
 
58
/*
 
59
 * Allow use of functions and symbols first defined in Win2k.
 
60
 */
 
61
#if !defined(WINVER) || (WINVER < 0x0500)
 
62
#undef WINVER
 
63
#define WINVER 0x0500
 
64
#endif
 
65
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500)
 
66
#undef _WIN32_WINNT
 
67
#define _WIN32_WINNT 0x0500
 
68
#endif
 
69
#endif /* WIN32 */
68
70
 
69
71
#include "nspr.h"
70
72
#include "prpriv.h"
71
73
 
72
74
typedef struct PRSegment PRSegment;
73
75
 
74
 
#ifdef XP_MAC
75
 
#include "prosdep.h"
76
 
#include "probslet.h"
77
 
#else
78
76
#include "md/prosdep.h"
79
77
#include "obsolete/probslet.h"
80
 
#endif  /* XP_MAC */
81
78
 
82
79
#ifdef _PR_HAVE_POSIX_SEMAPHORES
83
80
#include <semaphore.h>
326
323
#define _MD_LAST_THREAD()               (_pr_lastThread)
327
324
#define _MD_SET_LAST_THREAD(t)          (_pr_lastThread = t)
328
325
 
329
 
#ifndef XP_MAC
330
326
#define _MD_GET_INTSOFF()               (_pr_intsOff)
331
327
#define _MD_SET_INTSOFF(_val)           (_pr_intsOff = _val)
332
 
#endif
333
328
 
334
329
 
335
330
/* The unbalanced curly braces in these two macros are intentional */
374
369
 
375
370
#else
376
371
 
377
 
#ifdef XP_MAC
378
 
 
379
 
#define _PR_INTSOFF(_is)        _MD_INTSOFF(_is)
380
 
 
381
 
#else /* XP_MAC */
382
 
 
383
372
#define _PR_INTSOFF(_is) \
384
373
    PR_BEGIN_MACRO \
385
374
        (_is) = _PR_MD_GET_INTSOFF(); \
386
375
        _PR_MD_SET_INTSOFF(1); \
387
376
    PR_END_MACRO
388
377
 
389
 
#endif /* XP_MAC */
390
 
 
391
378
#define _PR_FAST_INTSON(_is) \
392
379
    PR_BEGIN_MACRO \
393
380
        _PR_MD_SET_INTSOFF(_is); \
1089
1076
extern void _PR_MD_INIT_FILEDESC(PRFileDesc *fd);
1090
1077
#define    _PR_MD_INIT_FILEDESC _MD_INIT_FILEDESC
1091
1078
 
1092
 
#ifdef XP_MAC
1093
 
extern void _PR_MD_FREE_FILEDESC(PRFileDesc *fd);
1094
 
#define    _PR_MD_FREE_FILEDESC _MD_FREE_FILEDESC
1095
 
#endif
1096
 
 
1097
1079
extern void _PR_MD_MAKE_NONBLOCK(PRFileDesc *fd);
1098
1080
#define    _PR_MD_MAKE_NONBLOCK _MD_MAKE_NONBLOCK
1099
1081
 
1215
1197
 
1216
1198
extern void _PR_MD_UPDATE_ACCEPT_CONTEXT(PROsfd s, PROsfd ls);
1217
1199
#define _PR_MD_UPDATE_ACCEPT_CONTEXT _MD_UPDATE_ACCEPT_CONTEXT
 
1200
/*
 
1201
 * The NSPR epoch (00:00:00 1 Jan 1970 UTC) in FILETIME.
 
1202
 * We store the value in a PRTime variable for convenience.
 
1203
 * This constant is used by _PR_FileTimeToPRTime().
 
1204
 * This is defined in ntmisc.c
 
1205
 */
 
1206
extern const PRTime _pr_filetime_offset;
1218
1207
#endif /* WIN32 */
1219
1208
 
1220
1209
extern PRInt32 _PR_MD_SENDFILE(