summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-02-11Use closefrom() if availableHEADmasterAlan Coopersmith2-6/+9
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-11Remove ifdefs checking for ultrix & hpuxAlan Coopersmith2-4/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-06-03xscope 1.4.4xscope-1.4.4Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-25Remove "All rights reserved" from Oracle copyright noticesAlan Coopersmith14-14/+14
Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-07Add support for DAMAGE extension versions 1.0 & 1.1Alan Coopersmith9-7/+375
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-07PrintField: Don't over-indent when verbose < 3Alan Coopersmith1-1/+1
When not printing out the contents of embedded structures, PrintField was still increasing the indent level, but returning before returning it to the prior level, leaving the later fields over-indented. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-07DataFromClient: Avoid segfault if FlushFD() closed the connectionAlan Coopersmith1-0/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-13fd.h: fix build when not building with xtransAlan Coopersmith1-0/+1
Always include <X11/Xfuncproto.h> for the definition of _X_NORETURN, instead of relying on Xtrans.h to include it indirectly for us. Fixes: #2 Fixes: commit cc298d1f559240976344588f9f765ee60ca3d6f3 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-13gitlab CI: build with both --enable-xtrans & --disable-xtransAlan Coopersmith1-2/+14
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-13gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-10scope.h: remove second include of fd.hAlan Coopersmith1-2/+0
once is enough Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-10xscope 1.4.3xscope-1.4.3Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-05-01On OpenBSD SO_PEERCRED uses struct sockpeercredMatthieu Herrb1-0/+4
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
2021-12-07Mark MainLoop as _X_NORETURN.Thomas Klausner2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07Add casts to fix signedness change warnings.Thomas Klausner1-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07Increase buffer length to avoid truncation.Thomas Klausner1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07Use correct argument type for ctype(3) functions.Thomas Klausner1-7/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07ifdef out unused static functionsThomas Klausner1-0/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07Match format strings with arguments.Thomas Klausner2-11/+11
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07Remove/comment out unused variables.Thomas Klausner4-23/+24
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06xscope 1.4.2xscope-1.4.2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-04Fix spelling/wording issuesAlan Coopersmith5-6/+6
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-04Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-02gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-17Add support for process ID and names on Solarish systemsAlan Coopersmith2-1/+53
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-17Add support for process ID and namesPeter Wu5-3/+131
Adds the process ID and name of the other side. Useful if you have multiple clients. Support for OpenBSD could be added in theory since it has a similar "struct sockpeercred" structure (not sure about process name though). After this change, the process ID and name (when available) will be appended between parentheses: 0.01: Client (pid 23433 xdpyinfo) --> 4 bytes ............REQUEST: ListExtensions 0.01: 332 bytes <-- X11 Server (pid 8290 Xorg) ..............REPLY: ListExtensions names: (29) Signed-off-by: Peter Wu <peter@lekensteyn.nl> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith3-116/+112
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-05-05Fix up documentation of NAS command line flagsAlan Coopersmith2-13/+14
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-05-05Improve help and manpage.Stéphane Aulery2-38/+84
Add some details on the verbosity and options -T and -A. These two options are not very clear to me. Signed-off-by: Stéphane Aulery <lkppo@free.fr> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2014-06-06xscope 1.4.1xscope-1.4.1Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-03autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-03configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-03-03xscope: Fix unknown GenericEvent type decodingDaniel Stone1-1/+1
Transposed parameters meant that it was printing the sequence number rather than the type. Signed-off-by: Daniel Stone <daniels@collabora.com>
2013-11-27Print correct event names for events sent via SendEvent requestsAlan Coopersmith3-1/+24
The high bit of an X11 event id is set to 0 for events generated by the server, 1 for events sent from another client via SendEvent requests. Previously xscope printed: ..............EVENT: **INVALID** (150) Now it prints: ..............EVENT: ConfigureNotify source: SendEvent Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-07avoid conflicts with Solaris <sys/regset.h> #define of CSAlan Coopersmith1-0/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-06-29Bug 66388 wrong output for filter names in RandR GetCrtcTransform replyAlan Coopersmith1-9/+10
https://bugs.freedesktop.org/show_bug.cgi?id=66388 Had missed a 4 byte padding field between the transform data and the start of the filter name fields. The offset to the strings now matches the 96 bytes specified for sz_xRRGetCrtcTransformReply in <X11/extensions/randrproto.h> and the test case now reports: pending filter name: "bilinear" instead of: current filter name: "^@^@^@^@bili" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-11-19xscope 1.4xscope-1.4Alan Coopersmith2-2/+24
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-22Add -V option to print version and exitAlan Coopersmith2-1/+10
Can't use -v, as that's already in use for verbosity level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-10-19When not using xtrans, check if -lsocket & -lnsl are needed for Solaris/SVR4Alan Coopersmith1-0/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-10-19Don't include Xtrans files if xtrans is disabledAlan Coopersmith1-0/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-10-19Rename sockaddr_un variable from sun to saun to avoid conflict with #define sunAlan Coopersmith1-5/+5
Compilers auto-define "sun" on Solaris/SunOS, which causes the variable name to turn into a constant "1", breaking the parsing of the code. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-10-12xscope 1.3.99.901 (1.4 RC1)xscope-1.3.99.901Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02Update RANDR support from 0.x to include 1.0 - 1.4Alan Coopersmith6-29/+2074
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02Refactor error printing to use common functionsAlan Coopersmith3-146/+49
All errors currently recognized by xscope fall into two forms, with or without a 32-bit value to print as a bad value, so use common implementations for those two forms so we can stop duplicating that code for every new extension-defined error. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02Add experimental support for reading a previously recorded fileAlan Coopersmith2-4/+331
If you run "xscope -r -v0 > xscope.raw", then you can later run "xscope -f xscope.raw" to decode the data. Mainly adding this to aid in testing decoding of new extensions, so I don't have to re-run the commands over and over, just replay a log file. (Which may or may not have been edited to include additional request data for further testing of types & formats that clients may not make it easy to generate.) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02Refactor fd closing into CloseFD helper functionAlan Coopersmith3-15/+21
All versions now perform same check for XtransConn data to decide whether to use _X11TransClose or regular close, which is needed for being able to read data from pre-recorded files instead of live sockets. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>