On 21 September 2015 at 08:16, Keith Packard wrote:
> Eliminates polling every 20ms for device input.
>
> Signed-off-by: Keith Packard
> ---
> hw/kdrive/ephyr/ephyr.c | 10 +-
> hw/kdrive/ephyr/ephyr.h | 3 ---
> hw/kdrive/ephyr/hostx.c | 6 ++
> hw/kdrive/ephyr/hostx.h | 2 ++
>
This uses the NotifyFd interface to monitor the udev file descriptor
rather than adding another block/wakeup handler
Signed-off-by: Keith Packard
---
config/udev.c | 45 -
1 file changed, 16 insertions(+), 29 deletions(-)
diff --git a/config/udev.c b/
The X server used to wait for the user to hit a key or move the mouse
before restarting the session after a keepalive failure. This,
presumably, was to avoid having the X server continuously spew XDMCP
protocol on the network while the XDM server was dead.
Switching into this state was removed fro
Replace the custom path for dealing with new incoming connections with
the general-purpose NotifyFd API.
Signed-off-by: Keith Packard
---
include/os.h| 3 --
os/WaitFor.c| 4 ---
os/connection.c | 104 +++-
3 files changed, 42 inser
This removes the block and wakeup handlers and replaces them with a
combination of a NotifyFd callback and timers.
Signed-off-by: Keith Packard
---
os/xdmcp.c | 114 +++--
1 file changed, 36 insertions(+), 78 deletions(-)
diff --git a/os/x
This switches the kdrive code to use FD notification for input
devices, rather than the block and wakeup handlers.
Signed-off-by: Keith Packard
---
hw/kdrive/src/kinput.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/hw/kdrive/src/kinput.c b/h
This allows the server to call GetTimeInMillis() after each request is
processed to avoid needing setitimer. -dumbSched now turns off the
setitimer.
Signed-off-by: Keith Packard
---
configure.ac| 2 +-
dix/dispatch.c | 17 +++--
include/dix-config.h.in | 3 +++
This replaces the block/wakeup handlers with an OsTimer. This also
avoids problems with performing rendering during the wakeup handler.
Signed-off-by: Keith Packard
---
render/animcur.c | 57 +---
1 file changed, 30 insertions(+), 27 deletions(
Replace block/wakeup handlers with SetNotifyFd. Much nicer now.
Signed-off-by: Keith Packard
---
Xext/xselinux_hooks.c | 18 --
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/Xext/xselinux_hooks.c b/Xext/xselinux_hooks.c
index d9f2f68..2d85928 100644
--- a/Xext/xs
There was a complicated scheme to increase the time between keepalives
from 3 minutes up to as much as 24 hours in an attempt to reduce
network traffic from idle X terminals. X terminals receiving X
traffic, or receiving user input would use the 3 minute value; X
terminals without any network traff
This provides a callback-based interface to monitor file
descriptors beyond the usual client and device interfaces.
Modules within the server using file descriptors for reading and/or
writing can call
Bool SetNotifyFd(int fd, NotifyFdProcPtr notify_fd, int mask, void *data);
mask can be any
Patch 3ab6cd31cbdf8095b2948034fce5fb645422d8da fixed Xinerama
interactions with font servers by not putting clients to sleep
multiple times. However, it introduced additional changes dealing with
libXfont routine returning Suspended more than once for the same
request. This additional change was to
Replace the block/wakeup handlers with a NotifyFd callback
Signed-off-by: Keith Packard
---
hw/kdrive/linux/linux.c | 17 -
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/hw/kdrive/linux/linux.c b/hw/kdrive/linux/linux.c
index 73a8169..a52bdef 100644
--- a/hw/kdri
This new libXfont API eliminates exposing internal X server symbols to
the font library, replacing those with a struct full of the entire API
needed to use that library.
v2: Use libXfont2 instead of libXfont_2
Signed-off-by: Keith Packard
---
Xext/xf86bigfont.c | 4 +-
configure.ac
Replace the block/wakeup handlers with a NotifyFd callback.
Signed-off-by: Keith Packard
---
hw/xfree86/drivers/modesetting/vblank.c | 16 +---
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/hw/xfree86/drivers/modesetting/vblank.c
b/hw/xfree86/drivers/modesetting/vbl
Replace the block/wakeup handler with a NotifyFd callback instead.
Signed-off-by: Keith Packard
---
hw/xwayland/xwayland.c | 19 ++-
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c
index bc92beb..685e352 100644
--- a/
These extensions were accessing internal OS functions and
structures. Expose the necessary functionality to them and remove
their use of osdep.h
Signed-off-by: Keith Packard
---
Xext/xace.c | 13 ++---
Xext/xselinux_hooks.c | 1 -
include/os.h | 7 +++
os/access.
This uses the NotifyFd interface to monitor the dbus socket rather
than a block/wakeup handler.
Signed-off-by: Keith Packard
---
config/dbus-core.c | 16
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/config/dbus-core.c b/config/dbus-core.c
index 8351ea4..3c85ad7
This removes the last uses of fd_set from the server interfaces
outside of the OS layer itself.
Signed-off-by: Keith Packard
---
Xext/sleepuntil.c | 17 +++--
Xext/sync.c | 12 ++--
dix/dixfonts.c | 7 +++
dix/dixutils.c
Here's the latest version of the patch set to make the non-OS bits of
the X server stop using fd_set.
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
This adds the ability to be notified when a file descriptor is
available for writing.
Signed-off-by: Keith Packard
---
os/WaitFor.c| 30 --
os/connection.c | 40 +++-
os/io.c | 8
os/osdep.h | 5 -
4
Font initialization was split into two stages, the first was to set up
font privates with a call to ResetFontPrivateIndex, then much later
the call to InitFonts to set up all of the FPEs. Doing the full font
initialization before initializing the video drivers means that we can
move the call to Res
Remove code in xf86Wakeup for dealing with device and other input and
switch to using the new NotifyFd interface.
Signed-off-by: Keith Packard
---
hw/xfree86/common/xf86Events.c | 67 --
1 file changed, 26 insertions(+), 41 deletions(-)
diff --git a/hw/xf
Eliminates polling every 20ms for device input.
Signed-off-by: Keith Packard
---
hw/kdrive/ephyr/ephyr.c | 10 +-
hw/kdrive/ephyr/ephyr.h | 3 ---
hw/kdrive/ephyr/hostx.c | 6 ++
hw/kdrive/ephyr/hostx.h | 2 ++
hw/kdrive/ephyr/os.c| 1 -
5 files changed, 17 insertions(+), 5 d
With no users of the interface needing the readmask anymore, we can
remove it from the argument passed to these functions.
Signed-off-by: Keith Packard
---
composite/compalloc.c | 4 ++--
dix/dixutils.c | 14 ++
exa/exa.c
There's a 'const char *' adventure here that I'm mostly ignoring; some
client information gets const poisoned. Worked around by adding a
couple of casts. Ick.
Added an _X_ATTRIBUTE_PRINTF to SELinuxLog.
Ignore a couple of unused return values.
Signed-off-by: Keith Packard
---
Xext/xselinux_hoo
26 matches
Mail list logo