bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

progreloc: improve platform specific code


From: Bruno Haible
Subject: progreloc: improve platform specific code
Date: Tue, 19 Feb 2019 21:49:20 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

This set of patches improve the platform specific code in progreloc.c.
Most BSD systems and Solaris nowadays have a way to retrieve the name
of the current executable, in a way similar to /proc/self/exe on Linux.


2019-02-19  Bruno Haible  <address@hidden>

        progreloc: Simplify code for Android.
        * lib/progreloc.c (executable_fd): Don't define on Android.
        (maybe_executable, find_executable): Don't use executable_fd on Android.

2019-02-19  Bruno Haible  <address@hidden>

        progreloc: Speed up executable lookup on various platforms.
        * lib/progreloc.c: Include <errno.h>.
        (safe_read, full_read): New functions.
        (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
        prefer the information from the /proc file system to a PATH search.

Attachment: 0001-progreloc-Simplify-code-for-Android.patch
Description: Text Data

Attachment: 0002-progreloc-Speed-up-executable-lookup-on-various-plat.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]