Enrico Weigelt, metux IT consult
e85db86ced
Xext: damage: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
...
Use the new macros to make request struct parsing / field swapping
much easier.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-21 12:01:33 +01:00
Enrico Weigelt, metux IT consult
ec973853c9
Xext: xtest: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
...
Use the new macros to make request struct parsing / field swapping
much easier.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-21 11:57:12 +01:00
Enrico Weigelt, metux IT consult
6f7aa46c51
Xext: geext: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
...
Use the new macros to make request struct parsing / field swapping
much easier.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-21 11:54:29 +01:00
Enrico Weigelt, metux IT consult
2e6a9a1fbc
Xext: bigreq: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
...
Use the new macros to make request struct parsing / field swapping
much easier.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-21 11:54:12 +01:00
b-aaz
a53697e70e
xfree86: meson: Use install_symlink function instead of a hack.
...
This was a old hack used before Meson 0.61.0 added install_symlink, we
are at the meson release 1.10.0 so it is safe to use the new proper
function for this task.
Also used the X server's executable name as the link target name, and as
the SUID wrapper's name.
Moved the minimum Meson version up to 0.61.0.
Signed-off-by: b-aaz <b-aazbsd@proton.me >
2025-12-21 11:39:23 +01:00
Mikhail Dmitrichenko
252dda933a
os: avoid closing null fd at Fopen
...
In `Fopen` function variable `iop` may store NULL as a result of `fopen`
call. In this case, if later privileges couldn't be restored (`seteuid`
call fails), further `fclose(iop)` call will cause runtime error.
This commit adds check `iop` for NULL before calling `fclose` to prevent
potential NULL pointer dereference.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko222@gmail.com >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2115 >
2025-12-19 18:31:23 +01:00
Enrico Weigelt, metux IT consult
7fef1f9246
xorg-server.pc: add variables for input and video driver directories
...
Future driver versions should query those for their installation dirs.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 17:47:35 +01:00
Enrico Weigelt, metux IT consult
eecea2e1fc
xorg-server.pc: add xserverconfigdir variable
...
That variable is supposed to be used by drivers to query the path to
the xserver config directory (eg /etc/X11/xorg.conf.d), if they have
to install config snippets. It's supposed to replace / phase-out the
sysconfigdir variable, which has a bit misleading name.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 17:28:03 +01:00
Enrico Weigelt, metux IT consult
f40ebcd068
.github: compile-drivers: use new driver versions
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 15:37:26 +01:00
Enrico Weigelt, metux IT consult
49c15555f9
meson.build: install xlibre-server.h in addition to xorg-config.h
...
Both files are equal, but drivers should gradually migrate to the
new one, while the old one is phased out.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 12:54:57 +01:00
b-aaz
a5f87f20b2
os: Cleaned up the log functions and handled return values.
...
The old function used int for write() return values, that could overflow.
And the return values of the write calls were discarded and not checked.
Now if the write() to the log file fails, a warning will be logged to
stderr and the log message will be appended after the warning.
If writes to stderr fail, a warning will be logged to stdout and the log
message will be appended after the warning.
If writes to stdout fail, we can't really do anything else and will
continue on silently.
Also used the length returned by strftime for the next write call to
eliminate an extra use of strlen.
The -1 was also removed from the buflen argument of strftime because it
was unnecessary.
Did some small formatting changes too.
Signed-off-by: b-aaz <b-aazbsd@proton.me >
2025-12-19 12:21:44 +01:00
Enrico Weigelt, metux IT consult
d45aeab1b6
dix: inline ProcQueryExtension()
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 12:01:03 +01:00
Enrico Weigelt, metux IT consult
b19f3babe7
dix: inline SProcCreateGlyphCursor()
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 12:00:50 +01:00
Enrico Weigelt, metux IT consult
5c3980b407
dix: inline ProcSetScreenSaver()
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 11:59:08 +01:00
Enrico Weigelt, metux IT consult
07b0c67c28
dix: inline SProcRotateProperties()
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 11:58:53 +01:00
Enrico Weigelt, metux IT consult
7a2a3c9016
dix: inline SProcGrabPointer()
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 11:58:41 +01:00
Enrico Weigelt, metux IT consult
a47b2ce91c
dix: inline SProcGetProperty()
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 11:58:24 +01:00
Enrico Weigelt, metux IT consult
ca35b825a3
dix: inline SProcLookupColor()
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-19 11:58:11 +01:00
Oleh Nykyforchyn
ec49f5d24a
xfree86/common: hide a variable behind XSERVER_LIBPCIACESS
...
A variable pci_other is declared and can be used only on libpciacceess builds.
Fixes: https://github.com/X11Libre/xserver/issues/1713
Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com >
2025-12-18 11:02:10 +01:00
Oleh Nykyforchyn
ccb9b1bd17
fb: reexport fbGetGCPrivateKey and add itw wrapped version
...
This patch reexports a symbol needed by NVidia 340 driver and adds
its "wrapped" version for libwfb to prevent XServer crashes.
Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com >
2025-12-18 10:47:47 +01:00
Enrico Weigelt, metux IT consult
2285961661
dix: fix inttype mismatches in AllocARGBCursor & AllocGlyphCursor
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-17 16:28:25 +01:00
Enrico Weigelt, metux IT consult
aefde94a2d
meson: drop obsolete vendor information options
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-17 13:52:37 +01:00
Enrico Weigelt, metux IT consult
266ca17cc8
meson_options.txt: move xf86-* driver flags to separate section
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-17 12:11:57 +01:00
Enrico Weigelt, metux IT consult
e11e90cab6
.github: compile-drivers.sh: add xf86-video-v4l driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 18:48:36 +01:00
Enrico Weigelt, metux IT consult
2fcd226852
.github: util.sh: fix driver clone subdir
...
missed the driver name from the driver clone subdir
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 18:39:18 +01:00
Enrico Weigelt, metux IT consult
e4fc8443be
.github: compile-drivers.sh: add xf86-video-trident driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 18:30:02 +01:00
Enrico Weigelt, metux IT consult
9d6750322d
.github: compile-drivers.sh: add xf86-video-suntcx driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 18:09:52 +01:00
Enrico Weigelt, metux IT consult
79c2e8de91
.github: compile-drivers.sh: add xf86-video-vbox driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 18:01:25 +01:00
Enrico Weigelt, metux IT consult
420ed84dc0
.github: compile-drivers.sh: add xf86-video-sunleo driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 17:50:21 +01:00
Enrico Weigelt, metux IT consult
a1b8860b53
.github: compile-drivers.sh: add xf86-video-sunffb driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 17:30:09 +01:00
Enrico Weigelt, metux IT consult
015a305c0b
.github: compile-drivers.sh: add xf86-video-freedreno driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 17:14:01 +01:00
Enrico Weigelt, metux IT consult
ff005de2a2
.github: compile-drivers.sh: add xf86-video-suncg6 driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 17:06:26 +01:00
Enrico Weigelt, metux IT consult
265560aa4f
.github: compile-drivers.sh: add xf86-video-tdfx driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 16:47:43 +01:00
Enrico Weigelt, metux IT consult
69fccdf90d
.github: compile-drivers.sh: add xf86-video-voodoo driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 16:24:20 +01:00
Enrico Weigelt, metux IT consult
b4dd69f5e2
.github: compile-drivers.sh: add xf86-video-fbdev driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 16:19:54 +01:00
Enrico Weigelt, metux IT consult
4db8a55335
.github: compile-drivers.sh: add xf86-video-suncg3 driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 16:19:43 +01:00
Enrico Weigelt, metux IT consult
224a2f9d9d
.github: compile-drivers.sh: add xf86-video-xgi driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 16:02:02 +01:00
stefan11111
63f2422475
glx: include: meson_options.txt: Allow disabling DRI glx backends
...
This allows building the X server with glx and without mesa.
This also makes the X server optionally no longer be a loader for dri drivers.
Fixes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1638
Fixes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1819
Signed-off-by: stefan11111 <stefan11111@shitposting.expert >
2025-12-16 15:56:04 +01:00
Enrico Weigelt, metux IT consult
972d57d5da
.github: compile-drivers.sh: add xf86-video-cirrus driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 15:48:39 +01:00
Enrico Weigelt, metux IT consult
e08b62dfd1
.github: compile-drivers.sh: add xf86-video-suncg14 driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 15:47:49 +01:00
Enrico Weigelt, metux IT consult
f8bedcfcf4
.github: compile-drivers.sh: add xf86-video-chips driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 15:23:59 +01:00
Enrico Weigelt, metux IT consult
95cbd454a3
.github: compile-drivers.sh: add xf86-video-sisusb driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 15:23:48 +01:00
Enrico Weigelt, metux IT consult
a3324f0489
.github: compile-drivers.sh: add xf86-video-sis driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 15:00:18 +01:00
Enrico Weigelt, metux IT consult
736a2996af
.github: compile-drivers.sh: add xf86-video-siliconmotion driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 14:36:39 +01:00
Enrico Weigelt, metux IT consult
5e7b2262c0
.github: compile-drivers.sh: add xf86-video-savage driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 14:19:09 +01:00
Enrico Weigelt, metux IT consult
ce234d6c83
.github: compile-drivers.sh: add xf86-video-s3virge driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 13:35:24 +01:00
Enrico Weigelt, metux IT consult
6c5eb9531b
.github: compile-drivers.sh: add xf86-video-rendition driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 13:08:31 +01:00
Enrico Weigelt, metux IT consult
0652139616
.github: compile-drivers.sh: add xf86-video-nv driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 12:36:09 +01:00
Enrico Weigelt, metux IT consult
6da23165f0
.github: compile-drivers.sh: add xf86-video-nested driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 12:13:34 +01:00
Enrico Weigelt, metux IT consult
5c16c95b1e
.github: compile-drivers.sh: add xf86-video-neomagic driver
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-16 10:57:00 +01:00