~ubuntu-branches/ubuntu/jaunty/nspr/jaunty-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-05-10 18:40:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100510184010-boghfzlm551mtoag
Tags: 4.8-0ubuntu0.9.04.1
* New upstream release: 4.8
  - Support updating NSS to 3.12.6 and fix CVE-2009-3555 aka 
    US-CERT VU#120541
* adjust patches to changed upstream codebase
  - update debian/patches/30_config_64bits.patch
  - 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
 
67
67
#include <stdio.h>
68
68
 
69
 
#ifdef XP_MAC
70
 
#include "prsem.h"
71
 
#include "prlog.h"
72
 
#define printf PR_LogPrint
73
 
extern void SetupMacPrintfLog(char *logFile);
74
 
#else
75
69
#include "obsolete/prsem.h"
76
 
#endif
77
70
 
78
71
 
79
72
#define TBSIZE 1024
195
188
        PR_Init(PR_USER_THREAD, PR_PRIORITY_NORMAL, 0);
196
189
    PR_STDIO_INIT();
197
190
 
198
 
#ifdef XP_MAC
199
 
        SetupMacPrintfLog("fileio.log");
200
 
        debug_mode = 1;
201
 
#endif
202
 
 
203
191
    emptyBufs = PR_NewSem(2);   /* two empty buffers */
204
192
 
205
193
    fullBufs = PR_NewSem(0);    /* zero full buffers */