~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/lockfile.c

  • 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:
66
66
#include "prthread.h"
67
67
#include "prtypes.h"
68
68
 
69
 
#ifndef XP_MAC
70
69
#include "private/pprio.h"
71
 
#else
72
 
#include "pprio.h"
73
 
#endif
74
70
 
75
71
#include <stdio.h>
76
72
#include <stdlib.h>
77
73
#include <string.h>
78
74
 
79
 
#ifdef XP_MAC
80
 
#include "prlog.h"
81
 
#define printf PR_LogPrint
82
 
extern void SetupMacPrintfLog(char *logFile);
83
 
#endif
84
 
 
85
75
PRIntn failed_already=0;
86
76
PRIntn debug_mode;
87
77
 
241
231
    PR_Init(PR_USER_THREAD, PR_PRIORITY_NORMAL, 0);
242
232
    PR_STDIO_INIT();
243
233
 
244
 
#ifdef XP_MAC
245
 
        SetupMacPrintfLog("lockfile.log");
246
 
        debug_mode = 1;
247
 
#endif
248
 
 
249
234
    if (argc > 1) loops = atoi(argv[1]);
250
235
    if (loops == 0) loops = 100;
251
236
    if (debug_mode) printf("Lock: Using %d loops\n", loops);