Gimp/libgimpbase
Jehan 47fbfc2f0e libgimpbase: do not assume PATH_MAX to be the actual max size of paths.
Even though it is set by Linux's limits.h and apparently by other OSes
too, it seems this macro is mostly bogus. On many systems, the actual
allowed max size of paths is much higher.
On Hurd, they don't even define the macro as there is no upper limit.
See MR !424.

This commit replaces two usages of PATH_MAX:
- readlink() by g_file_read_link(). I checked the GLib implementation
  and could confirm it will do the proper thing, which is progressively
  incrementing their buffer allocation in a loop until the buffer is big
  enough to contain the symbolic link contents. Hence no need to rely on
  a bogus macro which is not the actual max.
- fgets() by g_data_input_stream_read_line() which also dynamically
  allocates the returned buffer, and also properly removes the newline
  and adds a NUL byte (hence simpler code).

Additionally I loop through the lines of /proc/self/maps until I find
the first "r-xp" pathname. Indeed the current code was assuming that the
first line was always right. Yet on my OS at least, the first line was
GIMP executable with "r--p" permission, hence the test would fail. The
second line had the right permission. So let's assume that we want the
first executable path, looping through each line.
2021-03-20 18:52:40 +01:00
..
.gitignore libgimp*: add GI's .dirstamp to .gitigore 2019-08-03 19:50:17 +02:00
gimpbase-private.c Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpbase-private.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpbase.def Remove GimpInt16Array 2021-02-18 11:32:45 +00:00
gimpbase.h app, libgimpbase: move lots of GValue and GParamSpec types to libgimpbase 2019-07-26 15:54:33 +02:00
gimpbaseenums.c libgimpbase: rename and reorder the values of enum GimpSelectCriterion 2019-11-19 22:25:57 +01:00
gimpbaseenums.h Revert "Don't forget to include <glib-object.h>" 2020-05-21 22:39:10 +02:00
gimpbasetypes.c Fix various typos 2019-09-21 17:10:46 +00:00
gimpbasetypes.h Revert "Don't forget to include <glib-object.h>" 2020-05-21 22:39:10 +02:00
gimpchecks.c gir: More missing annotations 2020-05-08 16:57:45 +02:00
gimpchecks.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpcompatenums.c libgimpbase: remove almost all deprecated compat cruft 2018-05-20 21:06:29 +02:00
gimpcompatenums.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpcpuaccel.c Use "Returns:" to annotate return values 2019-08-03 07:53:47 +00:00
gimpcpuaccel.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpenv.c libgimpbase: fix memory leak in gimp_installation_directory(). 2021-01-19 12:04:53 +01:00
gimpenv.h libgimpbase: avoid double definition of exported variables on Windows 2020-06-10 18:29:23 +03:00
gimplimits.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpmemsize.c Use "Returns:" to annotate return values 2019-08-03 07:53:47 +00:00
gimpmemsize.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpmetadata.c libgimpbase: fix incorrect reading of iptc tags that appear more than once. 2020-11-19 23:25:27 +00:00
gimpmetadata.h libgimp: manage boolean "save-comment" properties automatically 2019-10-10 01:30:29 +02:00
gimpparamspecs.c Remove GimpInt16Array 2021-02-18 11:32:45 +00:00
gimpparamspecs.h Remove GimpInt16Array 2021-02-18 11:32:45 +00:00
gimpparasite.c libgimpbase: finally get rid of gimp_parasite_data() and… 2021-01-30 10:17:29 +01:00
gimpparasite.h libgimpbase: finally get rid of gimp_parasite_data() and… 2021-01-30 10:17:29 +01:00
gimpparasiteio.c libgimpbase: always allocate GimpPixPipeParams.placement, add docs 2019-07-24 02:09:49 +02:00
gimpparasiteio.h libgimpbase: remove obsolete members from struct GimpPixPipeParams 2019-07-24 02:22:47 +02:00
gimpprotocol.c app, libgimp: add boolean "export-comment" gimprc property 2019-10-10 00:48:28 +02:00
gimpprotocol.h app, libgimp: add boolean "export-comment" gimprc property 2019-10-10 00:48:28 +02:00
gimprectangle.c gir: Add more (out) tags when appropriate 2020-05-03 17:35:01 +02:00
gimprectangle.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpreloc.c libgimpbase: do not assume PATH_MAX to be the actual max size of paths. 2021-03-20 18:52:40 +01:00
gimpreloc.h
gimpsignal.c libgimpbase: some annotation and doc fixes 2019-08-07 23:32:15 +02:00
gimpsignal.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpunit.c libgimpbase: return 0 for GIMP_UNIT_PIXEL in gimp_unit_get_factor(). 2019-08-17 12:12:40 +02:00
gimpunit.h libgimpbase: make the GimpParamSpecUnit struct public 2019-07-30 15:03:03 +02:00
gimputils.c libgimp, libgimpbase, libgimpwidgets: new gimp_range_estimate_settings() 2020-11-25 01:34:36 +01:00
gimputils.h libgimp, libgimpbase, libgimpwidgets: new gimp_range_estimate_settings() 2020-11-25 01:34:36 +01:00
gimpvaluearray.c gimppdb: Allow more easy bindable API 2020-09-20 11:36:01 +00:00
gimpvaluearray.h gimppdb: Allow more easy bindable API 2020-09-20 11:36:01 +00:00
gimpversion.h.in Meson port. 2019-09-11 16:42:04 +02:00
gimpwin32-io.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpwire.c libgimpbase: add _gimp_wire_{read,write}_int64() 2018-11-19 16:51:23 -05:00
gimpwire.h libgimpbase: add _gimp_wire_{read,write}_int64() 2018-11-19 16:51:23 -05:00
Makefile.am libgimbase: merge gimpparam.h into gimpparamspecs.h 2019-07-31 10:16:21 +02:00
Makefile.gi libgimp*: move GObject Introspection into libgimp/. 2019-08-08 15:59:44 +02:00
meson.build Fix meson build on macos 2020-01-18 23:39:34 +01:00
test-cpu-accel.c