aboutsummaryrefslogtreecommitdiff
path: root/include/util
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-30 12:14:58 -0500
committerGitHub <noreply@github.com>2017-11-30 12:14:58 -0500
commit779cccf8b421b99031884f4d2886e788ac77a6eb (patch)
tree6a6278ee1b8ad6a38d16471d07202f67a776353c /include/util
parent5d7eb438d9dde68ce185daf977a0c27a1398bbc9 (diff)
parentcef6d7549131cfee7cd60ada0388a2766335c70a (diff)
Merge pull request #452 from moritz31/move-os-compatibility
Moved os-compatibility and added header
Diffstat (limited to 'include/util')
-rw-r--r--include/util/os-compatibility.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/util/os-compatibility.h b/include/util/os-compatibility.h
new file mode 100644
index 00000000..b2ec2db9
--- /dev/null
+++ b/include/util/os-compatibility.h
@@ -0,0 +1,12 @@
+#ifndef _WLR_UTIL_OS_COMPATIBILITY_H
+#define _WLR_UTIL_OS_COMPATIBILITY_H
+
+int os_fd_set_cloexec(int fd);
+
+int set_cloexec_or_close(int fd);
+
+int create_tmpfile_cloexec(char *tmpname);
+
+int os_create_anonymous_file(off_t size);
+
+#endif