A command for searching for a filename
Is their a function call in linux that would allow me to search a directory for a filename within a system call. In namei.c their is a function call do_path_lookup that can check to see whether or not a path exists. But I cannot find anything to check to see if a file exists in a directory. Please help.