summaryrefslogtreecommitdiff
path: root/Xtranslcl.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix spelling/wording issuesAlan Coopersmith2022-05-101-1/+1
| | | | | | | Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* TEST_t is never definedAdam Jackson2019-10-141-4/+0
| | | | | | | | | | This didn't even correspond to any of the testing protocol extensions! Apparently there used to be some test programs in xtrans itself, and they've not been a thing since 1994: https://cgit.freedesktop.org/~alanc/xc-historical/commit/?id=73bf4832c427855b2ce111d47dd1f181564b8d06 Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove non-Solaris SysV supportAdam Jackson2019-09-301-577/+0
| | | | Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Delete SCO supportAdam Jackson2019-09-301-458/+3
| | | | Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Use fchmod() instead of chmod() when creating named pipesAlan Coopersmith2018-09-301-3/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Use strcasecmp if it's available, instead of lowercasing stringsAlan Coopersmith2018-08-251-3/+14
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Set freeXLOCAL to NULL after freeing it to prevent double freesAlan Coopersmith2018-08-251-0/+1
| | | | | | | We shouldn't be calling the LocalEndTransports routine twice, but just make sure if we do, we don't call free twice on the same pointer. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove CLTS codeAdam Jackson2016-05-191-101/+0
| | | | | | | Never been used, as far as I can tell. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
* Replace 'sun' with '__sun'Richard PALO2015-11-281-16/+16
| | | | | | | | | Globally replace #ifdef and #if defined usage of 'sun' with '__sun' such that strict ISO compiler modes such as -ansi or -std=c99 can be used. Signed-off-by: Richard PALO <richard@NetBSD.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add const qualifiers to TRANS(OpenC{L,O}TS{Server,Client}) argsAlan Coopersmith2014-08-241-23/+26
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add const qualifiers to TRANS(Connect) argsAlan Coopersmith2014-08-241-1/+2
| | | | | | | Also required constifying UnixHostReallyLocal, since SocketUNIXConnect passes the host arg through to it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add const qualifiers to TRANS(CreateListener) port argsAlan Coopersmith2014-08-231-1/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add const qualifiers to TRANS(Reopen...) port argsAlan Coopersmith2014-08-231-9/+10
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add stubs for send/recv fd functions in local transportsAlan Coopersmith2013-11-071-0/+35
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove unnecessary casts on malloc, calloc & free callsAlan Coopersmith2011-12-061-14/+13
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
* Replace malloc(strlen)+strcpy with strdupAlan Coopersmith2011-12-061-6/+2
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
* Finish conversion to standard C allocation functionsAlan Coopersmith2011-12-051-25/+25
| | | | | | | | | Commit 4ac40cd5451 started this, by no longer special casing the xserver to include it's former custom allocation functions, this just takes the remaining #defines and pre-substitutes them into the code. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Convert a bunch of sprintf calls to snprintfAlan Coopersmith2011-10-011-13/+19
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith2011-10-011-4/+4
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Add _X_UNUSED attributes to silence unused parameter warningsAlan Coopersmith2011-10-011-10/+10
| | | | | | | | Not all the transport variants use all the arguments to every function, but as long as one transport type needs it, they all get the args passed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Fix unused variable warningsAlan Coopersmith2011-10-011-1/+0
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Fix warning: ISO C90 forbids mixed declarations and codeAlan Coopersmith2011-10-011-2/+2
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Fix printf format string warningsAlan Coopersmith2011-10-011-17/+17
| | | | | | | | Now that prmsg lets arguments types actually be checked, fix the warnings found. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Convert PRMSG macro to prmsg inline functionAlan Coopersmith2011-10-011-159/+147
| | | | | | | | | | Allows using varargs to have the correct number of arguments passed to get rid of the many gcc warnings about variable printf format strings, and to reduce the duplication from having 5 implementations of the PRMSG macro depending on the debug options defined & output method used. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Removing SUN specific code, let solaris create .X11-pipe with sticky bit onArvind Umrao2011-09-211-4/+0
| | | | | | | Alan told me, named pipe support was added around Solaris 2.6 when that was a much better performing transport than Unix sockets on the Solaris kernels of the time. By Solaris 10, Unix sockets had been reimplemented in the kernel to be faster, so they became the default again. In Solaris 11, we don't even have named pipe support in the libxcb library that implements X client connection code now, so the named pipes would only be accessed by code with a different libX11 or a statically linked libX11 from Solaris 2.6-9 Signed-off-by: Arvind Umrao <arvind.umrao@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Strip trailing whitespaceAlan Coopersmith2011-09-161-26/+26
| | | | | | | Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove ISCFuncs, fix SCOFuncs inclusion (bug 23324)Jesse Adkins2010-11-071-9/+3
| | | | | | | | | | | ISCFuncs was removed by commit 339ddc413559d4cb117a72f87b2a70dae6911c32. SCOFuncs should be for SCO only, instead of !sun. Also, remove comments that suggest ISC support. Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Bug 24612: Memory & fd leaks in local transportsEric Sesterhenn2009-10-191-1/+8
| | | | | | | X.Org bug #24612 <http://bugs.freedesktop.org/show_bug.cgi?id=24612> Patch #30548 <http://bugs.freedesktop.org/attachment.cgi?id=30548> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* Fix ifdef checks for SVR4 to do the right thing on SolarisAlan Coopersmith2009-07-301-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* Massive ifdef cleanup, dropping a ton of unsupported platform code.Adam Jackson2008-08-071-409/+7
|
* LocalClose() takes a ConnInfoPtr, not an fdAlan Coopersmith2008-06-241-1/+1
|
* removed cvs tagsBen Byer2007-11-141-5/+1
|
* Fix typo in Xtranslcl.c (sprintf with size argument should be snprintf)Kean Johnston2007-07-181-1/+1
|
* Add ResetListener for named pipe transportAlan Coopersmith2006-08-231-40/+120
| | | | (more merging of Xtrans code from Solaris xtrans)
* Merge Solaris named pipe transport support into LOCALCONNAlan Coopersmith2006-08-211-51/+183
| | | | | Also clean up #ifdefs in Xtranslcl for which transport types are supported Add "pipe" alias for named pipe transport on Solaris to match Solaris Xlib.
* Check setuild() return value. Bugzilla #7116.xtrans-1_0_1Matthieu Herrb2006-06-201-2/+11
|
* See ChangeLog entry 2005-11-07 for details.XORG-6_8_99_903XORG-6_8_99_902Kean Johnson2005-11-081-66/+92
|
* Bugzilla #3957 <https://bugs.freedesktop.org/show_bug.cgi?id=3957> PatchAlan Coopersmith2005-08-191-7/+9
| | | | | | | | #2924 <https://bugs.freedesktop.org/attachment.cgi?id=2924> xtrans changes for AIX (Dan McNichol, IBM) Bugzilla #3957 <https://bugs.freedesktop.org/show_bug.cgi?id=3957> Patch #2925 <https://bugs.freedesktop.org/attachment.cgi?id=2925> xtrans changes for AIX (Dan McNichol, IBM)
* Merging XORG-CURRENT into trunkXACE-SELINUX-MERGEEgbert Eich2004-04-231-1/+1
|
* Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich2004-03-141-1/+1
|
* Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich2004-03-031-1/+1
|
* readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich2004-02-261-1/+1
|
* Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich2004-02-261-1/+1
|
* XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16Kaleb Keithley2003-11-251-2/+22
|
* XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley2003-11-141-591/+574
|
* R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley2003-11-141-0/+2715