Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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) | |||||
* | fileutils: Add chown() wrapper | Colin Walters | 2013-01-06 | 2 | -5/+63 | |
| | | | | | And while we're here, fix up chmod() wrapper to handle EINTR, and not prefix the error message (since the others don't). | |||||
* | fileutils: Add LIBGSYSTEM_ENABLE_GUESTFS_FUSE_WORKAROUND environment variable | Colin Walters | 2013-01-06 | 1 | -1/+5 | |
| | | | | | This ugly hack is necessary because for some reason guestmount/fuse gives me ENOENT, when it should be returning EXDEV. | |||||
* | fileutils: Handle EINTR around open() | Colin Walters | 2013-01-06 | 1 | -2/+13 | |
| | | | | Just noticed via code inspection. | |||||
* | fileutils: Handle cancellable in tmpfile code | Colin Walters | 2013-01-04 | 1 | -0/+3 | |
| | | | | Just noticed with self-code review. | |||||
* | fileutils: Add gs_file_linkcopy_sync_data() | Colin Walters | 2013-01-04 | 2 | -0/+124 | |
| | | | | | It often occurs in OSTree that I generate a temporary file, and then want to move it into place, ensuring it's fdatasync()'d. | |||||
* | fileutils: Code cleanup for close() invocations | Colin Walters | 2013-01-04 | 1 | -13/+19 | |
| | | | | Naming is similar to systemd's internals. | |||||
* | fileutils: Add gs_file_sync_data() | Colin Walters | 2013-01-04 | 2 | -0/+69 | |
| | | | | | It often occurs that I want to ensure file data is on disk so that updates can be atomic. | |||||
* | GSSubprocess: Add new helper API to synchronously spawn | Colin Walters | 2012-12-21 | 2 | -0/+52 | |
| | | | | This ends up being used a lot in ostree. | |||||
* | GSSubprocess: Add missing cancellable argument | Colin Walters | 2012-12-20 | 2 | -20/+26 | |
| | | | | It's a GInitable. | |||||
* | fileutils: Use quarks for cached paths | Colin Walters | 2012-12-13 | 1 | -4/+12 | |
| | | | | Just faster. | |||||
* | GSSubprocess: Fix annotations | Colin Walters | 2012-12-11 | 2 | -3/+9 | |
| | | | | They should have been (none), not (full). | |||||
* | subprocess: Annotate _set_environment() | Colin Walters | 2012-12-10 | 1 | -0/+8 | |
| | | | | So we treat it as an array. | |||||
* | fileutils: Add API to map a file readonly and to chmod | Colin Walters | 2012-12-10 | 2 | -0/+70 | |
| | | | | Will be used by gnome-ostree. | |||||
* | Add API to create a directory with mode | Colin Walters | 2012-12-09 | 2 | -0/+34 | |
| | | | | Will be used by ostree. | |||||
* | Introspection fixes, use --warn-error | Colin Walters | 2012-12-08 | 4 | -6/+36 | |
| | | | | This way we get more of the API for bindings. | |||||
* | GSSubprocess: Annotate _new_simple_argv | Colin Walters | 2012-12-07 | 1 | -0/+10 | |
| | | | | So introspection knows it's an array. | |||||
* | localalloc: Rename macros | Colin Walters | 2012-12-03 | 4 | -25/+26 | |
| | | | | | | | These are a bit clearer, if more verbose. For example, it's now more obvious with "gs_unref_object" that an unref is going to happen. Based on discussion with Pavel Simerda <psimerda@redhat.com>. | |||||
* | shutil: Ensure we create directories with correct mode | Colin Walters | 2012-12-02 | 1 | -1/+1 | |
| | | | | Kind of an evil regression... | |||||
* | fileutils: Add API to mmap() a file using O_NOATIME | Colin Walters | 2012-12-02 | 2 | -0/+46 | |
| | | | | This is similar to what git does. | |||||
* | Import GSubprocess as GSSubprocess | Colin Walters | 2012-12-01 | 7 | -0/+1483 | |
| | | | | Since it's stalled getting into GLib, let's import it here. |