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

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/nameshm1.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:
104
104
#include <string.h>
105
105
#include <private/primpl.h>
106
106
 
 
107
#ifdef SYMBIAN
 
108
#define SEM_NAME1 "c:\\data\\nameshmSEM1"
 
109
#define SEM_NAME2 "c:\\data\\nameshmSEM2"
 
110
#define OPT_NAME "c:\\data\\xxxNSPRshm"
 
111
#define EXE_NAME "nspr_tests_nameshm1.exe"
 
112
#else
107
113
#define SEM_NAME1 "/tmp/nameshmSEM1"
108
114
#define SEM_NAME2 "/tmp/nameshmSEM2"
 
115
#define OPT_NAME "/tmp/xxxNSPRshm"
 
116
#define EXE_NAME "nameshm1"
 
117
#endif
109
118
#define SEM_MODE  0666
110
119
#define SHM_MODE  0666
111
120
 
129
138
PRInt32     optPing = 1000;
130
139
PRUint32    optSize = (10 * 1024 );
131
140
PRInt32     optClientIterations = 3;
132
 
char        optName[NameSize] = "/tmp/xxxNSPRshm";
 
141
char        optName[NameSize] = OPT_NAME;
133
142
 
134
143
char buf[1024] = "";
135
144
 
446
455
 
447
456
    strcpy( (char*)addr, "FooBar" );
448
457
 
449
 
    child_argv[0] = "nameshm1";
 
458
    child_argv[0] = EXE_NAME;
450
459
    child_argv[1] = "-C";
451
460
    child_argv[2] = "-p";
452
461
    sprintf( buf, "%d", optPing );
530
539
    return;
531
540
} /* end ClientServerTest() */
532
541
 
533
 
PRIntn main(PRIntn argc, char *argv[])
 
542
int main(int argc, char **argv)
534
543
{
535
544
    {
536
545
        /*