- Jun 03, 2020
-
-
Simon McVittie authored
README: update link to libgsystem See merge request GNOME/libglnx!15
-
- Mar 15, 2020
-
-
Simon McVittie authored
_GLNX_TEST_SCOPED_TEMP_DIR: Fix memory and fd leak See merge request GNOME/libglnx!14
-
Simon McVittie authored
_GLNX_TEST_SCOPED_TEMP_DIR: Mark variable as G_GNUC_UNUSED See merge request GNOME/libglnx!13
-
- Dec 02, 2019
-
-
Will Thompson authored
I was curious.
-
- Nov 11, 2019
-
-
Simon McVittie authored
This doesn't really matter, since it only happens when our process is about to exit anyway, but it makes it easier to use AddressSanitizer and similar tools. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Otherwise, clang diagnoses it as unused. It is - deliberately - only allocated and cleaned up, with no other use. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Build successfully on GLib 2.32 See merge request GNOME/libglnx!7
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
If you're building on a really old GLib, you might not have GTask, GSubprocess or g_markup_parse_context_unref(), among others. This gets libglnx compiling (and apparently working) on GLib versions as old as 2.32. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This will be necessary if targeting GLib versions older than 2.34, such as GLib 2.32 in Ubuntu 12.04 and the Steam Runtime. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Nov 04, 2019
-
-
Colin Walters authored
build-sys: Add libglnx-testlib.c to Automake See merge request GNOME/libglnx!12
-
Colin Walters authored
It was introduced in a previous commit but only added to `meson.build`.
-
Colin Walters authored
fdio: Add glnx_tmpfile_reopen_rdonly() See merge request GNOME/libglnx!11
-
Colin Walters authored
For fs-verity.
-
- Oct 11, 2019
-
-
Colin Walters authored
Add Meson build system and Gitlab-CI See merge request GNOME/libglnx!8
-
Colin Walters authored
Add glnx_open_anonymous_tmpfile_full() allowing you to specify the directory See merge request GNOME/libglnx!10
-
- Oct 09, 2019
-
-
Alexander Larsson authored
This is useful if you need the file to be on a particular filesystem. In particular, flatpak wants this to make tempfiles on /tmp for things we need to write during flatpak run, such as the libseccomp output fd. We've had "flatpak run" stop working in low disk situations without this, so its nice to be able to fix it.
-
- Sep 17, 2019
-
-
Colin Walters authored
macros: Add TEMP_FAILURE_RETRY for musl See merge request GNOME/libglnx!9
-
- Sep 09, 2019
-
-
Alex Kiernan authored
TEMP_FAILURE_RETRY is glibc specific, add a definition for musl. See https://github.com/ostreedev/ostree/issues/731 Signed-off-by:
Alex Kiernan <alex.kiernan@gmail.com>
-
- May 13, 2019
-
-
Jonathan Lebon authored
missing: Remove unused <uchar.h> See merge request GNOME/libglnx!6
-
Simon McVittie authored
As suggested by @jlebon on libglnx!8. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- May 10, 2019
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This matches what Autotools would do, and what our header is expecting. It silences -Wundef. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- May 02, 2019
-
-
This only uses Meson because it's not straightforward to do a standalone build with the Autotools goop.
-
Simon McVittie authored
The temporary directory will be deleted on success, but will remain intact on failure. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
-
Simon McVittie authored
This doesn't exist on some very old platforms. In the original file in systemd, it was here for char32_t and char16_t, which we don't use. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Mar 28, 2019
-
-
Will Thompson authored
-
- Dec 07, 2018
-
-
Colin Walters authored
shutil: Prefix error with path in rm_rf() See merge request GNOME/libglnx!4
-
Colin Walters authored
First, let's ensure the filename is prefixed consistently. Second, add the entrypoint as a prefix when recursing. This is best practice to help debugging. Motivated by https://discussion.fedoraproject.org/t/boot-partition-of-silverblue-is-without-space/771/9
-
- Nov 30, 2018
-
-
Colin Walters authored
-
Colin Walters authored
Fix docs for glnx_file_replace_contents() See merge request GNOME/libglnx!3
-
Owen W. Taylor authored
The docs for `glnx_file_replace_contents[_with_perms]` say that the default mode is 0666 - umask, but it's actually 0644. Because there's no thread-safe way of finding out the current umask without grubbing around in /proc/self/status, simply make the docs reflect reality.
-
- Jul 13, 2018
-
-
Colin Walters authored
libglnx.m4: Include stdio.h for renameat2 See merge request GNOME/libglnx!2
-
- Jul 11, 2018
-
-
Colin Walters authored
glibc added it upstream: https://sourceware.org/git/?p=glibc.git;a=commit;h=d6da5cb6a8e0e8a9ce92b7d951a254cf325248d7 But we need the right header. Ref: https://github.com/flatpak/flatpak/issues/1890
-
- May 29, 2018
-
-
Philip Withnall authored
Add g_autoptr support for GAsyncResult,GMount,GVolumeMonitor See merge request GNOME/libglnx!1
-
Matthew Leeds authored
-
- May 08, 2018
-
-
Colin Walters authored
This was inherited from some other code; perhaps the idea was to ensure the console is in a consistent state before starting a progress bar, but it causes extra newlines which is distracting.
-
- May 04, 2018
-
-
Jonathan Lebon authored
In glibc 2.27, a wrapper for `copy_file_range` was added[1]. The function is now always defined, either using a userspace fallback or just returning `ENOSYS` if the kernel doesn't support it. This throws off our preprocessor conditionals. Work around this by just renaming our implementation differently. This is similar to what systemd did[2]. Hit this when trying to build on F28, which rebased to glibc 2.27. [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f [2] https://github.com/systemd/systemd/commit/5187dd2c403caf92d09f3491e41f1ceb3f10491f
-
- Feb 19, 2018
-
-
Aurelien Jarno authored
glibc 2.27 added support for memfd_create. Unfortunately flatpak-builder, or rather the included libglnx library, also has such a function to wrap the corresponding syscall. It correctly tries to detect it in the configure script to disabled the wrapper in case glibc provides it. However it doesn't work due to a missing include. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890722
-