summaryrefslogtreecommitdiff
path: root/Xtransutil.c
AgeCommit message (Collapse)AuthorFilesLines
2022-08-20move is_numeric to Xtranssock.c and only define for TCPCONN or TRANS_REOPENKeith Packard1-14/+0
Don't define this function unless it is actually going to be used. Signed-off-by: Keith Packard <keithp@keithp.com>
2022-05-10Fix spelling/wording issuesAlan Coopersmith1-1/+1
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-09-30Delete SCO supportAdam Jackson1-7/+0
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-12-16xtrans.m4: remove AC_TYPE_SIGNAL and Imake SIGNALRETURNSINTGaetan Nadon1-13/+1
Assume signal handlers return void, as C89 requires Drops use of autoconf's obsolete AC_TYPE_SIGNAL and Imake's even more obsolete SIGNALRETURNSINT. None of the modules including xtrans.m4 uses RETSIGTYPE from autoconf. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2012-12-26Remove unused TLI ("STREAMSCONN") code from xtransAlan Coopersmith1-10/+10
Has never been converted to build in modular builds, so has been unusable since X11R7.0 release in 2005. All known platforms with TLI/XTI support that X11R7 & later releases run on also have (and mostly prefer) BSD socket support for their networking API. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-12-06Remove unnecessary casts on malloc, calloc & free callsAlan Coopersmith1-7/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
2011-12-05Finish conversion to standard C allocation functionsAlan Coopersmith1-6/+6
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>
2011-12-05Fix some resource & memory leaks in libxtrans.Alan Hourihane1-0/+2
Signed-off-by: Alan Hourihane <alanh@vmware.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-01Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-01Add _X_UNUSED attributes to silence unused parameter warningsAlan Coopersmith1-1/+1
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>
2011-10-01Fix printf format string warningsAlan Coopersmith1-1/+1
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>
2011-10-01Convert PRMSG macro to prmsg inline functionAlan Coopersmith1-28/+27
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>
2011-09-16Strip trailing whitespaceAlan Coopersmith1-15/+15
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>
2009-10-15Silence root ownership warnings on CygwinYaakov Selkowitz1-2/+2
XWin need not be run as root, nor do Administrators have uid of 0. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2009-04-24Constify path argument to trans_mkdir()Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-06Constify string argument to is_numericAlan Coopersmith1-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-06Fix libICE build after code motion in d192bac409...Alan Coopersmith1-0/+8
The #ifdef ICE_t case in Xtransutil.c depended on some #includes that are done in files that transport.c previously included before Xtransutil.c but are now after Xtransutil.c is included. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2008-10-07Finish removing OS/2 supportAdam Jackson1-3/+3
2008-10-07Remove DECNET support.Adam Jackson1-43/+1
This hasn't been consumed in the server or libs since 7.0.
2008-08-07Massive ifdef cleanup, dropping a ton of unsupported platform code.Adam Jackson1-12/+3
2008-05-10Remove extraneous execute bit from .c fileJames Cloos1-0/+0
2008-04-26fix build for MAKEWORDAlan Hourihane1-0/+4
2008-04-26Update to winsock2Colin Harrison1-1/+1
2007-11-14removed cvs tagsBen Byer1-5/+1
2007-09-05suppress warning about socket directory ownership on OS XBen Byer1-0/+2
We don't need to warn the user about the fact that the socket directory is not owned by root under OS X; on that platform, it's never owned by root, as the X server runs as the normal user.
2006-08-24More sprintf -> snprintf conversionsAlan Coopersmith1-1/+1
2005-11-08See ChangeLog entry 2005-11-07 for details.XORG-6_8_99_903XORG-6_8_99_902Kean Johnson1-0/+7
2005-07-26Add config.h includes for modularization Use RETSIGTYPE if defined byXORG-6_8_99_900Alan Coopersmith1-1/+5
autoconf in addition to Imake's SIGNALRETURNSINT. Use HAVE_WORKING_VFORK if defined by autoconf in addition to Imake's HAS_VFORK
2004-11-15Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 AddedAlexander Gottwald1-2/+9
mingw (Win32) port
2004-08-27Set the define XtransFailSoft to restore the old behavior to fail softlyrel-0-6-1lg3d-rel-0-7-0lg3d-rel-0-6-2lg3d-baseXORG-6_8_2XORG-6_8_1_904XORG-6_8_1_903XORG-6_8_1_902XORG-6_8_1_901XORG-6_8_1XORG-6_8_0XORG-6_7_99_904XORG-6_7_99_903XORG-6_8-branchEgbert Eich1-0/+8
when socket directory cannot chowned/chmod to correct user/group. This should be added on a per OS basis which hasn't been done.
2004-07-30fail hard if socket directories cannot be chowned to root or chmod'ed toXORG-6_7_99_902XORG-6_7_99_901XORG-6_7_99_2XORG-6_7_99_1Egbert Eich1-19/+90
the requested mode if 'sticky' bit is requested for this directory instead of just print a warning that will remain unnoticed most of the times.
2004-07-30Fixed typo in a comment.Egbert Eich1-1/+1
Deleted bogus comment. Added debugging support.
2004-04-23Merging XORG-CURRENT into trunkXACE-SELINUX-MERGEEgbert Eich1-3/+3
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-16/+92
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley1-65/+121
2003-11-14R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley1-0/+462