Skip to content
Snippets Groups Projects
Commit d8a3d3b8 authored by Colin Walters's avatar Colin Walters
Browse files

README.md: Add some porting bits

parent 08d1339f
Branches
Tags
No related merge requests found
...@@ -2,3 +2,17 @@ libglnx is the successor to libgsystem: https://git.gnome.org/browse/libgsystem ...@@ -2,3 +2,17 @@ libglnx is the successor to libgsystem: https://git.gnome.org/browse/libgsystem
It is for modules which depend on both GLib and Linux, intended to be It is for modules which depend on both GLib and Linux, intended to be
used as a git submodule. used as a git submodule.
Porting from libgsystem
-----------------------
For all of the filesystem access code, libglnx exposes only
fd-relative API, not `GFile*`. It does use `GCancellable` where
applicable.
For local allocation macros, you should start using the `g_auto`
macros from GLib. A backport is included in libglnx. There are a few
APIs not defined in GLib yet, such as `glnx_fd_close`.
`gs_transfer_out_value` is replaced by `g_steal_pointer`.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment