summaryrefslogtreecommitdiff
path: root/os
AgeCommit message (Collapse)AuthorFilesLines
2009-04-19os: don't malloc memory in LogVMessageVerb.Peter Hutterer1-16/+6
LogVWrite is limited to a buffer size of 1024, so we don't loose anything here by truncating. This way we can use LogVMessageVerb (and xf86Msg and friends) during signal handlers with the normal message types. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-14xdmcp: Don't crash on X -query with more than 255 IP addresses. (#20675)Adam Jackson1-0/+2
You could be more clever than this, but the wire protocol says this really is an array of not more than 255 ARRAY8, so it's not just a matter of changing the types.
2009-04-09Use RTLD_DI_SETSIGNAL to catch runtime dynamic loader errors and clean upAlan Coopersmith1-0/+20
Based on fix for Sun bug 6813925: Xorg needs to catch ld.so.1 failure so it can close down devices cleanly <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6813925> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-09Lift fatal signal handlers from DDX'es up to a common DIX implementationAlan Coopersmith2-0/+90
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-06os: signal handlers return void.Adam Jackson1-4/+2
2009-04-06Remove some OS/2 leftovers.Adam Jackson1-9/+0
2009-04-03os: Remove the useless -x optionAdam Jackson1-9/+0
2009-04-03DPMS: Simplify command line parsingAdam Jackson1-2/+1
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-03-05Remove #ifdef macII code left over from ancient A/UX 3.0 supportAlan Coopersmith1-4/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-01-22Remove a bunch of useless casts.Adam Jackson9-34/+33
We've had void * for twenty years now people let's try to act like we know how it works.
2009-01-22XKB: Make XKB mandatoryDaniel Stone1-8/+1
No more #ifdef XKB, because you can't disable the build, and no more noXkbExtension either. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-19Cygwin/X: should also use GetTickCount(), just like XmingJon TURNEY1-1/+6
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-01-11os: don't mix declarations and codeJulien Cristau1-1/+1
2009-01-11os: backtrace() returns int, not size_tJulien Cristau1-1/+1
2009-01-11os: ANSI cleanupsJulien Cristau2-6/+2
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-16Fix compilation with -Werror=format-securityColin Guthrie1-2/+3
2008-12-12Remove #define NEED_EVENTS and NEED_REPLIESPeter Hutterer1-1/+0
A grep on xorg/* revealed there's no consumer of this define. Quote Alan Coopersmith: "The consumer was in past versions of the headers now located in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h, all the event definitions were only available if NEED_EVENTS were defined, and all the reply definitions required NEED_REPLIES. Looks like Xproto.h dropped them by X11R6.3, which didn't have the #ifdef's anymore, so these are truly ancient now." Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade15-165/+165
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-12-02Add visibility flags to XSERVER_CFLAGS.Paulo Cesar Pereira de Andrade1-1/+1
This is done to actually change DIX_CFLAGS, as not all "modules" use XORG_CFLAGS. Also export the symbols that are required by other modules after the change.
2008-11-29Export symbols defined in the sdk.Paulo Cesar Pereira de Andrade15-101/+101
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-27Export symbols also defined in libXfont.Paulo Cesar Pereira de Andrade1-1/+1
libXfont has stubs for these symbols, so, when compiling with hidden symbols by default, these symbols must be visible in the X Server, or the stubs in libXfont will be used.
2008-11-14os/connection: TRANS_NOXAUTH bit comparison brainfart fix.Jeremy Huddleston1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=18524
2008-11-05Use OsSignal in Popen/Pclose to avoid SysV signal() stupidityAlan Coopersmith1-4/+4
2008-11-04Remove XEvIEDaniel Stone1-5/+0
It's unmaintained and has been broken for quite a while; MPX finally smashed it completely. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-04Xi: XINPUT has been mandatory for agesDaniel Stone1-1/+0
Ditch all #ifdef XINPUT, since it's always built. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-10-26Add prototypes for strlcpy/strlcatJulien Cristau2-0/+2
2008-10-23Argh, macros.Adam Jackson1-8/+8
2008-10-23Change some #define foo() -> static void foo()Adam Jackson1-8/+19
2008-10-21Close well known connections in ServerAbort()Matthieu Herrb1-0/+1
2008-10-10Move xorg_backtrace() up to the OS level so we can call it from DIX.Adam Jackson2-0/+202
2008-10-07Depend on xtrans >= 1.2.2 for TRANS_NOXAUTHJeremy Huddleston1-5/+0
2008-10-03Remove the Must_have_memory hack.Adam Jackson1-51/+25
Also remove an astonishing amount of misunderstanding of how casts work.
2008-10-03const cleanupAdam Jackson1-3/+1
2008-10-03Drop the never-called SkippedRequestCallback list.Adam Jackson1-4/+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-10-02Remove some stale IPv6 debuggingAdam Jackson1-38/+1
2008-10-02Unifdef ISCAdam Jackson1-29/+2
2008-09-22Default to -br. Add -retro option for the nostalgic.Adam Jackson1-2/+4
-retro also reverts to the classic cursor display behavior, meaning, the cursor will be visible before anyone calls XDefineCursor().
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-13Eviscerate save-under support.Adam Jackson1-3/+0
Use a compositing manager already. Plus I really wanted to use 'eviscerate' in a commit message.
2008-08-11The smart scheduler is not optional.Mathieu Bérard4-32/+0
2008-08-09Move string comparaison functions to from dix/ to os/.Matthieu Herrb3-0/+136
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-31Unifdef XIDLE.Adam Jackson1-3/+0
Seriously how was this still here.
2008-07-24Remove some more MEMBUG garbage.Adam Jackson2-43/+0
2008-07-24Sync is built-in and mandatory.Adam Jackson2-5/+0
2008-07-24XC-MISC is built-in and mandatory.Adam Jackson1-3/+0
2008-07-24Bigreqs are built-in and mandatory.Adam Jackson2-23/+0