Files
heimdal/lib/kafs/kafs.h
Assar Westerlund 3635cccce3 use <sys/ioctl.h> instead of <sys/ioccom.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@297 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-03-15 08:39:42 +00:00

50 lines
1008 B
C

#ifndef __KAFS_H
#define __KAFS_H
#include <sys/bitypes.h>
#include <sys/cdefs.h>
#include <sys/ioctl.h>
/*
*/
#define AFSCALL_PIOCTL 20
#define AFSCALL_SETPAG 21
#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 ViceIoctl {
caddr_t in, out;
short in_size;
short out_size;
};
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 */
int k_hasafs __P((void));
int k_afsklog __P((char *cell, char *realm));
int k_pioctl __P((char *a_path,
int o_opcode,
struct ViceIoctl *a_paramsP,
int a_followSymlinks));
int k_unlog __P((void));
int k_setpag __P((void));
#endif /* __KAFS_H */