os: move os_move_fd() out of public API

This function isn't used by any driver and doesn't seem to be useful for them,
thus move it out of the public module API, in order to tidy it up a bit.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1366>
(cherry picked from commit 15d3c1a6f1)
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-02-22 14:58:41 +01:00
committed by Alan Coopersmith
parent 0d3481defe
commit bb0c68997a
4 changed files with 12 additions and 7 deletions

View File

@@ -36,6 +36,8 @@
#include <string.h>
#include <stdlib.h>
#include "os/osdep.h"
#include "fb.h"
#include "pixmapstr.h"

View File

@@ -708,9 +708,6 @@ LogPrintMarkers(void);
extern _X_EXPORT void
xorg_backtrace(void);
extern _X_EXPORT int
os_move_fd(int fd);
#include <signal.h>
#if defined(WIN32) && !defined(__CYGWIN__)

View File

@@ -24,16 +24,19 @@
#include <dix-config.h>
#endif
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <X11/xshmfence.h>
#include "os/osdep.h"
#include "scrnintstr.h"
#include "misync.h"
#include "misyncstr.h"
#include "misyncshm.h"
#include "misyncfd.h"
#include "pixmapstr.h"
#include <sys/mman.h>
#include <unistd.h>
#include <fcntl.h>
#include <X11/xshmfence.h>
static DevPrivateKeyRec syncShmFencePrivateKey;

View File

@@ -221,4 +221,7 @@ static inline void uname(struct utsname *uts) {
void AutoResetServer(int sig);
/* clone fd so it gets out of our select mask */
int os_move_fd(int fd);
#endif /* _OSDEP_H_ */