Rev 12507 | Rev 13458 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12507 | Rev 13451 | ||
---|---|---|---|
Line 1136... | Line 1136... | ||
1136 | } |
1136 | } |
1137 | } |
1137 | } |
1138 | 1138 | ||
1139 | int main(int argc, char *argv[], char *envp[]) |
1139 | int main(int argc, char *argv[], char *envp[]) |
1140 | { |
1140 | { |
- | 1141 | /****************************** |
|
- | 1142 | * modify a few rlimits for 64-bit processors |
|
- | 1143 | **/ |
|
- | 1144 | int wordSize=32; |
|
- | 1145 | #ifdef __IA64__ |
|
- | 1146 | wordSize=64; |
|
- | 1147 | #endif |
|
- | 1148 | #ifdef __x86_64__ |
|
- | 1149 | wordSize=64; |
|
- | 1150 | #endif |
|
- | 1151 | if (wordSize==64){ |
|
- | 1152 | rlimit_as*=2; /* double virtual memory size */ |
|
- | 1153 | rlimit_data*=2; /* double data segment size; maxima requires a lot */ |
|
- | 1154 | rlimit_stack*=2; /* double stack size */ |
|
- | 1155 | } |
|
- | 1156 | /****************************/ |
|
- | 1157 | ||
1141 | char *p, homebuf[MAX_FNAME+1], lbuf[32], buf[64]; |
1158 | char *p, homebuf[MAX_FNAME+1], lbuf[32], buf[64]; |
1142 | int inlen=0; |
1159 | int inlen=0; |
1143 | /* int mfd; */ |
1160 | /* int mfd; */ |
1144 | 1161 | ||
1145 | class_dir[0]=0; |
1162 | class_dir[0]=0; |