Looking for files or directories that don't exist? This is 99% or more of what glibc does behind your back. Look at this strace of cat(1):
open("/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT
open("/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY) = 3
open("/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT
open("/usr/lib/locale/en_US.utf8/LC_TELEPHONE", O_RDONLY) = 3
and on and on and on. Executing a subprocess is a veritable ENOENT bonanza as the linker/loader looks in all sorts of improbable places for bits of your program. If looking in the wrong directory for files that don't exist is a power consumption problem, we have a ton of work ahead of us.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds