Commit Graph

20 Commits

Author SHA1 Message Date
Colin Walters
175502e5be Add glnx_basename()
We have to wrap the glibc version to ensure we get the right version,
otherwise depending on the variance of includes we may end up crashing
if we get the POSIX version.
2015-03-05 09:02:48 -05:00
Colin Walters
a11b2eb20a Import libcontainer code from rpm-ostree
Now that this module is Linux specific, we can more cleanly depend on
it here.
2015-03-04 18:29:14 -05:00
Colin Walters
162d1f6b58 fdio: Add glnx_file_copy_at()
This will allow deleting some code from OSTree for the config file
merging.  We're reusing some code from systemd, which a nice modern
clean codebase, and among other things this gets us BTRFS reflinking
(if available) again.
2015-03-03 11:30:41 -05:00
Colin Walters
9a7277889a dfditer: Unset initialized variable when cleared
This allows reusing an iterator struct.
2015-03-03 08:43:15 -05:00
Giuseppe Scrivano
39c6393876 Makefile-libglnx.am: use README.md not README
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-03-02 10:05:37 -05:00
Colin Walters
37082ed867 backports: g_autofree 2015-02-25 21:44:54 -05:00
Colin Walters
1288bd8508 xattrs: Migrate some code from ostree here
This also uses GBytes and avoids malloc where possible.
2015-02-20 13:44:29 -05:00
Colin Walters
1ebfefa565 fdio: New APIs to read/write on fds, fd-relative
We don't have this really in GLib, unfortunately.  We do want
GCancellable, but we also want to operate on raw fds where possible.

The "read a file and validate as UTF-8" is a common use case of mine,
and this combines that with openat().
2015-02-20 12:17:04 -05:00
Colin Walters
08d68d16cc Add cleanups for array types 2015-02-19 17:53:46 -05:00
Colin Walters
d469ad2a9c Include autocleanups - it has the definitions which we want 2015-02-19 15:35:35 -05:00
Colin Walters
ffac03f49c .gitignore: New file
This comes into play with subdir-objects.
2015-02-19 15:35:35 -05:00
Matthew Barnes
fa43744c05 Fix includes when relying on backported g_autoptr() 2015-02-18 16:45:45 -05:00
Colin Walters
64936b6700 Import console from rpm-ostree
This contains some basic progress bar drawing code for now.
2015-02-17 16:52:49 -05:00
Colin Walters
70b070b5ea dirfd: Fix two typos 2015-02-17 16:03:36 -05:00
Colin Walters
0885d6735a dirfd: Add some gtk-doc 2015-02-15 17:49:58 -05:00
Colin Walters
a90e1c3423 Import xattr setting code from libgsystem 2015-02-15 17:36:32 -05:00
Colin Walters
f5399c8348 Import xattr reading code from libgsystem 2015-02-15 17:26:47 -05:00
Colin Walters
ba67dd39a7 Update README 2015-02-15 11:57:15 -05:00
Colin Walters
8e9a171ec4 Import directory iteration, errno handling, and shutil from libgsystem 2015-02-15 11:53:34 -05:00
Colin Walters
5ac3f4a119 Initial commit; backport of GLib autoptr code
This module is a new successor to libgsystem.  It currently contains a
backport of the GLib cleanup macros, but soon more Linux-specific code
will be added.
2015-02-14 13:41:51 -05:00