/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#define _ICL_H__ENV_ 1
#ifdef KERNEL
-#include "param.h"
+#include "afs/param.h"
#include "afs_osi.h"
#include "lock.h"
#include "afs_trace.h"
#define ICL_DEFAULT_SET_STATES 0 /* was ICL_SETF_ACTIVE */
#endif /* ICL_DEFAULT_SET_STATES */
-/* bytes required by eventFlags array, for x events */
-#define ICL_EVENTBYTES(x) ((((x) - 1) | 7) + 1)
-
/* functions for finding a particular event */
#define ICL_EVENTBYTE(x) (((x) & 0x3ff) >> 3)
#define ICL_EVENTMASK(x) (1 << ((x) & 0x7))
-#define ICL_EVENTOK(setp, x) ((x&0x3ff) >= 0 && (x&0x3ff) < (setp)->nevents)
/* define ICL syscalls by name!! */
#define ICL_OP_COPYOUT 1
#define ICL_OP_SS_DEACTIVATE 2
#define ICL_OP_SS_FREE 3
-/* define set status flags */
-#define ICL_FLAG_ACTIVE 1
-#define ICL_FLAG_FREED 2
/* The format of the circular log is:
* 1'st word:
*/
extern int afs_icl_sizeofLong;
-#define ICL_SIZEHACK(t1, p1) \
+#define ICL_SIZEHACK(t1, p1, ts1, rs1) \
MACRO_BEGIN \
if ((t1) == ICL_TYPE_STRING) { \
- tsize = (int)((unsigned)(strlen((char *)(p1)) + 4) >> 2); \
+ ts1 = (int)((unsigned)(strlen((char *)(p1)) + 4) >> 2); \
} else if ((t1) == ICL_TYPE_HYPER || (t1) == ICL_TYPE_INT64) \
- tsize = 2; \
+ ts1 = 2; \
else if ((t1) == ICL_TYPE_FID) \
- tsize = 4; \
+ ts1 = 4; \
else if ((t1) == ICL_TYPE_INT32) \
- tsize = 1; \
+ ts1 = 1; \
else \
- tsize = afs_icl_sizeofLong; \
+ ts1 = afs_icl_sizeofLong; \
/* now add in the parameter */ \
- rsize += tsize; \
+ rs1 += ts1; \
MACRO_END
/* log flags */
#define ICL_RPC_MAX_SETS (64)
#define ICL_RPC_MAX_LOGS (64)
-typedef struct afs_icl_setinfo {
- u_char setName[32];
- afs_uint32 states;
-} afs_icl_setinfo_t;
-
-typedef struct afs_icl_loginfo {
- u_char logName[32];
- afs_uint32 logSize;
- afs_uint32 logElements;
- afs_uint32 states;
-} afs_icl_loginfo_t;
-
-typedef struct afs_icl_bulkSetinfo {
- afs_uint32 count;
- afs_icl_setinfo_t setinfo[1];
-} afs_icl_bulkSetinfo_t;
-
-typedef struct afs_icl_bulkLoginfo {
- afs_uint32 count;
- afs_icl_loginfo_t loginfo[1];
-} afs_icl_bulkLoginfo_t;
#endif