Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
47
lib/kafs/kafs.h
Normal file
47
lib/kafs/kafs.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef __KAFS_H
|
||||
#define __KAFS_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 *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 */
|
Reference in New Issue
Block a user