They are declared in the header files and not in any libraries. When I'm looking for which header files to include I usually run something like:
find /usr/include -type f -exec \grep -H __FD_ZERO {} \;
It shouldn't be to hard to make a script out of that which searches for the arguments passed to the script. Maybe something like:
Code:
#!/bin/bash
if [ -z "$1" ]
then
filename=`basename $0`
echo "Usage: $filename keyword"
exit
fi
find /usr/include -type f -exec \grep -H $1 {} \;
And usually when searching through libraries I'd do something like:
strings library.a | grep keyword
You could probably make a simple script like the above one which lets you search through all the libraries for a keyword.