A report from OSCON 2007
Posted Aug 3, 2007 0:03 UTC (Fri) by
jwb (guest, #15467)
Parent article:
A report from OSCON 2007
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.
(
Log in to post comments)