summaryrefslogtreecommitdiff
path: root/os/connection.c
AgeCommit message (Collapse)AuthorFilesLines
2009-06-18Clarify use of and need for mffs vs. ffsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-06Remove some OS/2 leftovers.Adam Jackson1-9/+0
2009-03-23Remove two unused defines in C filesTomas Carnecky1-1/+0
These two defines were defined in C files but not used anywhere: dix/window.c #define DeviceEventMasks (KeyPressMask | [...] os/connection.c #define MAXFD 500 Signed-off-by: Tomas Carnecky <tom@dbservice.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-22Remove a bunch of useless casts.Adam Jackson1-5/+5
We've had void * for twenty years now people let's try to act like we know how it works.
2008-12-17Don't log audit messages when -audit 0 specifiedFrancis Giraldeau1-3/+1
make the auditTrailLevel check more general and don't log when not using DTRACE and -audit 0 is set.
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade1-24/+24
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).
2008-11-29Export symbols defined in the sdk.Paulo Cesar Pereira de Andrade1-16/+16
This is the biggest "visibility" patch. Instead of doing a "export" symbol on demand, export everything in the sdk, so that if some module fails due to an unresolved symbol, it is because it is using a symbol not in the sdk. Most exported symbols shouldn't really be made visible, neither advertised in the sdk, as they are only used by a single shared object. Symbols in the sdk (or referenced in sdk macros), but not defined anywhere include: XkbBuildCoreState() XkbInitialMap XkbXIUnsupported XkbCheckActionVMods() XkbSendCompatNotify() XkbDDXFakePointerButton() XkbDDXApplyConfig() _XkbStrCaseCmp() _XkbErrMessages[] _XkbErrCode _XkbErrLocation _XkbErrData XkbAccessXDetailText() XkbNKNDetailMaskText() XkbLookupGroupAndLevel() XkbInitAtoms() XkbGetOrderedDrawables() XkbFreeOrderedDrawables() XkbConvertXkbComponents() XkbWriteXKBSemantics() XkbWriteXKBLayout() XkbWriteXKBKeymap() XkbWriteXKBFile() XkbWriteCFile() XkbWriteXKMFile() XkbWriteToServer() XkbMergeFile() XkmFindTOCEntry() XkmReadFileSection() XkmReadFileSectionName() InitExtInput() xf86CheckButton() xf86SwitchCoreDevice() RamDacSetGamma() RamDacRestoreDACValues() xf86Bpp xf86ConfigPix24 xf86MouseCflags[] xf86SupportedMouseTypes[] xf86NumMouseTypes xf86ChangeBusIndex() xf86EntityEnter() xf86EntityLeave() xf86WrapperInit() xf86RingBell() xf86findOptionBoolean() xf86debugListOptions() LoadSubModuleLocal() LoaderSymbolLocal() getInt10Rec() xf86CurrentScreen xf86ReallocatePciResources() xf86NewSerialNumber() xf86RandRSetInitialMode() fbCompositeSolidMask_nx1xn fbCompositeSolidMask_nx8888x0565C fbCompositeSolidMask_nx8888x8888C fbCompositeSolidMask_nx8x0565 fbCompositeSolidMask_nx8x0888 fbCompositeSolidMask_nx8x8888 fbCompositeSrc_0565x0565 fbCompositeSrc_8888x0565 fbCompositeSrc_8888x0888 fbCompositeSrc_8888x8888 fbCompositeSrcAdd_1000x1000 fbCompositeSrcAdd_8000x8000 fbCompositeSrcAdd_8888x8888 fbGeneration fbIn fbOver fbOver24 fbOverlayGeneration fbRasterizeEdges fbRestoreAreas fbSaveAreas composeFunctions VBEBuildVbeModeList() VBECalcVbeModeIndex() TIramdac3030CalculateMNPForClock() shadowBufPtr shadowFindBuf() miRRGetScreenInfo() RRSetScreenConfig() RRModePruneUnused() PixmanImageFromPicture() extern int miPointerGetMotionEvents() miClipPicture() miRasterizeTriangle() fbPush1toN() fbInitializeBackingStore() ddxBeforeReset() SetupSprite() InitSprite() DGADeliverEvent() SPECIAL CASES o defined as _X_INTERNAL xf86NewInputDevice() o defined as static fbGCPrivateKey fbOverlayScreenPrivateKey fbScreenPrivateKey fbWinPrivateKey o defined in libXfont.so, but declared in xorg/dixfont.h GetGlyphs() QueryGlyphExtents() QueryTextExtents() ParseGlyphCachingMode() InitGlyphCaching() SetGlyphCachingMode()
2008-11-14os/connection: TRANS_NOXAUTH bit comparison brainfart fix.Jeremy Huddleston1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=18524
2008-10-07Depend on xtrans >= 1.2.2 for TRANS_NOXAUTHJeremy Huddleston1-5/+0
2008-10-03Unexport MakeClientGrab{Imp,P}erviousAdam Jackson1-2/+2
xtrap used to use these, but it's gone now. xtest still does but it's linked statically.
2008-08-14Transport/Apple: Add TRANS_NOXAUTH to incoming connections when the listener ↵Jeremy Huddleston1-0/+4
is flagged as such (cherry picked from commit ba4a7924261070ad0aff7211b7a1c9581fad4646)
2008-08-06XQuartz: Now properly disable xauth checking on launchd socket and mostly ↵Jeremy Huddleston1-25/+27
fix the xinitrc / launchd race condition
2008-07-23Unifdef hpux.Adam Jackson1-6/+0
2008-07-23Unifdef AIX.Adam Jackson1-3/+0
2008-07-17Dead code removalDaniel Stone1-16/+0
Remove a whole bunch of code that was never built, be it entire files or just dead ifdefs.
2008-07-17Drop a bunch of #ifdef Lynx.Mathieu Bérard1-8/+1
2008-06-13Fix "warning: label ‘done’ defined but not used".Eamon Walsh1-0/+2
2008-05-23XQuartz: Add the launchd fd to AllSockets as wellJeremy Huddleston1-6/+8
(cherry picked from commit 83f72529394be5871671d73b6ef4f8bc83708f8a)
2008-05-18XQuartz: Cleaned up ListenOnOpenFD...Jeremy Huddleston1-30/+5
(cherry picked from commit 6fb587d3d5fbbaee9e46cdce24d03e5d1c66d58a)
2008-05-17XQuartz: Added functionality to add a file descriptor to the connection list ↵Jeremy Huddleston1-0/+64
after the server is already running. (cherry picked from commit 543c2cd68d1ffef65d4644b860faad7191c6b9da)
2008-04-18Death to APPGROUP.Adam Jackson1-3/+0
2008-03-01clean some "unused" warningsGeorge Sapountzis1-1/+0
2007-12-28OS: Don't leak connection translation table on regenerationDaniel Stone1-1/+2
2007-12-13Merge branch 'master' into XACE-SELINUXEamon Walsh1-5/+11
Conflicts: Xext/EVI.c Xext/bigreq.c Xext/cup.c Xext/dpms.c Xext/fontcache.c Xext/mitmisc.c Xext/xcmisc.c Xext/xf86bigfont.c Xext/xtest.c configure.ac dbe/dbe.c hw/darwin/darwin.h hw/darwin/darwinEvents.c hw/darwin/iokit/xfIOKit.h hw/darwin/iokit/xfIOKitCursor.c hw/darwin/quartz/fullscreen/fullscreen.c hw/darwin/quartz/fullscreen/quartzCursor.c hw/darwin/quartz/quartz.c hw/darwin/quartz/quartzCommon.h hw/darwin/quartz/quartzCursor.c hw/darwin/quartz/xpr/dri.c hw/darwin/quartz/xpr/dristruct.h hw/darwin/quartz/xpr/xprCursor.c hw/darwin/quartz/xpr/xprFrame.c hw/xfree86/modes/xf86RandR12.c include/cursor.h miext/rootless/rootlessCommon.h miext/rootless/rootlessScreen.c miext/rootless/rootlessWindow.c render/picturestr.h Trying to pick up the pieces from the darwin churn here...
2007-12-05OS: Connection: Keep trying select while it gets interrupted (bug #9240)Rich Coe1-4/+9
If we got interrupted (EINTR or EAGAIN) during select, just try again, rather than shutting clients down on either of these errors.
2007-12-05OS: Connection: Don't shut down disappeared clients (bug #7876)Rich Coe1-1/+2
If a client disappears in the middle of CheckConnections (presumably because its appgroup leader disappears), then don't attempt to shut it down a second time, when it's already vanished.
2007-11-05Merge branch 'master' into XACE-SELINUXEamon Walsh1-38/+49
Conflicts: dix/dispatch.c dix/property.c hw/xfree86/common/xf86VidMode.c include/xkbsrv.h render/glyph.c xkb/xkbActions.c
2007-11-02Move SIGUSR1 notification as late as possible.Adam Jackson1-38/+49
If we inherited a signal mask from the parent process that ignores SIGUSR1, then we will send SIGUSR1 to the parent to indicate when we're ready to accept connections. Unfortunately, we send this notification way too early, right after creating the sockets rather than just before entering the main loop. Move it to just before Dispatch() so we're not lying quite so much.
2007-10-17Merge branch 'master' into XACE-SELINUXEamon Walsh1-20/+45
Conflicts: os/access.c
2007-09-27Rework local client id finding code to be more uniformAlan Coopersmith1-20/+45
2007-09-19Merge branch 'master' into XACE-SELINUXEamon Walsh1-0/+15
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-09-05XDARWIN: Add launchd supportBen Byer1-0/+15
This adds a bit of glue to configure.ac to support launchd detection; on OS X (or other platforms which choose to implement launchd), this allows the system to automagically start the Xserver as necessary to serve clients.
2007-08-16xace: add hooks + new access codes: core protocol server requestsEamon Walsh1-2/+7
2007-08-03security: drop support for XC-QUERY-SECURITY authorization method.Eamon Walsh1-10/+1
2007-06-28Remove the remnants of OS/2 support.Adam Jackson1-29/+2
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-26Split checks for dtrace & getpeerucred()Alan Coopersmith1-1/+5
2007-03-25Static cleanups, dead code deletion.Adam Jackson1-5/+5
2007-02-15os: fix client privates leakDaniel Stone1-0/+2
Minor leak here. Oops.
2006-12-01Define calls away when not building XACE, allowing ifdef's to be removed.Eamon Walsh1-4/+2
2006-11-08CheckConnections: don't close down the server client (bug #7876)Rich Coe1-1/+1
When an appgroup is shutting down, the list of clients can change, so make sure we're not trying to shut the server down.
2006-11-08RemoveGeneralSocket: don't touch EnabledDevicesDaniel Stone1-1/+0
RemoveGeneralSocket. Harmless, but.
2006-11-03Add DTrace probe points for X server <-> client communicationsAlan Coopersmith1-2/+28
See http://people.freedesktop.org/~alanc/dtrace/ for more details
2006-11-02Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into ↵Daniel Stone1-4/+38
input-hotplug
2006-11-01If getpeerucred() is available, include pid & zoneid in audit messages tooAlan Coopersmith1-3/+27
2006-11-01Bug #1997: AUDIT messages should contain uid for local accessesAlan Coopersmith1-5/+15
<https://bugs.freedesktop.org/show_bug.cgi?id=1997>
2006-10-13Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into ↵Daniel Stone1-3/+5
input-hotplug
2006-08-10Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into ↵Alan Coopersmith1-2/+0
XACE-modular
2006-07-21Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into ↵Daniel Stone1-2/+0
input-hotplug
2006-07-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson1-2/+0
2006-07-21add basic D-BUS configuration mechanismDaniel Stone1-3/+16
Also move LookupDeviceIntRec into the DIX, and add InputOption type, and NewInputDeviceRequest prototype (DIX requests DDX to add a device). Does not link without an implemented NIDR.