eparm[2] = param6;
eparm[3] = param7;
- param4 = eparm;
+ param4 = (long) eparm;
#endif
error = syscall(AFS_SYSCALL, AFSCALL_CALL, param1, param2, param3, param4, param5, param6, param7);
printf("kvno %4d: key is '%s' '", tkeys.key[i].kvno, tbuffer);
strcpy(x,(char *)tbuffer);
for(count=0;count<8;count++)
- printf("\\%03o",(unsigned char *)x[count]);
+ printf("\\%03o", x[count]);
printf("'\n");
}
}
DESTDIR=/usr/andy/
INSTALL=${SRCDIR}/bin/install
LIBS=${LIBRX} ${SRCDIR}/lib/liblwp.a
-CFLAGS=-g -I.. -I. -I${SRCDIR}/include -DDEBUG ${XCFLAGS}
+CFLAGS=${DBG} -I.. -I. -I${SRCDIR}/include -DDEBUG ${XCFLAGS}
all: bulk_client bulk_server
DESTDIR=/usr/andy/
INSTALL=${SRCDIR}/bin/install
LIBS=${LIBRX} ${SRCDIR}/lib/liblwp.a
-CFLAGS=-g -I.. -I. -I${SRCDIR}/include -DDEBUG ${XCFLAGS}
+CFLAGS=${DBG} -I.. -I. -I${SRCDIR}/include -DDEBUG ${XCFLAGS}
all: sample_client sample_server
DESTDIR=/usr/andy/
INSTALL=${SRCDIR}/bin/install
LIBS=${LIBRX} ${SRCDIR}/lib/liblwp.a
-CFLAGS=-g -I. -I${SRCDIR}/include -DDEBUG ${XCFLAGS}
+CFLAGS=${DBG} -I. -I${SRCDIR}/include -DDEBUG ${XCFLAGS}
all: sample_client sample_server
#ifdef HAVE_STRING_H
#include <string.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <rx/xdr.h>
#include "rmtsys.h"
#include <stdio.h> /*I/O stuff*/
#include <afs/afsutil.h>
#include <errno.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
/*
* --------------------- Exported definitions ---------------------
BEWARE: avoid quotes in the assertion!!
Also beware: you cannot make the NOASSERT case a null macro, because of side effects */
+#undef assert
#ifndef NOASSERT
#define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__, __LINE__);fprintf(stderr, "\t%s\n", # ex); abort();}}
#else
include @TOP_OBJDIR@/src/config/Makefile.config
-CFLAGS = -I. -I.. -I${SRCDIR}/include ${XCFLAGS} -g
+CFLAGS = -I. -I.. -I${SRCDIR}/include ${XCFLAGS} ${DBG}
tests: test_ktime ktest dirpath_test
#include <afs/cmd.h>
#include <afs/afsutil.h>
#include <stdlib.h>
-#ifdef HAVE_STRING_H
-#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
#include <assert.h>
#include <afs/ptclient.h>
#define u16 unsigned short
#include <features.h>
#if __GLIBC_MINOR__ >= 2
-#define _SYS_TYPES_H
+#define _SYS_TYPES_H 1
#endif
#define __KERNEL__
#endif