aboutsummaryrefslogtreecommitdiff
path: root/include/util
diff options
context:
space:
mode:
authorMoritz <moritz.weichert@t-online.de>2017-11-30 15:00:36 +0100
committerMoritz <moritz.weichert@t-online.de>2017-11-30 18:01:13 +0100
commitcef6d7549131cfee7cd60ada0388a2766335c70a (patch)
tree6a6278ee1b8ad6a38d16471d07202f67a776353c /include/util
parent5d7eb438d9dde68ce185daf977a0c27a1398bbc9 (diff)
Moved os-compatibility and added header
* Moved os-compatibility.c to util * Added header under util * Removed static since it isn't needed (i think so) * Adjusted meson.build to include lib_wlr Improved some codestyle * Added guard to os-compatibility.h * Fixed typo in include statment Adjusted Guard * Changed guard to _WLR_UTIL_OS_COMPATIBILITY
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