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

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/semaping.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:
40
40
 
41
41
#include <stdio.h>
42
42
 
 
43
#ifdef SYMBIAN
 
44
#define SHM_NAME "c:\\data\\counter"
 
45
#define SEM_NAME1 "c:\\data\\foo.sem"
 
46
#define SEM_NAME2 "c:\\data\\bar.sem"
 
47
#define EXE_NAME "nspr_tests_semapong.exe"
 
48
#else
43
49
#define SHM_NAME "/tmp/counter"
44
50
#define SEM_NAME1 "/tmp/foo.sem"
45
51
#define SEM_NAME2 "/tmp/bar.sem"
 
52
#define EXE_NAME "semapong"
 
53
#endif
46
54
#define SEM_MODE  0666
47
55
#define SHM_MODE  0666
48
56
#define ITERATIONS 1000
128
136
    }
129
137
 
130
138
    child_arg = &child_argv[0];
131
 
    *child_arg++ = "semapong";
 
139
    *child_arg++ = EXE_NAME;
132
140
    if (debug_mode != PR_FALSE) {
133
141
        *child_arg++ = "-d";
134
142
    }