summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* GSSubprocessContext: Avoid triggering -Wshadow for "environ"Colin Walters2013-06-211-2/+2
|
* fileutils: Add gs_file_realpath as wellJasper St. Pierre2013-06-192-0/+25
|
* fileutils: Add gs_system_get_relpathJasper St. Pierre2013-06-192-0/+77
| | | | This will properly emit "../../foo" now for files with different parents.
* fileutils: Add gs_file_enumerator_iterate()Colin Walters2013-06-142-0/+100
| | | | This is much more convenient to use correctly from C.
* Add glib-compat to Makefile to ensure it's distedColin Walters2013-05-281-0/+1
| | | | For people who still distcheck.
* Add missing #endifColin Walters2013-05-221-0/+1
|
* Add gsystem-glib-compat.h to support compilation with GLib 2.32Colin Walters2013-05-212-0/+54
| | | | For NetworkManager.
* gsystem-log: Add API to more conveniently print a message with just MESSAGE_IDColin Walters2013-05-202-0/+33
|
* Build with GLib 2.32 as wellColin Walters2013-05-178-0/+23
| | | | Needed by NetworkManager.
* GSSubprocess: Use #ifdef, not #if for GLIB_COMPILATIONColin Walters2013-05-161-1/+1
| | | | | It's not defined normally, and this triggers -Wundef which some projects make into an error.
* log: Squash warning when building without systemdColin Walters2013-05-091-0/+2
|
* gs_log_structured_print(): New APIColin Walters2013-05-092-0/+44
| | | | This is useful if anyone runs your binary directly.
* Include local allocation macros by defaultColin Walters2013-05-036-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 journalColin Walters2013-04-251-1/+4
| | | | Since we're wrapping it.
* gsystem-log.h: New structured logging APIColin Walters2013-04-234-0/+114
| | | | This is a wrapper for systemd-journal that's introspectable.
* fileutils: Initialize tryagain variable to pacify older GCC versionsColin Walters2013-04-231-1/+1
|
* shutil: rm_rf should delete symlinks to directories, not follow themColin Walters2013-03-011-8/+27
| | | | Like coreutils does.
* fileutils: Fix logic error caught by compilerColin Walters2013-02-261-2/+1
| | | | We want to actually propagate the "try again" bits...
* GSSubprocess: Correctly close pipefd in parentColin Walters2013-01-304-14/+21
| | | | Otherwise we leak...
* GSSubprocess: New API to allocate a separate pipe between parent and childColin Walters2013-01-264-10/+159
| | | | This is useful when reading structured data from the child.
* fileutils: Don't loop for EINTR on close()Colin Walters2013-01-251-3/+7
| | | | See https://bugzilla.gnome.org/show_bug.cgi?id=682819
* GSConsole: Fix infinite loopColin Walters2013-01-241-0/+1
|
* GSConsole: New API to access system consoleColin Walters2013-01-244-0/+503
| | | | At present, only implemented for Unix.
* Decouple gsystem-local-alloc from libgsystem.hColin Walters2013-01-233-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 Walters2013-01-155-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_journalColin Walters2013-01-135-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 Walters2013-01-081-1/+1
|
* fileutils: Consistently handle errno -> errorColin Walters2013-01-081-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 tooColin Walters2013-01-071-0/+7
| | | | It was documented to do so.
* fileutils: Extend linkcopy APIColin Walters2013-01-062-22/+116
| | | | | * Add gs_file_linkcopy() * Honor some GFileCopyFlags (namely G_FILE_COPY_OVERWRITE)
* fileutils: Add chown() wrapperColin Walters2013-01-062-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 variableColin Walters2013-01-061-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 Walters2013-01-061-2/+13
| | | | Just noticed via code inspection.
* fileutils: Handle cancellable in tmpfile codeColin Walters2013-01-041-0/+3
| | | | Just noticed with self-code review.
* fileutils: Add gs_file_linkcopy_sync_data()Colin Walters2013-01-042-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() invocationsColin Walters2013-01-041-13/+19
| | | | Naming is similar to systemd's internals.
* fileutils: Add gs_file_sync_data()Colin Walters2013-01-042-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 spawnColin Walters2012-12-212-0/+52
| | | | This ends up being used a lot in ostree.
* GSSubprocess: Add missing cancellable argumentColin Walters2012-12-202-20/+26
| | | | It's a GInitable.
* fileutils: Use quarks for cached pathsColin Walters2012-12-131-4/+12
| | | | Just faster.
* GSSubprocess: Fix annotationsColin Walters2012-12-112-3/+9
| | | | They should have been (none), not (full).
* subprocess: Annotate _set_environment()Colin Walters2012-12-101-0/+8
| | | | So we treat it as an array.
* fileutils: Add API to map a file readonly and to chmodColin Walters2012-12-102-0/+70
| | | | Will be used by gnome-ostree.
* Add API to create a directory with modeColin Walters2012-12-092-0/+34
| | | | Will be used by ostree.
* Introspection fixes, use --warn-errorColin Walters2012-12-084-6/+36
| | | | This way we get more of the API for bindings.
* GSSubprocess: Annotate _new_simple_argvColin Walters2012-12-071-0/+10
| | | | So introspection knows it's an array.
* localalloc: Rename macrosColin Walters2012-12-034-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 modeColin Walters2012-12-021-1/+1
| | | | Kind of an evil regression...
* fileutils: Add API to mmap() a file using O_NOATIMEColin Walters2012-12-022-0/+46
| | | | This is similar to what git does.
* Import GSubprocess as GSSubprocessColin Walters2012-12-017-0/+1483
| | | | Since it's stalled getting into GLib, let's import it here.