glib-unix: add function to ensure an fd is sealed
authorDavid King <dking@redhat.com>
Tue, 2 Dec 2014 18:16:47 +0000 (13:16 -0500)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Fri, 10 Jul 2015 09:47:42 +0000 (11:47 +0200)
commit601c4510b88edf52f9d7e57d228840c14576bf43
tree35350dcc2ef3d1c60800b204f56b7081d6abf11e
parente61d3441fb707b032251846c3f6e853d99b69945
glib-unix: add function to ensure an fd is sealed

Add a function that checks if a fd is sealed and, if it's not, seals it.

On Linux this is more or less an operation on memfd.  On other systems,
it currently always returns FALSE.
docs/reference/glib/glib-sections.txt
glib/glib-unix.c
glib/glib-unix.h