summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kerberosV/src/lib/kafs/kafs.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/kerberosV/src/lib/kafs/kafs.h b/kerberosV/src/lib/kafs/kafs.h
index e6e58d1126e..c3f9cccb67a 100644
--- a/kerberosV/src/lib/kafs/kafs.h
+++ b/kerberosV/src/lib/kafs/kafs.h
@@ -41,9 +41,29 @@
/* sys/ioctl.h must be included manually before kafs.h */
/*
+ * The following parts are from the old nnpfs_pioct.h file
*/
-
-#include<nnpfs/nnpfs_pioctl.h>
+struct ViceIoctl {
+ caddr_t in, out;
+ short in_size;
+ short out_size;
+};
+
+#ifndef _VICEIOCTL
+#define _VICEIOCTL(id) ((unsigned int ) _IOW('V', id, struct ViceIoctl))
+#endif /* _VICEIOCTL */
+
+#define VIOCSETTOK _VICEIOCTL(3)
+#define VIOCUNLOG _VICEIOCTL(9)
+#define VIOC_FILE_CELL_NAME _VICEIOCTL(30)
+
+struct ClearToken {
+ int32_t AuthHandle;
+ char HandShakeKey[8];
+ int32_t ViceId;
+ int32_t BeginTimestamp;
+ int32_t EndTimestamp;
+};
/* Use k_hasafs() to probe if the machine supports AFS syscalls.
The other functions will generate a SIGSYS if AFS is not supported */