FILE *fp;
int xsym_compar();
- fp = fopen(syms, "r");
+ if (syms == NULL)
+ sys_error("syms is NULL");
+ fp = fopen(syms, "r");
if (fp == NULL)
sys_error(syms);
* strp - ^ to ^ to EXPORT string table
* szp - ^ to EXPORT string table size
*/
+#define SYMBUFSIZE 262144
xlate_xtok(xp, kp, strp, szp)
register struct syment *xp;
register sym_t *kp;
static left, offset, sz;
if (!export_strings) {
- export_strings = malloc(sz = 1024);
+ export_strings = malloc(sz = SYMBUFSIZE);
if (!export_strings)
error("no memory for EXPORT string table");
*strp = export_strings;
*szp = offset = sizeof(uint);
- left = 1024 - offset;
+ left = SYMBUFSIZE - offset;
export_strings += offset;
*/
len = strlen(xstrings + xp->n_offset) + 1;
while (len >= left) {
- export_strings = (char *)realloc(*strp, sz += 1024);
+ export_strings = (char *)realloc(*strp, sz += SYMBUFSIZE);
if (!export_strings)
error("no memory for EXPORT string table");
*strp = export_strings;
- left += 1024;
+ left += SYMBUFSIZE;
prev = ""; /* lazy */
}
*/
len = strlen(xp->n_nptr) + 1;
while (len >= left) {
- export_strings = (char *)realloc(*strp, sz += 1024);
+ export_strings = (char *)realloc(*strp, sz += SYMBUFSIZE);
if (!export_strings)
error("no memory for EXPORT string table");
*strp = export_strings;
- left += 1024;
+ left += SYMBUFSIZE;
prev = ""; /* lazy */
}
LIBAFSWEB = nsafs.a
LIBAFSWEBKRB = nsafs.krb.a
-OPTF=-O
+# To get __file__ (afs_osi_pag.c) you need to specify language level
+# C99 to xlc_r like this:
+OPTF=-O -qlanglvl=stdc99
WEBOPTS = -I../nsapi -qarch=com -DNETSCAPE_NSAPI -DAIX -DNET_SSL -DXP_UNIX -DMCC_HTTPD
include Makefile.common
#if defined(AFS_LINUX22_ENV)
#define AFS_LWP_MINSTACKSIZE (192 * 1024)
#else
+#if defined(AFS_AIX52_ENV)
+#define AFS_LWP_MINSTACKSIZE (128 * 1024)
+#else
#define AFS_LWP_MINSTACKSIZE (48 * 1024)
#endif
#endif
+#endif
/* Action to take on stack overflow. */
#define LWP_SOQUIET 1 /* do nothing */
/* no ticket good for longer than 30 days */
#define MAXKTCTICKETLIFETIME (30*24*3600)
#define MINKTCTICKETLEN 32
+
+#if defined(AFS_AIX52_ENV)
+#ifdef __XCOFF64__
#define MAXKTCTICKETLEN 12000 /* was 344 */
+#else
+#define MAXKTCTICKETLEN 344
+#endif
+#else
+#define MAXKTCTICKETLEN 12000 /* was 344 */
+#endif
+
#define MAXKTCNAMELEN 64 /* name & inst should be 256 */
#define MAXKTCREALMLEN 64 /* should be 256 */
#define KTC_TIME_UNCERTAINTY (15*60) /* max skew bet. machines' clocks */