From 346ec21c4c9007e98c84b67e4f5e4b9a67bbbce7 Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 26 Oct 2018 18:38:23 +0200 Subject: util: use shm_open for in-memory files shm_open is a POSIX function creating an in-memory file. Using it simplifies the code and removes the dependency on XDG_RUNTIME_DIR. The only downside is that we need to generate a random name for the shm file. --- include/util/os-compatibility.h | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 include/util/os-compatibility.h (limited to 'include/util/os-compatibility.h') diff --git a/include/util/os-compatibility.h b/include/util/os-compatibility.h deleted file mode 100644 index 2038025e..00000000 --- a/include/util/os-compatibility.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef UTIL_OS_COMPATIBILITY_H -#define 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 -- cgit v1.2.3