Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | localalloc: Fix extra indirection on gs_strfrev implementation | Colin Walters | 2013-08-29 | 1 | -10/+10 |
| | | | | | | This was tripping a compiler warning in NetworkManager; the right way to fix it is actually to be less magical in the macro and lose our synthesized *. Instead add it explicitly for each type. | ||||
* | localalloc: Add gs_strfreev | Colin Walters | 2013-08-29 | 2 | -0/+14 |
| | | | | NetworkManager uses strvs quite a lot. | ||||
* | fileutil: Fix -Wshadow warning with "index" | Colin Walters | 2013-08-26 | 1 | -4/+4 |
| | | | | Reported-by: Pavel Šimerda <psimerda@redhat.com> | ||||
* | gsystem-log: Correctly suppress systemd journal code location | Colin Walters | 2013-08-20 | 1 | -2/+1 |
| | | | | It's not useful since we're wrapping the API. | ||||
* | gsystem-log: Fix double-logging on non-systemd systems | Colin Walters | 2013-08-16 | 1 | -0/+2 |
| | | | | I was getting duplicated output on RHEL6. | ||||
* | fileutils: Add API to fstat() a stream | Colin Walters | 2013-08-14 | 2 | -0/+47 |
| | | | | | | | | | Will be used by ostree. Since libgsystem will return raw GUnix{Input,Output}Stream, we need a way to fstat() them. Maybe we should also have an API to synthesize a #GFileInfo, but that's hard without duplicating all the complex stuff in GIO. https://bugzilla.gnome.org/show_bug.cgi?id=706031 | ||||
* | localalloc: Add gs_unref_bytes() | Colin Walters | 2013-08-14 | 2 | -0/+16 |
| | | | | Since I'm using these more now in ostree, and let's be comprehensive. | ||||
* | localalloc: Fix variant builder unref | Colin Walters | 2013-08-14 | 2 | -5/+5 |
| | | | | | | I will test my code before pushing. I will test my code before pushing. I will test my code before pushing. | ||||
* | local-alloc: Fix previous commit | Colin Walters | 2013-08-14 | 1 | -1/+1 |
| | |||||
* | localalloc: Add cleanup functions for checksum and variant builders | Colin Walters | 2013-08-14 | 2 | -0/+31 |
| | | | | Used in ostree. | ||||
* | fileutils: Fix fd leak | Colin Walters | 2013-08-07 | 1 | -2/+3 |
| | |||||
* | fileutil: Add new API to open a temporary file in a particular directory | Colin Walters | 2013-08-06 | 2 | -0/+77 |
| | | | | This is useful for ostree to write to repo/tmp. | ||||
* | localalloc: Add gs_unref_array() | Colin Walters | 2013-08-02 | 2 | -0/+17 |
| | | | | Requested by NetworkManager team. | ||||
* | gsystem-log: Add public API to determine whether stdout is journal | Colin Walters | 2013-07-24 | 2 | -15/+29 |
| | | | | | Will be used by gnome-desktop-testing to determine whether or not it should set up the journal for its children. | ||||
* | fileutils: Add gs_file_create_with_uidgid() | Colin Walters | 2013-07-18 | 2 | -0/+84 |
| | | | | | | | | If the provided mode includes S_ISUID or S_ISGID, we will successfully invoke fchmod(), but then a subsequent chown() will undo any setuid bits, even if we're just calling chown for the already extant uid. This API can reliably create a file with the provided mode and owner. | ||||
* | fileutils: Override umask for gs_file_create() | Colin Walters | 2013-07-17 | 1 | -0/+6 |
| | | | | | | | | | The entire point of this API is to atomically create a file with the given mode; we need to fchmod() in order to get exactly what is specified. This fixes gnome-ostree which uses ostree to check out trees; we were losing the g-w bit on checked out files. | ||||
* | fileutils: Handles return value of realpath in case of errors | Alberto Ruiz | 2013-07-18 | 1 | -2/+8 |
| | | | | Signed-off-by: Alberto Ruiz <aruiz@gnome.org> | ||||
* | fileutil: Make API to generate temporary name public | Colin Walters | 2013-07-16 | 2 | -4/+16 |
| | | | | It's used by ostree core too. | ||||
* | gs_file_create: New API | Colin Walters | 2013-07-16 | 2 | -0/+45 |
| | | | | | | | This allows ostree core to drop an invocation of chmod() after creating the file. See https://bugzilla.gnome.org/show_bug.cgi?id=699959 | ||||
* | Add gs_transfer_out_value() macro | Colin Walters | 2013-07-05 | 1 | -0/+8 |
| | | | | A simple macro to help with out parameters. | ||||
* | GSSubprocessContext: Avoid triggering -Wshadow for "environ" | Colin Walters | 2013-06-21 | 1 | -2/+2 |
| | |||||
* | fileutils: Add gs_file_realpath as well | Jasper St. Pierre | 2013-06-19 | 2 | -0/+25 |
| | |||||
* | fileutils: Add gs_system_get_relpath | Jasper St. Pierre | 2013-06-19 | 2 | -0/+77 |
| | | | | This will properly emit "../../foo" now for files with different parents. | ||||
* | fileutils: Add gs_file_enumerator_iterate() | Colin Walters | 2013-06-14 | 2 | -0/+100 |
| | | | | This is much more convenient to use correctly from C. | ||||
* | Add glib-compat to Makefile to ensure it's disted | Colin Walters | 2013-05-28 | 1 | -0/+1 |
| | | | | For people who still distcheck. | ||||
* | Add missing #endif | Colin Walters | 2013-05-22 | 1 | -0/+1 |
| | |||||
* | Add gsystem-glib-compat.h to support compilation with GLib 2.32 | Colin Walters | 2013-05-21 | 2 | -0/+54 |
| | | | | For NetworkManager. | ||||
* | gsystem-log: Add API to more conveniently print a message with just MESSAGE_ID | Colin Walters | 2013-05-20 | 2 | -0/+33 |
| | |||||
* | Build with GLib 2.32 as well | Colin Walters | 2013-05-17 | 8 | -0/+23 |
| | | | | Needed by NetworkManager. | ||||
* | GSSubprocess: Use #ifdef, not #if for GLIB_COMPILATION | Colin Walters | 2013-05-16 | 1 | -1/+1 |
| | | | | | It's not defined normally, and this triggers -Wundef which some projects make into an error. | ||||
* | log: Squash warning when building without systemd | Colin Walters | 2013-05-09 | 1 | -0/+2 |
| | |||||
* | gs_log_structured_print(): New API | Colin Walters | 2013-05-09 | 2 | -0/+44 |
| | | | | This is useful if anyone runs your binary directly. | ||||
* | Include local allocation macros by default | Colin Walters | 2013-05-03 | 6 | -1/+9 |
| | | | | | | | ...but still avoid using them in the other parts of libgsystem itself. The reason for this is that at least some of the code ideally would go upstream to glib where we can't use them, and downporting is so tedious. | ||||
* | gsystem-log: Suppress code location from journal | Colin Walters | 2013-04-25 | 1 | -1/+4 |
| | | | | Since we're wrapping it. | ||||
* | gsystem-log.h: New structured logging API | Colin Walters | 2013-04-23 | 4 | -0/+114 |
| | | | | This is a wrapper for systemd-journal that's introspectable. | ||||
* | fileutils: Initialize tryagain variable to pacify older GCC versions | Colin Walters | 2013-04-23 | 1 | -1/+1 |
| | |||||
* | shutil: rm_rf should delete symlinks to directories, not follow them | Colin Walters | 2013-03-01 | 1 | -8/+27 |
| | | | | Like coreutils does. | ||||
* | fileutils: Fix logic error caught by compiler | Colin Walters | 2013-02-26 | 1 | -2/+1 |
| | | | | We want to actually propagate the "try again" bits... | ||||
* | GSSubprocess: Correctly close pipefd in parent | Colin Walters | 2013-01-30 | 4 | -14/+21 |
| | | | | Otherwise we leak... | ||||
* | GSSubprocess: New API to allocate a separate pipe between parent and child | Colin Walters | 2013-01-26 | 4 | -10/+159 |
| | | | | This is useful when reading structured data from the child. | ||||
* | fileutils: Don't loop for EINTR on close() | Colin Walters | 2013-01-25 | 1 | -3/+7 |
| | | | | See https://bugzilla.gnome.org/show_bug.cgi?id=682819 | ||||
* | GSConsole: Fix infinite loop | Colin Walters | 2013-01-24 | 1 | -0/+1 |
| | |||||
* | GSConsole: New API to access system console | Colin Walters | 2013-01-24 | 4 | -0/+503 |
| | | | | At present, only implemented for Unix. | ||||
* | Decouple gsystem-local-alloc from libgsystem.h | Colin Walters | 2013-01-23 | 3 | -106/+179 |
| | | | | | I'd like some of the code here to possibly make its way into GLib. In order to accomplish that, we can't use the local allocation macros =/ | ||||
* | Revert "gsystemlog.la: New library which wraps sd_journal" | Colin Walters | 2013-01-15 | 5 | -241/+0 |
| | | | | | | | | This reverts commit 7229abafe3f8fac571cc1032dbfa16fce8954ade. After some discussion here: https://bugzilla.gnome.org/show_bug.cgi?id=691785 and in person, Ray and I decided to not have a generic systemd/syslog wrapper here. | ||||
* | gsystemlog.la: New library which wraps sd_journal | Colin Walters | 2013-01-13 | 5 | -0/+241 |
| | | | | | | An experimental API which allows logging to systemd. It's is simpler for the case where you just want a MESSAGE_ID+MESSAGE+PRIORITY (very common), and also can fallback to syslog if systemd isn't available. | ||||
* | fileutils: Fix incorrect parameter to lstat() | Colin Walters | 2013-01-08 | 1 | -1/+1 |
| | |||||
* | fileutils: Consistently handle errno -> error | Colin Walters | 2013-01-08 | 1 | -33/+19 |
| | | | | | We expect callers to prefix the errors with any relevant information on their own, for now. | ||||
* | shutil: Allow gs_shutil_rm_rf() to delete files too | Colin Walters | 2013-01-07 | 1 | -0/+7 |
| | | | | It was documented to do so. | ||||
* | fileutils: Extend linkcopy API | Colin Walters | 2013-01-06 | 2 | -22/+116 |
| | | | | | * Add gs_file_linkcopy() * Honor some GFileCopyFlags (namely G_FILE_COPY_OVERWRITE) |