summaryrefslogtreecommitdiffstats
path: root/path.c
Commit message (Collapse)AuthorAgeFilesLines
* build: move libqemuutil.a components to util/Paolo Bonzini2013-01-121-182/+0
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* user: Consider symbolic links as possible directoriesRichard Henderson2013-01-121-2/+3
| | | | | | | | | Commit 2296f194dfde4c0a54f249d3fdb8c8ca21dc611b reduced the number of syscalls performed during user emulation startup, but failed to consider the use of symbolic links in creating directory structures. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* user: speed up init_paths a bitMike Frysinger2011-02-091-6/+22
| | | | | | | | | | | | The current init_paths code will attempt to opendir() every single file it finds. This can obviously generated a huge number of syscalls with even a moderately small sysroot that will fail. Since the readdir() call provides the file type in the struct itself, use it. On my system, this prevents over 1000 syscalls from being made at every invocation of a target binary, and I only have a C library installed. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
* path.c fix warning with _FORTIFY_SOURCEKirill A. Shutemov2009-12-251-1/+4
| | | | | | | | | | | CC libuser/path.o cc1: 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 make[1]: *** [path.o] Error 1 Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* user: compile path.c only onceBlue Swirl2009-08-151-0/+162
Also merge bsd-user/path.c and linux-user/path.c. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
OpenPOWER on IntegriCloud