os: unexport Os*() functions

These aren't called (and suited for being called) by drivers,
thus drop them from the public module API.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1381>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-23 17:26:57 +01:00
parent 3aa62ca6f0
commit be4c8444eb
29 changed files with 70 additions and 47 deletions

View File

@ -46,6 +46,7 @@ in this Software without prior written authorization from The Open Group.
#include "os/auth.h"
#include "os/busfault.h"
#include "os/osdep.h"
#include "misc.h"
#include "os.h"

View File

@ -46,6 +46,7 @@
#endif
#include "dix/dix_priv.h"
#include "os/osdep.h"
#include "compint.h"
#include "compositeext_priv.h"

View File

@ -90,6 +90,7 @@ Equipment Corporation.
#include "os/audit.h"
#include "os/auth.h"
#include "os/cmdline.h"
#include "os/osdep.h"
#include "scrnintstr.h"
#include "misc.h"

View File

@ -30,8 +30,9 @@
#include <xcb/xcb_keysyms.h>
#include <X11/keysym.h>
#include "ephyr.h"
#include "os/osdep.h"
#include "ephyr.h"
#include "inputstr.h"
#include "scrnintstr.h"
#include "ephyrlog.h"

View File

@ -28,6 +28,7 @@
#endif
#include "os/cmdline.h"
#include "os/osdep.h"
#include "ephyr.h"
#include "ephyrlog.h"

View File

@ -27,6 +27,8 @@
#include "dix/screenint_priv.h"
#include "os/cmdline.h"
#include "os/osdep.h"
#include "kdrive.h"
#include <mivalidate.h>
#include <dixstruct.h>

View File

@ -40,6 +40,7 @@ from The Open Group.
#include "dix/screenint_priv.h"
#include "os/cmdline.h"
#include "os/osdep.h"
#include "scrnintstr.h"
#include "servermd.h"

View File

@ -29,6 +29,8 @@
#include <errno.h>
#include "os/osdep.h"
#include "xf86.h"
#include "xf86Config.h"
#include "xf86_OSlib.h"

View File

@ -50,6 +50,7 @@
#include "dix/screenint_priv.h"
#include "os/cmdline.h"
#include "os/osdep.h"
#include "input.h"
#include "servermd.h"
@ -58,7 +59,6 @@
#include "mi.h"
#include "dbus-core.h"
#include "systemd-logind.h"
#include "loaderProcs.h"
#define XF86_OS_PRIVS

View File

@ -14,6 +14,8 @@
#include <xorg-config.h>
#endif
#include "os/osdep.h"
#include "misc.h"
#include "xf86.h"
#include "xf86_OSproc.h"

View File

@ -21,8 +21,10 @@
#define PRINT_PORT 0
#include <unistd.h>
#include <X11/Xos.h>
#include "os/osdep.h"
#include "xf86.h"
#include "xf86_OSproc.h"
#include "compiler.h"

View File

@ -42,6 +42,8 @@
#include <stdlib.h>
#include <errno.h>
#include "os/osdep.h"
static Bool KeepTty = FALSE;
#ifdef PCCONS_SUPPORT

View File

@ -32,6 +32,7 @@
#include <X11/Xmd.h>
#include "os/cmdline.h"
#include "os/osdep.h"
#include "compiler.h"
#include "linux.h"

View File

@ -27,6 +27,8 @@
#include <X11/X.h>
#include "os/osdep.h"
#include "xf86.h"
#include "xf86Priv.h"
#include "xf86_OSlib.h"

View File

@ -37,6 +37,8 @@
#include <sys/kd.h>
#endif
#include "os/osdep.h"
/*
* Applications see VT number as consecutive integers starting from 1.
* VT number VT device

View File

@ -21,6 +21,9 @@ is" without express or implied warranty.
#include <X11/X.h>
#include <X11/Xproto.h>
#include "os/osdep.h"
#include "screenint.h"
#include "input.h"
#include "misc.h"

View File

@ -22,6 +22,7 @@ is" without express or implied warranty.
#include <X11/fonts/fontstruct.h>
#include "dix/screenint_priv.h"
#include "os/osdep.h"
#include "screenint.h"
#include "input.h"

View File

@ -34,6 +34,9 @@
#include <X11/X.h>
#include <X11/Xproto.h>
#include "os/osdep.h"
#include "os.h"
#include "servermd.h"
#include "inputstr.h"

View File

@ -35,6 +35,9 @@
#endif
#include <X11/Xatom.h>
#include "os/osdep.h"
#include <micmap.h>
#include <misyncshm.h>
#include <os.h>

View File

@ -37,6 +37,7 @@
#include "dix/dix_priv.h"
#include "dix/screenint_priv.h"
#include "os/cmdline.h"
#include "os/osdep.h"
#include <selection.h>
#include <micmap.h>

View File

@ -60,6 +60,7 @@ typedef WINAPI HRESULT(*SHGETFOLDERPATHPROC) (HWND hwndOwner,
#endif
#include "dix/screenint_priv.h"
#include "os/osdep.h"
#include "winmonitors.h"
#include "nonsdk_extinit.h"

View File

@ -32,6 +32,8 @@
#include <xwin-config.h>
#endif
#include "os/osdep.h"
#include <../xfree86/common/xorgVersion.h>
#include "win.h"

View File

@ -266,11 +266,8 @@ XNFvprintf(const char *fmt, va_list va)
_X_ATTRIBUTE_PRINTF(1, 0)
_X_DEPRECATED;
typedef void (*OsSigHandlerPtr) (int /* sig */ );
typedef int (*OsSigWrapperPtr) (int /* sig */ );
extern _X_EXPORT OsSigHandlerPtr
OsSignal(int /* sig */ , OsSigHandlerPtr /* handler */ );
extern _X_EXPORT OsSigWrapperPtr
OsRegisterSigWrapper(OsSigWrapperPtr newWrap);
@ -279,32 +276,6 @@ LockServer(void);
extern _X_EXPORT void
UnlockServer(void);
extern _X_EXPORT void
OsInit(void);
extern _X_EXPORT void
OsCleanup(Bool);
extern _X_EXPORT void
OsVendorFatalError(const char *f, va_list args)
_X_ATTRIBUTE_PRINTF(1, 0);
extern _X_EXPORT void
OsVendorInit(void);
extern _X_EXPORT void
OsBlockSignals(void);
extern _X_EXPORT void
OsReleaseSignals(void);
extern void
OsResetSignals(void);
extern _X_EXPORT void
OsAbort(void)
_X_NORETURN;
extern _X_EXPORT Bool
PrivsElevated(void);

View File

@ -26,6 +26,8 @@
#include <stdlib.h>
#include "os/osdep.h"
#include <X11/X.h>
#include "scrnintstr.h"
#include "windowstr.h"

View File

@ -93,17 +93,15 @@ SOFTWARE.
#include <netinet/tcp.h>
#include <arpa/inet.h>
#endif
#include <sys/uio.h>
#endif /* WIN32 */
#include "dix/dix_priv.h"
#include "os/audit.h"
#include "os/auth.h"
#include "os/osdep.h"
#include "misc.h" /* for typedef of pointer */
#include "osdep.h"
#include "opaque.h"
#include "dixstruct.h"
#include "xace.h"

View File

@ -79,20 +79,21 @@ OR PERFORMANCE OF THIS SOFTWARE.
#include <dix-config.h>
#endif
#include <X11/Xos.h>
#include <errno.h>
#include <stdio.h>
#include <time.h>
#include <sys/stat.h>
#include <stdarg.h>
#include <stdlib.h> /* for malloc() */
#include <errno.h>
#include <sys/stat.h>
#include <time.h>
#include <X11/Xos.h>
#include "os/osdep.h"
#include "os/audit.h"
#include "os/fmt.h"
#include "input.h"
#include "opaque.h"
#include "osdep.h"
#ifdef WIN32
#include <process.h>

View File

@ -174,4 +174,18 @@ int xthread_sigmask(int how, const sigset_t *set, sigset_t *oldest);
extern void (*OsVendorVErrorFProc) (const char *, va_list args)
_X_ATTRIBUTE_PRINTF(1, 0);
typedef void (*OsSigHandlerPtr) (int sig);
/* install signal handler */
OsSigHandlerPtr OsSignal(int sig, OsSigHandlerPtr handler);
void OsInit(void);
void OsCleanup(Bool);
void OsVendorFatalError(const char *f, va_list args) _X_ATTRIBUTE_PRINTF(1, 0);
void OsVendorInit(void);
void OsBlockSignals(void);
void OsReleaseSignals(void);
void OsResetSignals(void);
void OsAbort(void) _X_NORETURN;
#endif /* _OSDEP_H_ */

View File

@ -48,14 +48,11 @@ SOFTWARE.
#include <dix-config.h>
#endif
#include <stdio.h>
#include <X11/X.h>
#include "os.h"
#include "osdep.h"
#include "opaque.h"
#include <X11/Xos.h>
#include <signal.h>
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <X11/X.h>
#include <X11/Xos.h>
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif
@ -64,9 +61,13 @@ SOFTWARE.
#endif
#include "os/busfault.h"
#include "os/osdep.h"
#include "misc.h"
#include "os.h"
#include "opaque.h"
#include "misc.h"
#include "dixstruct.h"
#if !defined(SYSV) && !defined(WIN32)

View File

@ -109,6 +109,7 @@ __stdcall unsigned long GetTickCount(void);
#include "dix/dix_priv.h"
#include "os/auth.h"
#include "os/cmdline.h"
#include "os/osdep.h"
#include "dixstruct.h"
#include "xkbsrv.h"