Files
heimdal/lib/kafs/kafs.h
Björn Groenvall ea8c23ea54 Added cell argument to k_afsklog().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@102 ec53bebd-3082-4978-b11e-865c3cabbd6b
1995-09-12 18:53:37 +00:00

50 lines
1.0 KiB
C

#ifndef __KAFS_H
#define __KAFS_H
#include <sys/bitypes.h>
#include <sys/cdefs.h>
/*
*/
#define AFSCALL_PIOCTL 20
#define AFSCALL_SETPAG 21
#ifndef _VICEIOCTL
#if defined(__STDC__)
#define _VICEIOCTL(id) ((unsigned int ) _IOW('V', id, struct ViceIoctl))
#else
#define _VICEIOCTL(id) ((unsigned int ) _IOW(V, id, struct ViceIoctl))
#endif
#endif /* _VICEIOCTL */
#define VIOCSETTOK _VICEIOCTL(3)
#define VIOCUNLOG _VICEIOCTL(9)
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 */