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

« back to all changes in this revision

Viewing changes to src/rxgen/rpc_main.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:
37
37
#include <afs/param.h>
38
38
 
39
39
RCSID
40
 
    ("$Header: /cvs/openafs/src/rxgen/rpc_main.c,v 1.21.2.3 2006/08/24 15:56:44 shadow Exp $");
 
40
    ("$Header: /cvs/openafs/src/rxgen/rpc_main.c,v 1.21.2.6 2008/01/08 18:57:28 shadow Exp $");
41
41
 
42
42
#include <limits.h>
43
43
#include <stdio.h>
44
44
#include <stdlib.h>
45
45
#include <ctype.h>
46
 
#ifdef HAVE_STRING_H
47
46
#include <string.h>
48
 
#else
49
 
#ifdef HAVE_STRINGS_H
50
 
#include <strings.h>
51
 
#endif
52
 
#endif
53
47
#ifdef HAVE_SIGNAL_H
54
48
#include <signal.h>
55
49
#endif
66
60
#define EXTEND  1               /* alias for TRUE */
67
61
 
68
62
struct commandline {
 
63
    int ansic_flag;
69
64
    int cflag;
70
65
    int hflag;
71
66
    int lflag;
93
88
char *OutFileFlag = "";
94
89
char OutFile[256];
95
90
char Sflag = 0, Cflag = 0, hflag = 0, cflag = 0, kflag = 0, uflag = 0;
 
91
char ansic_flag = 0;            /* If set, build ANSI C style prototypes */
96
92
char zflag = 0;                 /* If set, abort server stub if rpc call returns non-zero */
97
93
char xflag = 0;                 /* if set, add stats code to stubs */
98
94
char yflag = 0;                 /* if set, only emit function name arrays to xdr file */
99
95
int debug = 0;
100
96
static char *cmdname;
101
 
#ifdef  AFS_SUN5_ENV
102
 
static char CPP[] = "/usr/ccs/lib/cpp";
103
 
#elif defined(AFS_XBSD_ENV) || defined(AFS_DARWIN60_ENV)
104
 
static char CPP[] = "/usr/bin/cpp";
105
 
#elif defined(AFS_NT40_ENV)
106
 
static char CPP[MAXCMDLINE];
107
 
#elif defined(AFS_DARWIN_ENV)
108
 
static char CPP[] = "cc -E";
 
97
#ifdef  __PROG_CPP__
 
98
static char CPP[] = __PROG_CPP__;
109
99
#else
110
100
static char CPP[] = "/lib/cpp";
111
101
#endif
808
798
            for (j = 1; argv[i][j] != 0; j++) {
809
799
                c = argv[i][j];
810
800
                switch (c) {
 
801
                case 'A':
811
802
                case 'c':
812
803
                case 'h':
813
804
                case 'l':
866
857
            ;
867
858
        }
868
859
    }
 
860
    cmd->ansic_flag = ansic_flag = flag['A'];
869
861
    cmd->cflag = cflag = flag['c'];
870
862
    cmd->hflag = hflag = flag['h'];
871
863
    cmd->sflag = flag['s'];