4 cdef extern from "errno.h":
7 cdef extern from "string.h":
8 char * strerror(int errnum)
9 char * strncpy(char *s1, char *s2, size_t n)
11 cdef extern from "netinet/in.h":
16 unsigned short sin_port
20 cdef extern from "afs/stds.h":
21 ctypedef long afs_int32
23 cdef extern from "afs/dirpath.h":
24 char * AFSDIR_CLIENT_ETC_DIRPATH
26 cdef extern from "afs/cellconfig.h":
32 # We just pass afsconf_dir structs around to other AFS functions,
33 # so this can be treated as opaque
37 # For afsconf_cell, on the other hand, we care about everything
39 char name[MAXCELLCHARS]
42 sockaddr_in hostAddr[MAXHOSTSPERCELL]
43 char hostName[MAXHOSTSPERCELL][MAXHOSTCHARS]
47 afsconf_dir *afsconf_Open(char *adir)
48 int afsconf_GetCellInfo(afsconf_dir *adir,
51 afsconf_cell *acellInfo)
53 cdef extern from "ubik.h":
57 # ubik_client is an opaque struct, so we don't care about its members
61 cdef extern from "rx/rx.h":
65 cdef extern from "rx/rxkad.h":
71 char name[MAXKTCNAMELEN]
72 char instance[MAXKTCNAMELEN]
73 char cell[MAXKTCREALMLEN]
75 cdef extern from "afs/com_err.h":
76 char * error_message(int)
78 cdef extern from "afs/auth.h":
82 # We don't look into this
83 struct ktc_encryptionKey:
87 ktc_encryptionKey sessionKey
90 char ticket[MAXKTCTICKETLEN]
92 int ktc_GetToken(ktc_principal *server,
95 ktc_principal *client)