Hi!

----

Why is |resolvepath()| called in the "truss" sample below:
-- snip --
stat64("/usr/lib/libast.so.1", 0xFFBFEF80)      = 0
resolvepath("/usr/lib/libast.so.1", "/usr/lib/libast.so.1", 1023) = 20
open("/usr/lib/libast.so.1", O_RDONLY)          = 3
mmapobj(3, 0x00020000, 0xFF3F7A48, 0xFFBFF014, 0x00000000) = 0
close(3)
-- snip --

Wouldn't it be easier to just call |open()| directly ?

----

Bye,
Roland

P.S.: Why doesn't the code just do an |open()| for each library
_directory_ and then do a |statat()| and |openat()| using the returned
file descriptor ? AFAIK this would save some directory lookup time...

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

Reply via email to