~ubuntu-branches/ubuntu/oneiric/openafs/oneiric-201305130334

« back to all changes in this revision

Viewing changes to src/rx/test/generator.c

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-09-22 19:07:02 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080922190702-59m13d7kn6gkw32d
Tags: 1.4.7.dfsg1-6
* Apply upstream patch to free /proc entries in the correct order.
  Thanks, Marc Dionne.  (Closes: #493914)
* Apply upstream deltas to support 2.6.27 kernels and to stop using
  COMMON_KERN_CFLAGS for all 2.6 kernels uniformly, which fixes
  problems on amd64 with newer kernels.  Thanks, Björn Torkelsson.
  (LP: #267504)
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #493120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
#include <afs/param.h>
54
54
 
55
55
RCSID
56
 
    ("$Header: /cvs/openafs/src/rx/test/generator.c,v 1.8 2003/07/15 23:16:37 shadow Exp $");
 
56
    ("$Header: /cvs/openafs/src/rx/test/generator.c,v 1.8.2.1 2007/10/31 04:13:44 shadow Exp $");
57
57
 
58
58
#include <stdio.h>
59
59
#include <string.h>
731
731
    fprintf(itl_h, "}\n");
732
732
 
733
733
    fprintf(itl_h,
734
 
            "\n\nstatic void DoRun(struct cmd_syndesc *as, char *arock) {\n");
 
734
            "\n\nstatic void DoRun(struct cmd_syndesc *as, void *arock) {\n");
735
735
 
736
736
    if (threadModel == PTHREADS) {
737
737
        fprintf(itl_h, "\tpthread_t *tid;\n");
802
802
 
803
803
    fprintf(itl_h,
804
804
            "static void SetupRunCmd(void) {\n" "\tstruct cmd_syndesc *ts;\n"
805
 
            "\tts = cmd_CreateSyntax(NULL,DoRun, 0, \"run the test client program\");\n"
 
805
            "\tts = cmd_CreateSyntax(NULL,DoRun, NULL, \"run the test client program\");\n"
806
806
            "\tcmd_AddParm(ts, \"-threadCount\", CMD_SINGLE, CMD_REQUIRED, \"number of threads to spawn\");\n"
807
807
            "\tcmd_AddParm(ts, \"-iterationCount\", CMD_SINGLE, CMD_REQUIRED, \"number of iterations to make over entire interface for each thread\");\n"
808
808
            "\tcmd_AddParm(ts, \"-secType\", CMD_SINGLE, CMD_REQUIRED, \"security level to use (1 -> unauthenticated, 2 -> authenticated)\");\n"
1187
1187
            "\nstatic long GetKey (char *rock, long kvno, struct ktc_encryptionKey *key) {\n"
1188
1188
            "\tmemcpy ((void *) key, (void *) &serviceKey, sizeof(*key));\n"
1189
1189
            "\treturn 0;\n" "}\n\n"
1190
 
            "static void DoRun(struct cmd_syndesc *as, char *arock) {\n"
 
1190
            "static void DoRun(struct cmd_syndesc *as, void *arock) {\n"
1191
1191
            "\tstruct rx_service *serv;\n"
1192
1192
            "\tstruct rx_securityClass *sc[3];\n\n"
1193
1193
            "\tint port=0, errflg=0;\n" "\tint lowThreads=4, highThreads=8;\n"
1204
1204
            "\t\trx_SetMaxProcs(serv,highThreads);\n"
1205
1205
            "\t\trx_StartServer(1);\n" "\t}\n" "\texit(0);\n" "}\n\n"
1206
1206
            "static void SetupRunCmd(void) {\n" "\tstruct cmd_syndesc *ts;\n"
1207
 
            "\tts = cmd_CreateSyntax(NULL,DoRun, 0, \"run the test server program\");\n"
 
1207
            "\tts = cmd_CreateSyntax(NULL,DoRun, NULL, \"run the test server program\");\n"
1208
1208
            "\tcmd_AddParm(ts, \"-lowThreadCount\", CMD_SINGLE, CMD_REQUIRED, \"minimum number of threads to spawn\");\n"
1209
1209
            "\tcmd_AddParm(ts, \"-highThreadCount\", CMD_SINGLE, CMD_REQUIRED, \"maximum number of threads to spawn\");\n"
1210
1210
            "\tcmd_AddParm(ts, \"-serverPort\", CMD_SINGLE, CMD_REQUIRED, \"port that server is using\");\n"