- 12 Sep, 2018 1 commit
-
-
Dave Airlie authored
Pointed out by coverity. Signed-off-by:Dave Airlie <airlied@redhat.com>
-
- 30 Oct, 2017 1 commit
-
-
Roundhouse kick replacing the various (sizeof(foo)/sizeof(foo[0])) with the ARRAY_SIZE macro from dix.h when possible. A semantic patch for coccinelle has been used first. Additionally, a few macros have been inlined as they had only one or two users. Signed-off-by:
Daniel Martin <consume.noise@gmail.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
- 29 May, 2017 1 commit
-
-
Commit aa6717ce switched xf86WaitForInput from using select(2) to using poll(2). Before this change, the timeout was interpreted as being in microseconds; afterwards it is fed directly to xorg_poll which interprets it as being in milliseconds. This results in the function potentially blocking 1000x longer than intended. This commit scales down the timeout argument before passing it to xorg_poll, being careful to ensure the result is not rounded down due to integer division. Signed-off-by:
Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 21 Jul, 2016 1 commit
-
-
This uses the wrapper in case we need to emulate poll with select as we do on Windows. Reviewed-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 18 Jul, 2016 1 commit
-
-
xf86WaitForInput and the xf86 SIGIO handling code. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
- 03 Mar, 2014 1 commit
-
-
Hans de Goede authored
Try to get a server managed fd from the Options before trying to open the device node ourselves. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 17 Apr, 2013 1 commit
-
-
So when we VT switch back and attempt to flush the input devices, we don't succeed because evdev won't return part of an event, since we were only asking for 4 bytes, we'd only get -EINVAL back. This could later cause events to be flushed that we shouldn't have gotten. This is a fix for CVE-2013-1940. Signed-off-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 21 Mar, 2012 1 commit
-
-
Keith Packard authored
This is strictly the application of the script 'x-indent-all.sh' from util/modular. Compared to the patch that Daniel posted in January, I've added a few indent flags: -bap -psl -T PrivatePtr -T pmWait -T _XFUNCPROTOBEGIN -T _XFUNCPROTOEND -T _X_EXPORT The typedefs were needed to make the output of sdksyms.sh match the previous output, otherwise, the code is formatted badly enough that sdksyms.sh generates incorrect output. The generated code was compared with the previous version and found to be essentially identical -- "assert" line numbers and BUILD_TIME were the only differences found. The comparison was done with this script: dir1=$1 dir2=$2 for dir in $dir1 $dir2; do (cd $dir && find . -name '*.o' | while read file; do dir=`dirname $file` base=`basename $file .o` dump=$dir/$base.dump objdump -d $file > $dump done) done find $dir1 -name '*.dump' | while read dump; do otherdump=`echo $dump | sed "s;$dir1;$dir2;"` diff -u $dump $otherdump done Signed-off-by:
Keith Packard <keithp@keithp.com> Acked-by:
Daniel Stone <daniel@fooishbar.org>
Acked-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 27 Sep, 2011 1 commit
-
-
Peter Hutterer authored
In all cases, the pointer was simply type-cast anyway. Let's get some compile-time type safety going, how about that. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Dan Nicholson <dbn.lists@gmail.com> Squashed in: xfree86: Move definition of xf86OptionPtr into separate header file The pile of spaghettis that is the xfree86 include dependencies make it rather hard to have a single typedef somewhere that's not interfering with everything else or drags in a whole bunch of other includes. Move the xf86OptionRec and GenericListRec declarations into a separate header. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 27 Jun, 2011 1 commit
-
-
Introduced in e3f296d9 , when the ifdef DEBUG around the whole block was removed, but only two of the three ErrorF switched to DebugF. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 10 Jun, 2010 1 commit
-
-
This patch was generated by the following Perl code: perl -i -pe 's/([^_])return\s*\(\s*([^(]+?)\s*\)s*;(\s+(\n))?/$1return $2;$4/g;' Signed-off-by:
Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net> Reviewed-by:
Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
-
- 12 May, 2010 1 commit
-
-
Mikhail Gusarov authored
The only remaining X-functions used in server are XNF*, the rest is converted to plain alloc/calloc/realloc/free/strdup. X* functions are still exported from server and x* macros are still defined in header file, so both ABI and API are not affected by this change. Signed-off-by:
Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-
- 21 Apr, 2010 1 commit
-
-
Tiago Vignatti authored
CLEARRTS_SUPPORT cannot be triggered at all. Notice that mouse driver manual page states the support for it though. Signed-off-by:
Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 23 Mar, 2010 1 commit
-
-
Peter Hutterer authored
7+ years for an if 1 should be enough to just admit that there's no other option. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Fernando Carrijo <fcarrijo@yahoo.com.br> Reviewed-by:
Corbin Simpson <MostAwesomeDude@gmail.com>
-
- 16 May, 2009 2 commits
-
-
Peter Hutterer authored
Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net>
-
Peter Hutterer authored
Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net>
-
- 03 Dec, 2008 1 commit
-
-
Paulo Cesar Pereira de Andrade authored
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
-
- 17 Jul, 2008 1 commit
-
-
- 29 Jun, 2007 1 commit
-
-
Adam Jackson authored
-
- 21 Jul, 2006 1 commit
-
-
Adam Jackson authored
-
- 25 Mar, 2006 1 commit
-
-
Adam Jackson authored
-
- 03 Jul, 2005 1 commit
-
-
Daniel Stone authored
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
-
- 20 Apr, 2005 1 commit
-
-
Daniel Stone authored
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
-
- 26 Nov, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-
- 25 Nov, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-
- 17 Nov, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-
- 14 Nov, 2003 2 commits
-
-
Kaleb Keithley Keithley authored
-
Kaleb Keithley Keithley authored
-