mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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
This commit is contained in:
parent
5d7eb438d9
commit
cef6d75491
6 changed files with 21 additions and 14 deletions
12
include/util/os-compatibility.h
Normal file
12
include/util/os-compatibility.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue