summaryrefslogtreecommitdiff
path: root/os/osdep.h
AgeCommit message (Collapse)AuthorFilesLines
2010-12-31os: always check if client is local when connection is acceptedPauli Nieminen1-0/+4
LocalClient is used for all DRI2 requests that makes it frequently called function. Querying if connection is local or not takes 10-15us (on ARM) depending on malloc speed. Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
2010-09-10os: Return BadLength instead of disconnecting BigReq clients (#4565)Aaron Plattner1-0/+1
If a client sends a big request that's too big (i.e. bigger than maxBigRequestSize << 2 bytes), the server just disconnects it. This makes the client receive SIGPIPE the next time it tries to send something. The X Test Suite sends requests that are too big when the test specifies the TOO_LONG test type. When the client receives SIGPIPE, XTS marks it as UNRESOLVED, which counts as a failure. Instead, remember how long the request is supposed to be and then return that size. Dispatch() checks the length and sends BadLength to the client. Then, whenever oci->ignoreBytes is nonzero, ignore the data read instead of trying to process it as a request. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
2010-05-07Constify function prototypes in auth & xdmcp codeAlan Coopersmith1-11/+12
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Tested-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Keith Packard <keithp@keithp.com>
2010-03-16Xming: Warning fixesColin Harrison1-1/+1
Fix warnings due to prototypes not specifying function arguments Fix warning with RegQueryValueEx() Tidy up an include Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-08-03Bug 16832: XDMCP related build error when --disable-xdmcp is usedPaul Bender1-0/+6
X.Org Bugzilla #16832: http://bugs.freedesktop.org/show_bug.cgi?id=16832 Patch #27279: http://bugs.freedesktop.org/attachment.cgi?id=27279
2009-06-18Clarify use of and need for mffs vs. ffsAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2008-07-23Unifdef hpux.Adam Jackson1-1/+1
2008-07-23Unifdef sgi.Adam Jackson1-2/+0
2008-07-23Unifdef QNX.Adam Jackson1-3/+0
Again, hasn't worked since at least 7.0.
2008-07-17Dead code removalDaniel Stone1-8/+0
Remove a whole bunch of code that was never built, be it entire files or just dead ifdefs.
2008-03-11Make WriteToClient take a const void * like any decent IO write function.Kristian Høgsberg1-1/+1
Enough with the casting. Doesn't break API or even ABI, but does make a lot of silly casts superfluos.
2007-09-19Merge branch 'master' into XACE-SELINUXEamon Walsh1-3/+0
Conflicts: afb/afbpntwin.c afb/afbscrinit.c afb/afbwindow.c cfb/cfb.h cfb/cfballpriv.c cfb/cfbscrinit.c cfb/cfbwindow.c configure.ac fb/wfbrename.h hw/xfree86/xf4bpp/ppcIO.c hw/xfree86/xf4bpp/ppcPntWin.c hw/xfree86/xf4bpp/ppcWindow.c hw/xfree86/xf8_32bpp/cfbscrinit.c mfb/mfb.h mfb/mfbpntwin.c mfb/mfbscrinit.c mfb/mfbwindow.c mi/miexpose.c Note: conflicts caused by devPrivates rework vs. paintwindow changes.
2007-08-31Bug #7186: Fix an excessive request size limitation that broke big-requests.Eric Anholt1-3/+0
MAXBUFSIZE appears to be a leftover of some previous time. Instead, just use maxBigRequestSize when bigreqs are available (limiting buffers to ~16MB). When bigreqs are not available, needed won't be larger than the maximum size of a non-bigreqs request (256kB).
2007-08-03security: drop support for XC-QUERY-SECURITY authorization method.Eamon Walsh1-3/+0
2007-06-28Remove the remnants of OS/2 support.Adam Jackson1-1/+1
This has never worked in any modular server release, and as far as I know was never tested in 6.7 through 6.9.
2007-06-04Remove the old Kerberos 5 authentication code.Adam Jackson1-23/+0
Before you complain, this code hasn't seen material change since at least X11R6. It certainly does not build with any modern version of Kerberos. Anybody wanting krb5 auth to their X server should probably be using GSSAPI instead of internal krb5 API anyway.
2007-03-25General DIX static and dead code cleanup.Adam Jackson1-8/+0
2007-03-25Static cleanups, dead code deletion.Adam Jackson1-6/+0
2006-07-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson1-2/+0
2006-06-01Kill LBX, too.Daniel Stone1-26/+0
2006-02-16Make more extensions optional in build (for kdrive). Fix kdrive build forKeith Packard1-0/+2
actual hardware. Fix kdrive pointer signed/unsigned types. Add kdrive-required YX rotation functions. Replace rgb text file loading with static rgb color table.
2005-07-07Bug #2901 <https://bugs.freedesktop.org/show_bug.cgi?id=2901> Add prototypeAlan Coopersmith1-0/+4
for XdmAuthenticationInit() (Peter Breitenlohner)
2005-07-03Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings.Daniel Stone1-0/+4
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>.
2005-05-02Fix comments for pointers in parameter lists to work with fussy compilersHarold L Hunt II1-1/+1
2005-04-20warning fix for Win32Alexander Gottwald1-1/+1
2004-11-22Use a simple hashtable as ConnectionTranslation instead of a plain array onAlexander Gottwald1-1/+7
Windows because socket fds are not sequential and do not start at 0
2004-11-15Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 AddedAlexander Gottwald1-0/+3
mingw (Win32) port
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich1-1/+1
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich1-1/+1
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich1-1/+1
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16Kaleb Keithley1-1/+3
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley1-18/+171
2003-11-14R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley1-0/+186