It shouldn't be hard, right? Correctly?
I am currently etching the OpenAFS database to find the pioctl header definition. I selected everything I have: checked ctags, grepped source code for pioctl, etc. The closest I came to is the fact that there is a pioctl_nt.h file containing the definition, but itβs not really what I want, because none of the user space code includes it, and it depends from windows.
Now I do not expect you to go and download the OpenAFS code base and find the header file for me. I'm curious, however: what are your methods of finding the header file that you need when all else fails? What are the worst case scenarios that might cause grep for pioctl in the codebase to not actually come up with anything like a function definition?
I should also note that I have access to two independent user space programs that did this correctly, so theoretically I could do an O (n) function search. But not one of the header files pops up to me, and n is big ...
Edit: The immediate problem has been resolved: pioctl () is defined implicitly, as shown below:
AFS.xs:2796: error: implicit declaration of function βpioctlβ