History | View | Annotate | Download (4.7 kB)
user: speed up init_paths a bit
The current init_paths code will attempt to opendir() every single file itfinds. This can obviously generated a huge number of syscalls with even amoderately small sysroot that will fail. Since the readdir() call provides...
path.c fix warning with _FORTIFY_SOURCE
CC libuser/path.occ1: warnings being treated as errors/usr/src/RPM/BUILD/qemu-0.11.92/path.c: In function 'new_entry':/usr/src/RPM/BUILD/qemu-0.11.92/path.c:49: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result...
user: compile path.c only once
Also merge bsd-user/path.c and linux-user/path.c.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>