diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-30 12:14:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-30 12:14:58 -0500 |
commit | 779cccf8b421b99031884f4d2886e788ac77a6eb (patch) | |
tree | 6a6278ee1b8ad6a38d16471d07202f67a776353c /include/util | |
parent | 5d7eb438d9dde68ce185daf977a0c27a1398bbc9 (diff) | |
parent | cef6d7549131cfee7cd60ada0388a2766335c70a (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.h | 12 |
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 |