[OpenAFS] Re: afs_syscall (Samba as a client of OpenAFS)
Tue, 30 Sep 2008 14:04:02 -0700
"Derrick Brashear" <firstname.lastname@example.org> writes:
> If you call our syscall stub from libsys it just works. If you have
> your own, you get to fix it.
A portable implementation of the syscall stub for any platform other than
AIX (which has a bizarre syscall calling mechanism) is available as part
of the kstart distribution at:
See portable/kafs* and m4/kafs.m4. (pam-afs-session also includes the
same code, but it's not as well-separated there yet.)
Note, however, that this only implements the glue for setpag and unlog.
The pioctl call is there, but none of the constants for the other calls.
You'd need to grab large chunks of the OpenAFS headers for the constants
required to make the other system calls, including setting a token and
listing tokens. So you might be better off just using the OpenAFS libsys
Russ Allbery (email@example.com) <http://www.eyrie.org/~eagle/>