~ubuntu-branches/ubuntu/lucid/nspr/lucid

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/thrpool_client.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:
65
65
static int server_port = -1;
66
66
static char *program_name = NULL;
67
67
 
68
 
#ifdef XP_MAC
69
 
#include "prlog.h"
70
 
#include "prsem.h"
71
 
int fprintf(FILE *stream, const char *fmt, ...)
72
 
{
73
 
    PR_LogPrint(fmt);
74
 
    return 0;
75
 
}
76
 
#define printf PR_LogPrint
77
 
extern void SetupMacPrintfLog(char *logFile);
78
 
#else
79
68
#include "obsolete/prsem.h"
80
 
#endif
81
69
 
82
70
#ifdef XP_PC
83
71
#define mode_t int
346
334
 
347
335
/************************************************************************/
348
336
 
349
 
int
350
 
main(int argc, char **argv)
 
337
int main(int argc, char **argv)
351
338
{
352
339
    /*
353
340
     * -d           debug mode
377
364
    PR_Init(PR_USER_THREAD, PR_PRIORITY_NORMAL, 0);
378
365
    PR_STDIO_INIT();
379
366
 
380
 
#ifdef XP_MAC
381
 
    SetupMacPrintfLog("socket.log");
382
 
#endif
383
367
    PR_SetConcurrency(4);
384
368
 
385
369
        TCP_Socket_Client_Server_Test();