summaryrefslogtreecommitdiff
path: root/glnx-fdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'glnx-fdio.h')
-rw-r--r--glnx-fdio.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/glnx-fdio.h b/glnx-fdio.h
index 3ca1a66..982545a 100644
--- a/glnx-fdio.h
+++ b/glnx-fdio.h
@@ -46,6 +46,29 @@ const char *glnx_basename (const char *path)
return (basename) (path);
}
+gboolean
+glnx_open_tmpfile_linkable_at (int dfd,
+ const char *subpath,
+ int flags,
+ int *out_fd,
+ char **out_path,
+ GError **error);
+
+typedef enum {
+ GLNX_LINK_TMPFILE_REPLACE,
+ GLNX_LINK_TMPFILE_NOREPLACE,
+ GLNX_LINK_TMPFILE_NOREPLACE_IGNORE_EXIST
+} GLnxLinkTmpfileReplaceMode;
+
+gboolean
+glnx_link_tmpfile_at (int dfd,
+ GLnxLinkTmpfileReplaceMode flags,
+ int fd,
+ const char *tmpfile_path,
+ int target_dfd,
+ const char *target,
+ GError **error);
+
GBytes *
glnx_fd_readall_bytes (int fd,
GCancellable *cancellable,