This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I was looking (admittedly the first time) closely at the ldconfig code. There are a few things which I do not really like: - in search dir, whenever a directory is seen it is immediately processed. This is semantically not necessary and not beneficial for the performance. The directories should be queued and then processed once the current directory is done. - the use of chroot seems unnecessary. We know when ldconfig uses a filename whether it has to be interpreted with the prefix or not. chroot() is quite nice but has the problems of not being available everywhere and also requiring the use of ldconfig by root (which hits me personally since installing in my chroot() test environment should work without being root). It would be nice if somebody could look into this. I've already added some code in ldconfig to make more use of d_type information. Please take a look at the change since this kind of use is repeating in many places. This little change reduced the number of syscals made by a ldconfig run in my minimal chroot() environment from 629 to 543. -- ---------------. ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Red Hat `--' drepper at redhat.com `------------------------
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |