<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/include/os.h, branch 3.6.x</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://openid.arctica-project.org/nx-libs/atom?h=3.6.x</id>
<link rel='self' href='https://openid.arctica-project.org/nx-libs/atom?h=3.6.x'/>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/'/>
<updated>2024-05-11T16:56:27+00:00</updated>
<entry>
<title>os: signal handlers return void.</title>
<updated>2024-05-11T16:56:27+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2024-05-05T20:05:20+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=ed13175637aca5d7219ac4319cfe5fd8881dce52'/>
<id>urn:sha1:ed13175637aca5d7219ac4319cfe5fd8881dce52</id>
<content type='text'>
  commit 843166b033dc0544b9f3cf3c91fc3ae3650bda14
  Author: Adam Jackson &lt;ajax@redhat.com&gt;
  Date:   Mon Apr 6 11:05:17 2009 -0400

    os: signal handlers return void.
</content>
</entry>
<entry>
<title>enable CLIENTIDS functions in xserver</title>
<updated>2018-10-22T12:38:20+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2018-10-21T21:54:10+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=71abe0bebc85e839bf8cd67ad1d6f9cf0a9a5a96'/>
<id>urn:sha1:71abe0bebc85e839bf8cd67ad1d6f9cf0a9a5a96</id>
<content type='text'>
these can be used to determine the PID and name of an X11 client,
e.g. in debugging.
</content>
</entry>
<entry>
<title>Add asprintf() implementation for platforms without it</title>
<updated>2017-12-10T11:17:10+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2017-12-07T09:48:31+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=1e3a97482840401af9ffcf73db6008ebfe6c1d52'/>
<id>urn:sha1:1e3a97482840401af9ffcf73db6008ebfe6c1d52</id>
<content type='text'>
Backported from X.org:

commit c95c1d338fdb62dbe3dba934b97324fa778b7fce
Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Date:   Sat Nov 27 18:43:12 2010 -0800

    Add asprintf() implementation for platforms without it

    Provides a portable implementation of this common allocating sprintf()
    API found in many, but not yet all, of the platforms we support.
    If the platform provides vasprintf() we simply wrap it, otherwise we
    implement it - either way callers can use it regardless of platform.

    Since not all platforms guarantee to NULL out the return pointer on
    failure, we don't either, and require callers to check the return
    value for -1.

    The old Xprintf() API is deprecated, but left for compatibility for now.

    The new API is added in a new header so that it can be used in parts of
    the server such as hw/xfree86/parser that don't include all the server
    headers.

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Mikhail Gusarov &lt;dottedmag@dottedmag.net&gt;

Includes re-indentation changes from
9838b7032ea9792bec21af424c53c07078636d21.

Backported-to-NX-by: Mihai Moldovan &lt;ionic@ionic.de&gt;
</content>
</entry>
<entry>
<title>Use unique logfile names when starting server with -displayfd</title>
<updated>2017-03-21T09:58:08+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2017-03-15T15:42:10+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=e96e810c2287232000767ee55f2d1b84b31e6291'/>
<id>urn:sha1:e96e810c2287232000767ee55f2d1b84b31e6291</id>
<content type='text'>
 commit edcb6426f20c3be5dd5f50b76a686754aef2f64e
 Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
 Date:   Fri Jan 1 18:11:14 2016 -0800

    Use unique logfile names when starting server with -displayfd

    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=93212

    Previously all X servers started with -displayfd would overwrite
    Xorg.0.log - now a temporary name of Xorg.pid-&lt;pid&gt;.log is used
    until after -displayfd finds an open display - then it is renamed
    to the traditional Xorg.&lt;display&gt;.log name.

    Reviewed-by: Adam Jackson &lt;ajax@redhat.com&gt;
    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;

 Backported-to-NX-by: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;
</content>
</entry>
<entry>
<title>os: Use NotifyFd interface for listen descriptors</title>
<updated>2017-03-21T09:58:08+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2017-03-15T15:16:37+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=c468be804ec48231db12f504c2d877ef7a11adc1'/>
<id>urn:sha1:c468be804ec48231db12f504c2d877ef7a11adc1</id>
<content type='text'>
 Bundle X.org backport of these commits:

 commit 7ea64fb4374504bd3d524fc08c90efdab9f253ea
 Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
 Date:   Mon Mar 9 09:55:57 2015 -0700

    Clear ListenTransConns entries in CloseWellKnownConnections

    Since _XSERVTransClose frees the connection pointer passed to it,
    remove that pointer from the array, so we don't try to double free it
    if we come back into CloseWellKnownConnections again.

    Should fix https://bugzilla.yoctoproject.org/show_bug.cgi?id=6665 in which
    the shutdown section of the main() loop called CloseWellKnownConnections()
    and then moved on to ddxGiveUp(), which failed to release the VT and thus
    called AbortServer(), which called CloseWellKnownConnections() again.

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Adam Jackson &lt;ajax@redhat.com&gt;
    Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;

 commit 7b02f0b87ec2fa0cc5a65307a1fd55c671cec884
 Author: Keith Packard &lt;keithp@keithp.com&gt;
 Date:   Wed Nov 11 22:02:17 2015 -0800

    os: Use NotifyFd interface for listen descriptors

    Replace the custom path for dealing with new incoming connections with
    the general-purpose NotifyFd API.

    Reviewed-by: Adam Jackson &lt;ajax@redhat.com&gt;
    Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;

 commit ba71b69f94f00a6f6910597185610668e79c10be
 Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
 Date:   Fri Jan 1 17:34:41 2016 -0800

    Avoid segfault in CloseWellKnownConnections when using -displayfd

    When -displayfd is looping through the possible display ids to use,
    if it can't open all the listening sockets for one (say when :0 is
    already in use), it calls CloseWellKnownConnections to close all
    the ListenTransConns entries before the point that ListenTransFds
    was allocated &amp; initialized, so CloseWellKnownConnections would
    segfault trying to read entries from a NULL ListenTransFds pointer.

    Introduced by commit 7b02f0b8

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Keith Packard &lt;keithp@keithp.com&gt;

 Backported-to-NX-by: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;
</content>
</entry>
<entry>
<title>Move SIGUSR1 notification as late as possible.</title>
<updated>2017-03-21T09:58:08+00:00</updated>
<author>
<name>Adam Jackson</name>
<email>ajax@nwnk.net</email>
</author>
<published>2017-03-15T11:08:46+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=f5301dee4e400698f5b8ea324686b8daba75152d'/>
<id>urn:sha1:f5301dee4e400698f5b8ea324686b8daba75152d</id>
<content type='text'>
 commit f01e149d1af14ef9ee0e8a6743ab6a08f3bb677c
 Author: Adam Jackson &lt;ajax@redhat.com&gt;
 Date:   Thu Nov 1 15:41:11 2007 -0400

    Move SIGUSR1 notification as late as possible.

    If we inherited a signal mask from the parent process that ignores SIGUSR1,
    then we will send SIGUSR1 to the parent to indicate when we're ready to
    accept connections.  Unfortunately, we send this notification way too
    early, right after creating the sockets rather than just before entering
    the main loop.

    Move it to just before Dispatch() so we're not lying quite so much.

 Backported-to-NX-by: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;
</content>
</entry>
<entry>
<title>dix: Pull client-is-local flag up to the ClientRec</title>
<updated>2017-03-21T09:58:07+00:00</updated>
<author>
<name>Adam Jackson</name>
<email>ajax@redhat.com</email>
</author>
<published>2017-02-16T10:51:40+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=ed52cb2952bebf6b98e187ff1f8609690fae3d59'/>
<id>urn:sha1:ed52cb2952bebf6b98e187ff1f8609690fae3d59</id>
<content type='text'>
 Backported from X.org

 commit ff8e3ad8074cd2c8bed49b39c40c2b4892118270
 Author: Adam Jackson &lt;ajax@redhat.com&gt;
 Date:   Thu Sep 20 13:16:59 2012 -0400

    dix: Pull client-is-local flag up to the ClientRec

    Reviewed-by: Daniel Stone &lt;daniel@fooishbar.org&gt;
    Signed-off-by: Adam Jackson &lt;ajax@redhat.com&gt;

 Backported-to-NX-by: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;
</content>
</entry>
<entry>
<title>Rework local client id finding code to be more uniform</title>
<updated>2017-03-21T09:33:30+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@sun.com</email>
</author>
<published>2017-02-15T14:42:48+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=8996f80a5e3b205cb580aba34aa21d165ef78cfb'/>
<id>urn:sha1:8996f80a5e3b205cb580aba34aa21d165ef78cfb</id>
<content type='text'>
 Backport of X.org commit:

 commit 2d93e69690d2c5d4a89a795ede6423796528e5df
 Author: Alan Coopersmith &lt;alan.coopersmith@sun.com&gt;
 Date:   Thu Sep 27 16:47:06 2007 -0700

    Rework local client id finding code to be more uniform

 Backported-to-NX-by: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;

 Note: This commit also switches client_uid_string's size from 32 to 64 chars,
 as found in this X.org commit (spotted by Mihai Moldovan during code review):

    commit a7b944f0d96c3e0e15e75378a04def1ac96089fb
    Author: Alan Coopersmith &lt;alan.coopersmith@sun.com&gt;
    Date:   Wed Nov 1 16:17:49 2006 -0800

        If getpeerucred() is available, include pid &amp; zoneid in audit messages too
</content>
</entry>
<entry>
<title>os: Implement support for NotifyFd X_NOTIFY_WRITE and removal of AddEnabledDevices/RemoveEnabledDevices</title>
<updated>2017-03-17T08:40:37+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2017-02-09T23:33:44+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=761d74a6805e1030f2206a50834b36d807e8e107'/>
<id>urn:sha1:761d74a6805e1030f2206a50834b36d807e8e107</id>
<content type='text'>
 Backported from X.org:

 commit be5a513fee6cbf29ef7570e57eb0436d70fbd88c
 Author: Keith Packard &lt;keithp@keithp.com&gt;
 Date:   Mon Dec 7 15:12:14 2015 -0800

    Remove AddEnabledDevice and AddGeneralSocket APIs

    All uses of these interfaces should instead be using the NotifyFd API
    instead.

    Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
    Reviewed-by: Adam Jackson &lt;ajax@redhat.com&gt;

 commit 4020aacd1fc5b9c63369f011aeb9120af9c55218
 Author: Keith Packard &lt;keithp@keithp.com&gt;
 Date:   Wed Nov 11 22:02:03 2015 -0800

    os: Implement support for NotifyFd X_NOTIFY_WRITE

    This adds the ability to be notified when a file descriptor is
    available for writing.

    Reviewed-by: Adam Jackson &lt;ajax@redhat.com&gt;
    Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;

 Backported-to-NX-by: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;
</content>
</entry>
<entry>
<title>os: Add NotifyFd interfaces</title>
<updated>2017-03-15T10:09:41+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2017-02-09T12:45:12+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=86110d6edadef2d9fbcd3ee0d008696bfcf7dcd4'/>
<id>urn:sha1:86110d6edadef2d9fbcd3ee0d008696bfcf7dcd4</id>
<content type='text'>
 Backported from X.org:

 commit 0c41b7af4ab0c8d22b88f201293f59524d1e7317
 Author: Keith Packard &lt;keithp@keithp.com&gt;
 Date:   Wed Nov 11 22:02:02 2015 -0800

    os: Add NotifyFd interfaces

    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 combination of X_NOTIFY_READ and X_NOTIFY_WRITE.

    When 'fd' becomes readable or writable, the notify_fd function will be
    called with the 'fd', the ready conditions and 'data' values as arguments,

    When the module no longer needs to monitor the fd, it will call

        void RemoveNotifyFd(int fd);

    RemoveNotifyFd may be called from the notify function.

    Reviewed-by: Adam Jackson &lt;ajax@redhat.com&gt;
    Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;

    Backported-to-NX-by: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;
</content>
</entry>
</feed>
