summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-02-23 20:33:52 +0100
committerMarge Bot <emma+marge@anholt.net>2024-03-09 17:18:46 +0000
commit30b403b0f01a06a2daadde809d7a2a615d52e4d3 (patch)
tree717fe2815a7f62289ec72d970a9655a3e9b59745 /include
parent15d3c1a6f1266c139f56f7c674c8f39a8227328b (diff)
os: unexport Fopen(), Fclose(), Popen(), Pclose(), System()
These functions are just used for reading auth file or calling xkbcomp while dropping privileges, in case the Xserver is started as unprivileged user with suid-root. Thus, shouldn't be used (and aren't used) by drivers. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1370>
Diffstat (limited to 'include')
-rw-r--r--include/os.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/os.h b/include/os.h
index 84770c535..24ab2ba07 100644
--- a/include/os.h
+++ b/include/os.h
@@ -327,27 +327,6 @@ extern _X_EXPORT void
OsAbort(void)
_X_NORETURN;
-#if !defined(WIN32)
-extern _X_EXPORT void *
-Popen(const char *, const char *);
-extern _X_EXPORT int
-Pclose(void *);
-extern _X_EXPORT void *
-Fopen(const char *, const char *);
-extern _X_EXPORT int
-Fclose(void *);
-#else
-
-extern const char *
-Win32TempDir(void);
-
-extern int
-System(const char *cmdline);
-
-#define Fopen(a,b) fopen(a,b)
-#define Fclose(a) fclose(a)
-#endif
-
extern _X_EXPORT Bool
PrivsElevated(void);