Re: How to locate implementation of a specific function in glibc source code?



loic-dev@xxxxxxx wrote:

Hi Ronald,

I tried to locate execv using:
(in the glib source dir)
grep "int execv" * -r
grep "int __execv" * -r

but failed.

Try at the top directory of the glibc source:
find . -name "*.c" | xargs fgrep -l "execv"

HTH,
Loic.
or
find . -name "*.c" -exec fgrep -l execv {} \; -print
Eric

.